close trade by HeikinAshi
-
hello,
i try to close trade when HeikinAshi change color.
how can i do that?
it's not work.....
best regards,
Raviv -
@ravivzada It depends on the HA indicator you are using. Is it a custom indicator or the one offered by fxDreema?
-
-
@ravivzada
you have to check if ha close of last candle is above or below open and then on current if opposite then close -
hello,
i don't understand how to do that.
look the parameters on the picture attachedthanks a lot
raviv
-
@ravivzada
why are you using an indicator for the tp settings?i thought you want to close your trades on opposite ha candles...
-
YES, this is what i want.
close your trades on opposite ha candles
how can i do that? -
you have to check if ha close of last candle is above or below open and then on current if opposite then close
-

you mean like this?
by using "for each trade" loop?it is also not working...

-
@ravivzada
you just used the half of my solution.first you have to check if it is a buy or sell trade
then you would have to decide if you want to use just completed bars or not
depending on this decision you have to check if the last bar ha close > open = bull bar and if current bar ha close < open = bear / which means close buy trades and vice versa for sell trades