First post so apologies if it is a really simple question.
I've just started programming in MC / Powerlanguage and I am seeing a difference between the daily open as plotted on my hourly chart, and the daily open on a 100 tick chart.
Both are using the OpenD(0) keyword. As an example, On my hourly GBPUSD chart I have todays Open @ LMAX @ 1.67345, but on the 100 tick chart is it @ 1.67283.
I understand that the tick chart has a different opening bar and therefore would display a different value for the daily open, however I am wanting to find out how to ensure I have the daily open from my hourly chart displayed on the tick charts.
Is there a way to ensure I have the same lines across all my charts? Hourly, 100 Tick, 233 Tick etc??
Am I using the openD reserved word incorrectly? Do I need to set the daily open in a global variable etc?
Here is the (simplified) code snippet I am using:
Any assistance would be greatly appreciated
Last edited by damnpenguins; March 3rd, 2014 at 07:55 AM.
The only problem is that I am getting yesterdays Open price rather than today's open price. This is probably because the charts are referenced differently in MC, at the closing of the period rather than the start, is that right? So based on that do I have to take the open price from the hourly chart @ the close of the first bar?
Here is the code, I am sure it is wrong, I've chopped and changed it so many times:
I'm seriously lost here so would appreciate some help.