OBV breakout

#1
I saw some of the indicator which could automatically draw a line by linking two top to see the breakout. I would like to apply it to the OBV indicator? please help.

Just like the one in the bottom pane with red arrow.

 

KelvinHand

Well-Known Member
#2
I saw some of the indicator which could automatically draw a line by linking two top to see the breakout. I would like to apply it to the OBV indicator? please help.

Just like the one in the bottom pane with red arrow.

Here a simple manual version.
Instruction:
1 Setup the OBV indicator with AFL below.
2. Drop a trendline (RAY or EXTENDED) onto it.
3. Right click trendline Properties, Set the StudyID to "TL"
4. Adjust the trendline positioning to form a trendline break condition so the the arrows will appear.


PHP:
indy = OBV();
Plot( indy, "OBV", ParamColor("Color", colorCycle ), ParamStyle("Style")  );

//--Kelvinhand: Must use only TL
TL = Study("TL", GetChartID() ); 
Buy= Cross( indy, TL ); 
Sell=Cross(TL, indy);
shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
PlotShapes( shape, IIf( Buy, colorGreen, colorRed ), 0, indy);
 
Last edited:
#3
I tried but nothing happened even I draw a ray and the OBV cross the ray. please explain further thanks a lot.

May I have automatic version?
 

Similar threads

Intraday Higher Leverage

Save up to 90% in brokerage and get higher leverage for intraday trades.

Name:Phone:
Email:City:
State:
Are you a day trader?