Then you need to create 2 completely independent structures with 2 complete independent sets of groups numbers. In my exmaple above I used groups 1 and 2. You will have to create groups 3 and 4 now on a separate structure.
Ok. Let's move step by step. You will need a loop searching for the closest swing high/low on the MA loking bak to 10 candles. However, I have a previous question. What if there is nor such swing in 10 candles back? What if the last 10 candles are showing a continuous up/down of the MA value?
@fxDreema it would be greatly appreciated if you could update fxDreema functions to be in accordance to the recent MetaQuotes changes.
Very annoying to have these compiler warnings that are mentioned previously in this thread that we have no control of.
You can create a new empty project and use one only condition block on it. That condition block can be configured as you want and then donwloaded as an mq4 file and open via the mql editor on your MT4. Theer you will see the code you're looking for.
Especially, when you run EA on hosted VMs with limited resources, it will cause execution delays and can even eat up the advantage you usually have from the hosted VM being so close to the broker server.
@Safeer992 try doing it on DEINIT or write the variables into a text object with no colour and then it should save when it crashes into the text object.