Stock Portfolio Organizer
The ultimate porfolio management solution.
WiseTrader Toolbox
#1 Selling Amibroker Plugin featuring:
Last Thursday Of The Month for Amibroker (AFL)
USING IF FUNCTION EDITED TO SEE F&O EXPIRY DAY OF THE MONTH, ON PRICE CHART…
Screenshots
Similar Indicators / Formulas
Indicator / Formula
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | _SECTION_BEGIN ( "Expiry Thursday for Indian markets" ); //Expiry Thursday for Indian markets function Lastthursday() { Daysinmonth= IIf ( Month ()==1 OR Month ()==3 OR Month ()==5 OR Month ()==7 OR Month ()==8 OR Month ()==10 OR Month ()==12,31,30); Daysinmonthfeb= IIf ( Year ()%4 == 0 AND Year ()%100!=0,29,28); Daysinmonthfinal= IIf ( Month ()==2,Daysinmonthfeb,Daysinmonth); returnvalue= IIf (Daysinmonthfinal- Day ()<7 AND DayOfWeek ()==4,1,0); return returnvalue; } Graph0= Close ; D = DayOfWeek (); Color= IIf (Lastthursday(), ColorRGB (240,200,13), ColorRGB (100,100,50) ); Plot ( C , "Close" , color, ParamStyle ( "Style" , styleBar | styleThick | styleNoTitle , maskAll ) ); _SECTION_END (); |
4 comments
Leave Comment
Please login here to leave a comment.
Back
HI ,
I did nt understand this formula,,plz add me to ur yahoo msg ma80rao
_SECTION_BEGIN(“Expiry Thursday for Indian markets”);
//Expiry Thursday for Indian markets
function Lastthursday()
{
Daysinmonth=IIf(Month()1 OR Month()3 OR Month()5 OR Month()7 OR
Month()8 OR Month()10 OR Month()==12,31,30);
Daysinmonthfeb=IIf(Year()%4 == 0 AND Year()%100!=0,29,28);
Daysinmonthfinal=IIf(Month()==2,Daysinmonthfeb,Daysinmonth);
returnvalue=IIf(Daysinmonthfinal-Day()<7 AND DayOfWeek()==4,1,0);
return returnvalue;
}
Graph0=Close;
D = DayOfWeek();
FlagExpiry = IIf(Lastthursday(),1,0);
PlotShapes(FlagExpiry * shapeUpTriangle, colorBlack, 0, L);
_SECTION_END();
What if the thursday is holiday, would it consider the previous day as exit?
This is not working, pls help