Global Variable/Multi Time Frame
-
I can't seem to find anything of consistency - with detailed explanations or examples in building a variable that reads a set of conditions on a chart to be used in governing the trading on the lower time frame.
Anyone with experience writing global variables? Seems the tutorials on here are always left vague.
-
@pan4pips I can possibly help you with this but are you sure you need to use global variables? A standard variable can be used to record something on a different TF or even just a condition block.
-
That's a good question. I have custom measures of net currency values that are fed in through a DLL/Connection. I use the conditions on the M1 to trade but want to automate it so the same conditions are also used on the M5 as a governing factor.
When m1 aligns with same condition on m5 allow trade
-
@pan4pips So these DLL values go into the global variables of the platform?
-
@jstap No, the DLL's just feed the data into the terminal, there's a couple indicators that allow/draw the data.. I can use them like any custom indicator with buffers etc.