Dear MrPipMrPip wrote: Mon Jun 05, 2017 5:06 am The code that determined when to take a trade was taken from the indicator and placed in the EA.
GetSignal routine has the code for that by assigning trend and trend change determines the entry/exit.
It appeared to work correctly on backtest.
There is a surplus message alert.
Also when market begins, Indi Show sell but EA, (with same setting as Indi for LB and used tf) , take a buy, next bar close buy and take sell and next bar again buy!
maybe ea take position according "still open bar" (in setting is false)
Please take a look at pics: