Plot value of indicator over top of price?

d4dahl

d4dahl

New member
Hi guys,

I'd like to move the cyan colored plot "wave" up, so that it overlaps the price. Please see pic below for how my script currently translates to TOS. I'm finding that "declare upper;" does not solve the problem. Any help is greatly appreciated. Thank you.

Code:
declare upper;

input a8 = 1.1131;
input b8 = 1.3837;
input periodBars8 = 8;

input a12 = .2721;
input b12 = 2.1342;
input periodBars12 = 12;

def w = 2 * Double.Pi / periodBars8;
def x = CompoundValue(1, x[1] + 1, 0);

def ww = 2 * Double.Pi / periodBars12;
def xx = CompoundValue(1, xx[1] + 1, 0);

declare once_per_bar;
plot wave = a8*COS(w*x) + b8*SIN(w*x) + a12*COS(ww*xx) + b12*SIN(ww*xx);
 

Similar threads

Top