Comment on EA's for auto buy/sell signals - Pi

Manu commented on 20 Sep 2015, 12:35 PM

In the above post the code is not complete, the correct code is
“For Buy
SET HAC = (OPEN+HIGH+LOW+CLOSE)/4
SET MACDHIST = MACD(12,26, 9, EXPONENTIAL) – MACDSIGNAL(12, 26, 9, EXPONENTIAL)
HAC > MAXOF(REF(HAC,1), REF(HAC,2), REF(HAC,3), REF(HAC,4)) AND ((MACDHIST>0 AND REF(MACDHIST,1)0 AND REF(MACDHIST,2)<0))
For SELL:
SET HAC = (OPEN+HIGH+LOW+CLOSE)/4
SET MACDHIST = MACD(12, 26, 9, EXPONENTIAL) – MACDSIGNAL(12, 26, 9, EXPONENTIAL)
HAC < MINOF(REF(HAC,1), REF(HAC,2), REF(HAC,3), REF(HAC,4)) AND ((MACDHIST0) OR (REF(MACDHIST,1)0))

View the full comment thread »