My System - My trades.

vijkris

Learner and Follower
Varun ji,

Just want to clarify, when you say end of 1st bar on opening, are you referring to the close, the High or low of that 9.16 bar in 1m TF
and other subsequent three bars..
:lol:

this we have to see in obv pane, not price pane.. No hi/lo in obv. Only 1 value, i.e obv value.
 

SevenD

Well-Known Member
You are using wrong afl for obv pane. This is the correct one.
Code:
_SECTION_BEGIN("OBV Hi Lo"); 
y = Param("Ribbon Y",5,0,500,5);

Ob = OBV();    Hi = HHV(Ob,15);    Lo = LLV(Ob,15); 

B1 = Cross(Ob,Ref(Hi,-1));    S1 = Cross(Ref(Lo,-1),Ob); 

B1 = ExRem(B1,S1);        S1 = ExRem(S1,B1); 

UP1 = Flip(B1,S1);        DN1 = Flip(S1,B1); 

e3 = EMA(Ob,3);  	e200 = EMA(Ob,200); 	e36 = EMA(Ob,36);
nd = Day()!=Ref(Day(),-1);	
lb = Day()!=Ref(Day(),1);
ob = OBV();	
zero = ValueWhen(lb,ob);

//Plot(10,"",IIf(UP1,colorBlue,colorRed),styleOwnScale|styleNoLabel|styleThick,0,500,0,-5,8); 
PlotOHLC(y,Y+10,y,y,"",IIf(UP1,colorBlue,colorRed),styleOwnScale|styleNoLabel|styleCloud,0,500);
showVerticalObvlines15 = ParamToggle("Show vertical line for 15 ribbon change", "No|Yes", 0) ;
if (showVerticalObvlines15)
{
Plot(IIf(B1,1,0),"",colorBlue,styleOwnScale|styleNoLabel|styleHistogram|styleDashed,0,1);
Plot(IIf(S1,1,0),"",colorRed, styleOwnScale|styleNoLabel|styleHistogram|styleDashed,0,1); //vertical lines
}
Vijkris,

Can you point out the links as to which are the correct afls to be followed, in the price pane and the OBV pane, there's a confusion with the correct afls to be followed,
In the above afl is the plot zero line missing or its ok, just sounding out.
Plot(Zero,"",colorWhite,styleNoLabel|styleNoRescale|styleStaircase|styleDashed);
 

wisp

Well-Known Member
2 days away from TJ and there's so much of catching up to do!!! :eek::eek:
 
Hi

I am travelling so not tested the code, but me thinks it should work :p

Code:
T = TimeNum();	Ob = OBV();
T1 = 105959;	//110000
T2 = 125959;	//130000
T3 = 142929;	//143000	
Funds   = ValueWhen(T==T1,Ob);
Europe  = ValueWhen(T==T2,Ob);
Closing = ValueWhen(T==T3,Ob);

Plot(IIf(T>=T1,Funds,Null),"",colorLightGrey,styleNoLabel|styleNoRescale|styleStaircase|styleDashed,0,0,0,-5);
Plot(IIf(T>=T2,Europe,Null),"",colorGreen,styleNoLabel|styleNoRescale|styleStaircase|styleDashed,0,0,0,-5);
Plot(IIf(T>=T3,Funds,Null),"",colorGrey50,styleNoLabel|styleNoRescale|styleStaircase|styleDashed,0,0,0,-5);
The line depends on how your start time is configured in AB

so for e.g. if 142959 does not work use 143000 etc


Happy :)
 
Last edited:

VJAY

Well-Known Member
Hi

I am travelling so not tested the code, but me thinks it should work :p

Code:
T = TimeNum();	Ob = OBV();
T1 = 105959;	//110000
T2 = 125959;	//130000
T3 = 142929;	//143000	
Funds   = ValueWhen(T==T1,Ob);
Europe  = ValueWhen(T==T2,Ob);
Closing = ValueWhen(T==T3,Ob);

Plot(IIf(T>=T3,Funds,Null),"",colorLightGrey,styleNoLabel|styleNoRescale|styleStaircase|styleDashed,0,0,0,-5);
Plot(IIf(T>=T2,Europe,Null),"",colorGreen,styleNoLabel|styleNoRescale|styleStaircase|styleDashed,0,0,0,-5);
Plot(IIf(T>=T3,Funds,Null),"",colorGrey50,styleNoLabel|styleNoRescale|styleStaircase|styleDashed,0,0,0,-5);
The line depends on how your start time is configured in AB

so for e.g. if 142959 does not work use 143000 etc


Happy :)
As like earlier you came up with helping us again :)...Thanks happy bro...will check it..

nChecked it ...not plot lines :(...something I miss i think
 
Last edited:

wisp

Well-Known Member
As like earlier you came up with helping us again :)...Thanks happy bro...will check it..

nChecked it ...not plot lines :(...something I miss i think
Its not plotting lines for me also. It plotted a line but not in the correct place

 

Similar threads