how to configure a “counter” in the EA Wizard??
I am working on a code that has 10 conditions to monitor on the candle pattern movement. Let’s say that I would like to monitor the pattern for the a period of 15 candles…
Then, I would need to create 15 sets of the 10 conditions (150 conditions).
Is there a way that we are able to create a counter that will incremental by 1 and ends at 15 to substitute it in the “shift” function of the EA Wizard? In that case, we would only need 1 set of conditions.
If it is not able at the EA Wizard level, how to edit the mq4 created by EA Wizard to do above mentioned function? Appreciate that you could show us a simple example on how it can be done.
Many thanks in adv.
Not sure if this is exactly what you mean but created an example of a simple counter in wizard. On each bullish bar (replace it with whatever you need) it increments variable value by 1 until 15 then it’s reset.
You can then use the counter variable for other calculations.
For instant, I have 2 indicators A(a group of 3 different indicators each tracking shift -1 to -3 respectively) & B.
Firstly, indicator A will be triggered but the entry will come after indicator B is also triggered and within the given range (between -1 to -15 candles from indicator A & B being triggered.)
Indicator A being the price patterns indicator.
It could be made as the sample I attached. EA waits for signal A and then counts bars. If this count is less than max bars and signal B occurs then a trade can be opened. If number of bars since A is greater than max bars limit then EA restarts and waits again for signal A. Hope this is what you meant
Thank you very much for the sample..
Will try it out and feedback if needs more assistance.
🙂 🙂 🙂 🙂 🙂 🙂
Viewing 5 posts - 1 through 5 (of 5 total)