Custom Indicator for stochastic in amibroker

#1
Plotted lines as indicator in amibroker value changes as scroll bar moves?

I had plotted 2 lines as indicator in amibroker. Suppose vaule at 10am is 20 but when i move the scroll bar it changes to 50 and all the line value changes when scroll bar moves. How to correct this problem.

TimeFrameSet(2*in15Minute);
e =MA(Close,5);
f= MA(Close,10);
TimeFrameRestore();

TimeFrameSet(in15Minute);
x =MA(Close,5); ;
y= MA(Close,10);;
TimeFrameRestore();

TimeFrameSet(in5Minute);
a =MA(Close,5); ;
b= MA(Close,10);;
TimeFrameRestore();

A1 =(e+x+a)/3 ;
A2= (f+y+b)/3;
Plot(A2, "10", colorRed, styleLine, 0, 100,Null);
Plot(A1, "5", colorGreen, styleLine,0,100 ,Null);
 
Last edited:

Similar threads