Two questions:
1. What constants are available to substitute for "bottomleft"? I couldn't find a list of these constants in the programming guide.
2. Is there a method that provides more granularity over when on the chart the information I want to plot is shown, e.g., using x,y coordinates?
1/ If you put your mouse cursor just after "bottomleft" and press CONTROL+SPACE, you will see the list of available options.
(BottomLeft, BottomRight, TopLeft, TopRight)
2/ After you use "PrintChart", use the "UpdatePrintSettings" function to add/update "PrintChart" settings.
One follow-up question. So I have the following code to set the X,Y coordinates and they are working fine:
UpdatePrintSettings("PositionX", 1, 1); //Set horizontal position of text
UpdatePrintSettings("PositionY", 1, 40); //Set vertical position of text
When I bring up the information on the UpdatePrintSettings command, it doesn't show me anything about what the "1" values represent in the 2nd field above (and putting my cursor after the "1" and getting the available help doesn't seem to provide the list of valid values). All the help says is "NUMBER rule". Is there somewhere I can get a list of the valid values and their functions?
You can find information in the documentation file. However, that file is not yet updated with recent additions like the "UpdatePrintSettings".
If the rule (2nd parameter) is true (1) on the selected bar then "PositionX" or "PositionY" is updated. Otherwise the "UpdatePrintSettings" is not applied.
Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.