Hi,
I need a very simple strategy code for tradingview.com
chart type: heikin ashi
When the 1st bar/candle becomes green (new/1st green bar/candle) in heikin ashi charts then open long position
Stoploss as 1st/new red bar/candle
And target for long position same as above 1st/new red bar/candle formed
Vice a versa for short positions
when 1st/new red bar/candle is formed open short position
Stop loss as 1st/new green bar/candle formation
Target also the same 1st/new green bar/candle formation
basically what I am trying to do here is when we have the green bricks start forming in heikin ashi charts I go long
and as green bricks become red I close long positions and take short positions
thank you so much for your help
Regards,
Mukesh