Comment on Code your Technical Analysis strategy
Buy: SET MACDHIST = MACD(26, 13, 9, EXPONENTIAL) – MACDSIGNAL(26, 13, 9, EXPONENTIAL)
MACDHIST<0
Sell: SET MACDHIST = MACD(26, 13, 9, EXPONENTIAL) – MACDSIGNAL(26, 13, 9, EXPONENTIAL)
MACDHIST>0
The statement increasing and decreasing, you have to quantify it to be coded..