Stochastic EA not trading as per indicator
-
This EA is missing the trades by a long way and I cant see why - it is pretty simple

Buy when base line crosses signal line and sell the reverse. Close trade on opposite.
-
Some additional information - setting Candle Index to 1 did not fix the problem. Not only are trades taken in the wrong place but there are large areas where no trades are taken at all!
-
That screenshot is not enough to give you an answer right now. Could you please share the project?
-
Thanks for responding - I have enclosed the mq5 file0_1576186753375_20191212Stochastic(3).mq5
Please let me know if you need any more information -
@kriordan said in Stochastic EA not trading as per indicator:
Thanks for responding - I have enclosed the mq5 file0_1576186753375_20191212Stochastic(3).mq5
Please let me know if you need any more informationHi, split the "no position" , once for Buy and once for Sell

And also the "if position" block
-
thanks again but still not trading in accordance with the indicator
-
@kriordan now i check it in the tester
-
-
Sorry but even on your example I can see two trades not correct and I have enclosed another example

-
@kriordan Please show me these weird trade you have found on my test (please candle ID 1, because candle ID 0 should not be considered )
I have notice you are backtesting with real ticks with delay at 500 ms, this affects a lot on the backtest (and on real trading).
If you want to see if the crossings work well you have to test without delay and in Every tick mode.
-
@kriordan These are two example: the first without dealy and every tick mode

the second with 500 ms of delay and real ticks mode

-
Ok I appreciate your input - guess I thought that backtesting under these conditions would more closely represent live trading conditions. The strategy I am testing would not work if I had to use Shift 1 conditions as these are very short term trades and make no sense with a delay of one bar
-


