Hey guys!
I have recently started to code my very first EA however there are some things that are causing problems for me.
1.My EA should check ADX values only when a new bar opens on the chart.Doesn't matter the timeframe.
However right now if i run it on H1 it will place several orders on a H1 candle which is something i don't want.
What should i do?The variables are storing the values set to the current timeframe respectively.But the EA will check these values on every tick? and will place more than one order on a H1 candle even though it should only open an order or close the previous one when a new bar opens.
I am kinda lost here.
2.How can i access a custom indicators global variable?Do i need to put the indicator into a mqh file while rewriting into classes and such?
Do i have to use iCustom?If yes what value does it give back?Also what if the custom indicator uses several buffers?Do i need to create an iCustom for each of them?
Can't i just access one of the indicator's variable?
Like the custom indicator will set a bool to true or false when certain conditions are met.Now i want to access this bool value in my EA for checking.
How can i do that?
That's all for now.
I have recently started to code my very first EA however there are some things that are causing problems for me.
1.My EA should check ADX values only when a new bar opens on the chart.Doesn't matter the timeframe.
However right now if i run it on H1 it will place several orders on a H1 candle which is something i don't want.
What should i do?The variables are storing the values set to the current timeframe respectively.But the EA will check these values on every tick? and will place more than one order on a H1 candle even though it should only open an order or close the previous one when a new bar opens.
I am kinda lost here.
2.How can i access a custom indicators global variable?Do i need to put the indicator into a mqh file while rewriting into classes and such?
Do i have to use iCustom?If yes what value does it give back?Also what if the custom indicator uses several buffers?Do i need to create an iCustom for each of them?
Can't i just access one of the indicator's variable?
Like the custom indicator will set a bool to true or false when certain conditions are met.Now i want to access this bool value in my EA for checking.
How can i do that?
That's all for now.