I understand that I can adjust the chart to leave some unpopulated space on the right hand side of the chart. If a custom technical indicator has predictions for bars that don't yet exist, is it possible for the indicator to paint those bars on-screen? Assuming a C# based indicator, how?
When working with formulas, I find out that ref (close,5) is equal to 55.
I want to change the 5th item in close to be a different value. I want it to be 80.
What is the proper syntax for the command that sets close[5] equal to 80?
After that, how do I identify the number that corresponds to one bar AFTER the last bar in my chart?
I think I might actually have the answer to that one. Would it be represented by TotalBars()?
And finally, say that the array of pricing data is 5662 bars long [offset 0 through offset 5661]. If I were to successfully add price data into offset 5662 (extending the number of bars by one)... what happens when time passes and the next bar of data is received (in live mode)? Will it overwrite the price data that I put into offset 5662, or will it populate offset 5663 with the next bar's worth of information?
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.