Can Any one please code below stratagy
I want to buy when SET HAC = (OPEN+HIGH+LOW+CLOSE)/4HAC > MAXOF(REF(HAC,1), REF(HAC,2), REF(HAC,3), REF(HAC,4)) Sell Alert Expression: SET HAC = (OPEN+HIGH+LOW+CLOSE)/4HAC < MINOF(REF(HAC,1), REF(HAC,2), REF (HAC,3), REF (HAC,4)) Haven’t mentioned HA-Open/High/Low, since it has not been used in the final Buy/ sell conditions. , This is the code created above for Heiken Ashi. I wants to add a few more things: I use another signal along with the code mentioned that being stochastic oscillator(14,7,3) Buy - when close is above highest close of last 4 candles (heikin-ashi) and %k is closed above %d, Sell - when close is below lowest close of last 4 candles (heikin-ashi) and %k is closed below %d.
Buy:
SET HAC = (OPEN+HIGH+LOW+CLOSE)/4
HAC > MAXOF(REF(HAC,1), REF(HAC,2), REF(HAC,3), REF(HAC,4)) AND SOPK(14, 7, 3, SIMPLE) > SOPD(14, 7, 3, SIMPLE)
Sell:
SET HAC = (OPEN+HIGH+LOW+CLOSE)/4
HAC > MAXOF(REF(HAC,1), REF(HAC,2), REF(HAC,3), REF(HAC,4)) AND SOPK(14, 7, 3, SIMPLE) > SOPD(14, 7, 3, SIMPLE)
Can We able to use this code in pi scanner