I was wondering if anyone could make an important modification to this EA. The EA is supposed to take trades based on the changing colors of the CCI Bar. Meaning if the bar changes from red to green, it opens a buy. However I want it to take trades based on whether or not the CCI bar CLOSES red or green, not if the bar is changing between red or green within the certain time frame. Ex: If the current bar is green and the next bar OPENS red it will take a trade, however that bar could change back to green by the time it closes which is obviously problematic.
Attached is the indicator it is to be based off of and a screenshot of a scenario of why the EA is broken. It opened a buy because the candle opened green, however the candle changed back to red and thus the trade went in the negative. The EA should have waited for the candle to close green to open a buy.
https://i.gyazo.com/c3f4c0072cfc7655...c652dc8316.png
Attached is the indicator that the EA is based off of if needed (Doublewoody CCI) and the 2 EA files to be modified (EA08 Source file - .ex4 and .mq4)
Any help is appreciated.
Attached is the indicator it is to be based off of and a screenshot of a scenario of why the EA is broken. It opened a buy because the candle opened green, however the candle changed back to red and thus the trade went in the negative. The EA should have waited for the candle to close green to open a buy.
https://i.gyazo.com/c3f4c0072cfc7655...c652dc8316.png
Attached is the indicator that the EA is based off of if needed (Doublewoody CCI) and the 2 EA files to be modified (EA08 Source file - .ex4 and .mq4)
Any help is appreciated.
Attached File(s)
DoublecciWoody.ex4
15 KB
|
303 downloads
DoublecciWoody.mq4
6 KB
|
386 downloads
EA08 Source file.ex4
32 KB
|
274 downloads
EA08 Source file.mq4
16 KB
|
350 downloads