How to place buy on every candle?
-

hey guys, so above is a snapshot taken after backtesting my EA , it did not quite execute orders at the way i wanted it to, so my idea is that i intend to place sell orders everytime the heiken ashi candle is below the 10 days moving average (vice versa) , as you can see from the picture, i just dont understand why it didn't work.( it is a 5 minutes chart)

-
hi can anyone please help me with it? been thinking about it for a week haha
-
@tedhor07 Why bull candles for both directions, no bear?

-
@roar hi, i am sorry for the wrong title, it is actually bear in it. just forgot to change the title to bear instead, but i am still confused why my ea will not buy on every bar... do u have any ideas?
-
@tedhor07 the picture is otherwise correct, can't find any problem. Its probably your custom indicator. I don't want to touch those.
-
this is the indicator i used for the heiken ashi candles, i am actually using the Custom Indicator provided by fx dreema which falls under the Custom (price fraction) group , i did not modify anything in it, just wondering if the Heiken ashi is actually working

-
@roar or i have tried to find every solution possible to check whether the problem was originated from the block arrangements, maybe this is truly because the heiken ashi indicator wasn't created the way i thought it would be.
-
@tedhor07 you are using a price fraction SL, but the value is close price. Its a level, you should change the mode to level as well.
Could you share the project?
-
@roar yes of course! 0_1587294891625__MAHA v1.5 19 april 2020.mq5
my intention is to buy on every candle and sell on every candle when conditions are met, and also all positions open (currently) would be closed on the first when the blue Heiken Ashi candle has turned red (vice versa) .
-
@tedhor07 This is what I meant for the SL:

By the way, sharing a project is easier done from the Projects menu.
But I don't see any obvious mistake in the EA, I guess the HA coding itself has some bug. You can experiment the indicator by putting it into a comment block and running visual backtest..
-
@roar regarding the HA problem, i was actually told that the HA indicator offered in fx dreema did not include colours
https://fxdreema.com/forum/topic/9160/place-stop-loss-using-heiken-ashi-candles/2
