need buy sell arrow to be plotted, plz help

#1
plz plot buy arrow when atp line in brightgreen color and sell arrow in red color.
plz seniors help me
code for atp is pasted below

_SECTION_BEGIN("ATP");
B=Volume;
A=Avg;
Value=B*A;
Barsfromtodaybegin = 1 + BarsSince( Day() != Ref(Day(), -1));
Totalvalue=Sum(Value,Barsfromtodaybegin);
Totalvolume=Sum(V,Barsfromtodaybegin);
ATP=(Totalvalue/Totalvolume);
ColorATP=IIf(ATP>Ref(ATP,-1),colorBrightGreen,colorRed);
Plot(ATP,"ATP",colorATP,styleThick);
_SECTION_END();
 

hmsanil

Active Member
#2
Code:
_SECTION_BEGIN("ATP");
B=Volume;
A=Avg;
Value=B*A;
Barsfromtodaybegin = 1 + BarsSince( Day() != Ref(Day(), -1));
Totalvalue=Sum(Value,Barsfromtodaybegin);
Totalvolume=Sum(V,Barsfromtodaybegin);
ATP=(Totalvalue/Totalvolume);
ColorATP=IIf(ATP>Ref(ATP,-1),colorBrightGreen,colorRed);
Plot(ATP,"ATP",colorATP,styleThick);
_SECTION_END();

Buy=ATP>Ref(ATP,-1);
Sell=ATP<Ref(ATP,-1);

Buy=ExRem(Buy,Sell);
Sell=ExRem(Sell,Buy);

PlotShapes(IIf(buy,shapeUpArrow,shapeNone),colorGreen,0,L,-25);

PlotShapes(IIf(sell,shapeDownArrow,shapeNone),colorred,0,H,-25);
 
#3
Code:
_SECTION_BEGIN("ATP");
B=Volume;
A=Avg;
Value=B*A;
Barsfromtodaybegin = 1 + BarsSince( Day() != Ref(Day(), -1));
Totalvalue=Sum(Value,Barsfromtodaybegin);
Totalvolume=Sum(V,Barsfromtodaybegin);
ATP=(Totalvalue/Totalvolume);
ColorATP=IIf(ATP>Ref(ATP,-1),colorBrightGreen,colorRed);
Plot(ATP,"ATP",colorATP,styleThick);
_SECTION_END();

Buy=ATP>Ref(ATP,-1);
Sell=ATP<Ref(ATP,-1);

Buy=ExRem(Buy,Sell);
Sell=ExRem(Sell,Buy);

PlotShapes(IIf(buy,shapeUpArrow,shapeNone),colorGreen,0,L,-25);

PlotShapes(IIf(sell,shapeDownArrow,shapeNone),colorred,0,H,-25);

thanks for help and valuble time sir
 

hmp

Well-Known Member
#4
Rahul ji
Will you pl. guide us how & which time frame you are using for this & for what segment you are using it? Is it for intraday or positional?
Regards
 
#5
Rahul ji
Will you pl. guide us how & which time frame you are using for this & for what segment you are using it? Is it for intraday or positional?
Regards

sorry for delayed msg, i use this as addon only for intraday.
if one follows this blindly then his account will be wiped within two days.
 

Broker Special Offers

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?