Tradescript : Heikin Ashi flip over / color change alert code
This is the Tradescript code for heikin-ashi candle color change. This code can be used for backtesting or in the EA to generate BUY and SELL signals on heikin-ashi strategy. GREEN CANDLE FOR ZERODHA PI EA: SET HC = (OPEN+HIGH+LOW+CLOSE)/4 SET HO = (REF(OPEN,1) + REF(CLOSE,1))/2 SET HH = MAXOF(HIGH, MAXOF(HC, HO)) SET HW = MINOF(LOW, HO, Read more about Tradescript : Heikin Ashi flip over / color change alert code[…]