Wealth Creation with Nifty Future

hmp

Well-Known Member
#21
Dear all.
Found this afl on net.I have deleted stochastics part and changed the ema values as per our requirement.
Though it is working i think something is missing.Experts pl. check this and add/repair it if it is necessary.
Thanks & regards.
Code:
_SECTION_BEGIN("MA-MACD-STOCH");

//////////////////// MA 3-5////////////////////////////////
SetChartOptions(0,chartShowArrows|chartShowDates);
Plot(Close,"Price",colorWhite, styleCandle);
Plot(EMA(Close,3),"3EMA",colorGreen,style=styleThick);
Plot(EMA(Close,5),"5EMA",colorRed,style=styleThick);
BMA=Cross(EMA(Close,3),EMA(Close,5));//BUY MA COND
SMA=Cross(EMA(Close,5),EMA(Close,3));//SELL MA COND

BBMA=BarsSince(BMA);//How many Bars ago ma bullish crossover happened
BSMA=BarsSince(SMA);//How many Bars ago ma bearish crossover happened
///////////////////////MACD////////////
r1 = Param( "Fast avg", 12, 2, 200, 1 );
r2 = Param( "Slow avg", 26, 2, 200, 1 );
r3 = Param( "Signal avg", 9, 2, 200, 1 );

ml = MACD(r1, r2);
sl = Signal(r1,r2,r3);
BMCD=Cross(ml,sl);//BUY MACD COND
SMCD=Cross(sl,ml);//Sell MACD CONDITION

BBMCD=BarsSince(BMCD);//How many Bars ago MACD bullish crossover happened
BSMCD=BarsSince(SMCD);//How many Bars ago MACD bearish crossover happened




Buy= BMA AND (BBMCD-BBMA<3)  ;
//EXPLANATION
////(BBMCD-BMAB<3)=diff between MA BUY cross and MACD BUY cross <=3 bars)


Sell=SMA AND (BSMCD-BSMA<3)  ;
//EXPLANATION
////(BSMCD-BSAB<3)=diff between MA SELL cross and MACD sell cross <=3 bars)




shape = Buy * shapeSmallUpTriangle + Sell * shapeSmallDownTriangle;
PlotShapes( shape, IIf( Buy, colorBrightGreen, colorRed ), 0, IIf( Buy, Low, High ) );


Filter=Buy OR Sell;

AddColumn(IIf(Buy,1,IIf(Sell,-1,Null)),"B/S",0,colorDefault,IIf(Buy,colorGreen, IIf(Sell,colorRed,Null)));


_SECTION_END();
 
#23
Brexit , RBI , Fed , IIP Data , American Job Cut data , Greece , Spain , Yen Devaluation , Japan Deflation , GST bill ... bla bla bla ... how many things you want to take care of ... i am not that intelligent to collect all the data and then calculate the resultant upward or downward push on Indian stock market.
See my last post on 17th June .. i saw there is no clear indication in my system ... more over BB is encroaching towards price movement , decreasing volatility day by day ... market will enter in a sideways movement ... things will start to flow in one direction ... FEEL IT ... you will see ... this system will start to make sense when everything is in sync ... Either trendy or rangebound ... let the picture be clear.

Always remember .. news are created .. we get it free ... when we get something free , we are the product.Morganstanly will open its mouth when they have some sort of interest :D and they want to drive market sentiment in their favor.

If you have to trade stock market on the basis of news ... get it first hand , like news brokers , BUY news first hand ... if you are getting it on TV , Newspaper or from your wise Sub broker ... it is already ice cold.

OTHERWISE ... avoid it .. you will do just fine.

Happy trading friends. :)
 
#24
Cash Nifty BB upper level is at 8285.74 EOD.. today Nifty spot made high few minutes ago 8285.60 !

Does it mean nifty will move up again ! 11 LAKH Volume at 2:25 PM on 5 min chart...

OR its just the highest price in coming few weeks , a nice place to sell !

:rofl: its so confusing !

20 EMA is horizontal ... what W%R is saying !

:clapping:
 
Last edited:

goldenedge

Well-Known Member
#30
3 EMA and 5 EMA are not at all needed. Use a color changing hull moving average. It solves the purpose just fine.

I find stoch better, compared to w%r in range bound markets.
 

Similar threads