Having trouble getting an infinite vertical cloud to plot on upper chart

lmk99

Member
VIP
Hi all, I don't understand why this isn't working because I recycled the AddCloud code from another study that I made in which it works correctly:

Code:
def hasbuysignal = if (buysignal1 or buysignal2 or buysignal3 or buysignal4 or buysignal5 or buysignal6 or buysignal7 or buysignal8) then 1 else 0;

def hasbuysignalonlycloud = if (hasbuysignal ==1 and !KBArUp) then Double.POSITIVE_INFINITY else Double.Nan;
AddCloud(hasbuysignalonlycloud, -hasbuysignalonlycloud, Color.WHITE, Color.Black);

Any idea why this wouldn't work?
 

Similar threads

Top