I am writing a very simple script to add cloud depending upon the MACD histogram being above or below zero. If MACD Hist is >0 plot a green cloud else red. Somehow this is not plotting anything? Apprecaite help with resolution.
declare upper;
def d = MACDHistogram(12,26,9,AverageType.EXPONENTIAL).diff;
AddCloud(d, 0, Color.GREEN, Color.RED);
My bad.. it is working but its adding a cloud histogram on the upper chart. Not what I am looking for. I would like it to plot a cloud above and below price bars.
declare upper;
def d = MACDHistogram(12,26,9,AverageType.EXPONENTIAL).diff;
AddCloud(d, 0, Color.GREEN, Color.RED);
My bad.. it is working but its adding a cloud histogram on the upper chart. Not what I am looking for. I would like it to plot a cloud above and below price bars.
Last edited by a moderator: