My problem:
Hi' guys,
I am a Daily chart trader and I am now on a phase to test 2 indicator, where 1 act as a baseline (i use Kijun Sen) and 1 act as a confirmation (i use KusKus Starlight). So, what i want is where there are a baseline cross happen (price cross and close above or below baseline) and the confirmation value is correct (positive value meaning long trade and negative meaning short trade). Also i have a thing called one candle rule, it's a rule when a buy signal comes from baseline (where price cross and close above baseline) and the confirmation indicator still negative at the time crossover happen, i want to wait for 1 candle to give the confirmation indicator time to catch. For example on 29september a bullish baseline cross happen (Long position signal) but at the moment, confirmation indicator that i use still has negative value, then i want to wait until the candle close on next day which is 30 september, if the confirmation indicator endup giving a positive value then i am going to take a LONG Position, but if the confirmation indicator still has negative value, then i am not taking that trade.
Now, when backtest the EA some of the trade are open and close on expected position. But when the baseline cross are happen 2 times in a row (look at this screenshoot http://prntscr.com/pcx962) the trade doesn't taken for no reason. If you look at the screenshoot this crossover happen on 02 April 2019 and 03 April 2019. What i want is my EA take a trade on 04 April 2019 since on 02 April the Bearish Crossover happen but the Confirmation Indicator value still positive (for Bearish crossover i need a negative value to enter a short position) and the next day on 03 April the Bullish Crossover happen but the confirmation indicator are now have negative value which for Bullish Crossover i need a positive value to enter a Long position. However, since i have one candle rule, i wait one more candle to give my confirmation indicator chance to catch up. And on 04 April my confirmation indicator did catch up giving me a positive value meaning i am allowed to take a Long trade. But my EA doesn't take it. For whatever reason it didn't take that trade.
What I tried:
If you can see on my algorithm (https://fxdreema.com/shared/A1bKuTGde), after the No Trade block, i have a condition to check is the crossover happen or not between the candle and my baseline. I use the value of 0 for my candle id and i use 0 for my baseline candle id as well with 1 cross width. After that if this block giving False result then it'll check for the one candle rule which i check the previous candle with value 1 for candle id and 1 for baseline candle id and 1 cross width. But this doesn't give any result i expected.
I also tried to change the value to 1 for candle id and 1 for baseline candle id with 1 cross widht for the crossover check. Then i put candle id value and baseline candle id value into 2, but cross widht still 1 for one candle rule check. Still this not solve the problem.
I tried to mess with the once per bar block, put it before the condition block but still no good result. Lastly i move the once per bar block just before the trade taken on the last check, but still it didn't go well.
My platform:
I use MT4,
Please help me with this problem, already feel lil bit frustrated since i think everything is setting up correctly but end up not working.
If you need link to the indicator i mention, i can give it.
Thanks for your attention,
Regards