Can a EA built using Renko chart in Pi

i intend to get a BUY signal on every green block and a SELL signal on every red block of the RENKO chart on the PI platform. Is there any way I can put this logic in the EA on Pi platform

Thanks

As per the above condition

you can create EA by following code and open charts and change to renko and then apply EA


Buy Script: 
 

REF(OPEN,1)<REF(CLOSE,1) AND REF(OPEN,2)<REF(CLOSE,2)

Sell Script: 
 

REF(CLOSE,1)<REF(OPEN,1) AND REF(CLOSE,2)<REF(OPEN,2)

I don’t think this gives the needed RENKO line-up. But thanks for the code

1 Like