Problem with Zoom In/Out

murthyavr

Well-Known Member
#1
I keep the price on the upper pane and crossover graphs on the downside pane of AB window.

I observed that as I zoom in or zoom out the window, the cross-over positions are changing. If a cross-over was there in - say, Bar no.10 before zooming, now the cross over won't be at bar no. 10 after the zoom.

Has anyone experienced this? Is it a known issue? Is there any fix for it?

(In this context, I remember one old humorous saying:
"By the time I make both ends meet, someone is moving the ends!")

Thanks.
 
#2
you said : Problem with Zoom In/Out
there is NOT problem in zoom in /out

you said : Is there any fix for it?
yes ..

how to fix it ?
we need to see what you did in the formula, we not know were and in how many thinks you mess about

But i recommend you to look about Axis i bet some where in the formula there is one styleownscale or leftaxis or.. or..
 

murthyavr

Well-Known Member
#3
You guessed it right, boufalo. There is styleOwnScale in the code.
Can we change it to a another parameter, so that the graphs are not changed?

I don't know much about coding, hence the above - maybe - fundamental question..

Here is the original code I am using.

_SECTION_BEGIN("RSI over price");

//
dd = RSIa( C, 20);
ee = EMA( dd, 3 );
ff = EMA( ee, 5 );
Plot( C, "C", colorWhite, styleCandle );
Plot( dd, "RSI", colorYellow, styleLine | styleOwnScale );
//Plot( ee, "RSI Sm", colorBlue, styleLine | styleOwnScale );
Plot( ff, "RSI Db Sm", colorGreen, styleLine | styleOwnScale );
_SECTION_END();


_SECTION_BEGIN("Volume");
Plot( Volume, _DEFAULT_NAME(), IIf( C >= Ref(C,-1), ParamColor("Up Color", colorGreen ), ParamColor("Down Color", colorRed ) ), styleNoTitle | ParamStyle( "Style", styleHistogram | styleOwnScale | styleThick | styleNoLabel, maskHistogram ), 2 );
P = ParamField("Volume field",5);
Periods = Param("Periods", 5, 5, 200, 1, 5 );
VMA = MA( Volume, Periods );
//Plot( VMA, _DEFAULT_NAME(), ParamColor( "Color", colorYellow ), ParamStyle("Style", styleLine | styleNoRescale),2 );
_SECTION_END();
 
#4
what i am doing here is to put the price at LeftAxisScale
and to leave rightaxis the rest plot
enjoy it ..

Code:
Plot( C, "C", colorWhite, styleCandle|styleLeftAxisScale );
Plot( dd, "RSI", colorYellow, styleLine );
//Plot( ee, "RSI Sm", colorBlue, styleLine );
Plot( ff, "RSI Db Sm", colorGreen, styleLine);
 

Similar threads