EMA strip in BB !!!!

Helpful !!!

  • YES

    Votes: 35 97.2%
  • NO

    Votes: 1 2.8%

  • Total voters
    36
#11
The wave is better looking but the I find the worm easier to read.
...specially with blank bars. I simultaneously have another 5 min chart to read the candles for any significant patterns, and try to co-relate them with the worm.
 

columbus

Well-Known Member
#13
CONSTRCTION:

Construction is quite simple.
1.Plot Bollinger Band (20,2).
2.Plot EMA-3,9,15 in white colour.
3.Plot EMA-4,5,6,7 and 8 in Blue colour.
4.Plot EMA-10,11,12,13 and 14 in red colour.
All cross-over rules are applicable.

 
#14
Are you trading this system ?? There are similarities between the two systems (Guppy and the worm). The difference being, whereas Guppy did not give a clear cut crossover / buy signal (in the area marked), the worm gave a buy and hit stop loss.

 

columbus

Well-Known Member
#15
Are you trading this system ?? There are similarities between the two systems (Guppy and the worm). The difference being, whereas Guppy did not give a clear cut crossover / buy signal (in the area marked), the worm gave a buy and hit stop loss.
YES.

Since both takes same data, EMAstrip and WORM look alike.
In the place marked by you, WORM says EXIT the trade.But whereas
EMAstrip says HOLD the position.(Red colour was in tact)
Now the question is which is Correct?.As far as today's data is concerned
EMAstrip appears to be correct in my view, but ,it may not be always
correct.Better is, to have both charts ,and commit less mistakes.

Happy Trading.
 
#16
Above looks very good.

afl for above is given beow

_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
//Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );

a=EMA(C,3) ;
b=EMA(C,9) ;
d=EMA(C,15) ;


e=EMA(C,4) ;
f=EMA(C,5) ;
g=EMA(C,6) ;
i=EMA(C,7) ;
j=EMA(C,8) ;

k=EMA(C,10) ;
L=EMA(C,11) ;
m=EMA(C,12) ;
n=EMA(C,13) ;
p=EMA(C,14) ;

Plot(a,"",colorWhite,styleLine + styleThick) ;
//Plot(b,"",colorWhite,styleLine + styleThick) ;
//Plot(d,"",colorWhite,styleLine + styleThick) ;

Plot(e,"",colorBrightGreen,styleLine) ;
Plot(f,"",colorBrightGreen,styleLine) ;
Plot(g,"",colorBrightGreen,styleLine) ;
Plot(i,"",colorBrightGreen,styleLine) ;
Plot(j,"",colorBrightGreen,styleLine) ;

Plot(b,"",colorWhite,styleLine + styleThick) ;



Plot(k,"",colorRed,styleLine) ;
Plot(L,"",colorRed,styleLine) ;
Plot(m,"",colorRed,styleLine) ;
Plot(n,"",colorRed,styleLine) ;
Plot(p,"",colorRed,styleLine) ;

Plot(d,"",colorWhite,styleLine + styleThick) ;


Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );


//_SECTION_END();

//_SECTION_BEGIN("Bollinger Bands");
P = ParamField("Price field",-1);
Periods = Param("Periods", 20, 2, 300, 1 );
Width = Param("Width", 2, 0, 10, 0.05 );
Color = ParamColor("Color", colorCycle );
Style = ParamStyle("Style");
Plot( BBandTop( P, Periods, Width ), "BBTop" + _PARAM_VALUES(), colorRed, styleLine );
Plot( BBandBot( P, Periods, Width ), "BBBot" + _PARAM_VALUES(), colorRed, styleLine );
_SECTION_END();



_SECTION_BEGIN("Magnified Market Price");
//by Vidyasagar, [email protected]//
FS=Param("Font Size",30,30,100,1);
GfxSelectFont("Arial", FS, 900, italic = False, underline = False, True );
GfxSetBkMode( colorWhite );
GfxSetTextColor( ParamColor("Color",colorYellow) );
//Hor=Param("Horizontal Position",800,800,800,800);

Hor=Param("Horizontal Position",500,500,200,20);




Ver=Param("Vertical Position",50,50,250,50);
GfxTextOut(""+C,Hor , Ver );
YC=TimeFrameGetPrice("C",inDaily,-1);
DD=Prec(C-YC,2);
xx=Prec((DD/YC)*100,2);
GfxSelectFont("Arial", 12, 700, italic = False, underline = False, True );
GfxSetBkMode( colorWhite );
GfxSetTextColor(ParamColor("Color",colorYellow) );
GfxTextOut(""+DD+" ("+xx+"%)", Hor+5, Ver+45 );
_SECTION_END();




_SECTION_BEGIN("Price Line");

PriceLineColor=ParamColor("PriceLineColor",ColorRGB(82,82,82));
PriceLevel = ParamField("PriceField", field = 3 );

Daysback = Param("Bars Back",100,10,500,1);
FirstBar = BarCount - DaysBack;
YY = IIf(BarIndex() >= Firstbar,EndValue(PriceLevel),Null);

Plot(YY,"Current Price",PriceLineColor,ParamStyle("LineStyle",styleLine|styleDashed|styleNoTitle|styleNoLabel|styleThick,maskAll));


side = Param("side",1,0,1000,1);

dist = 0;

for( i = 0; i < BarCount; i++ )
{
if(i+side== BarCount) PlotText( "\n " + PriceLevel[ i ], i, YY[ i ]-dist, colorLightBlue );
}


_SECTION_END();
 
Last edited:

columbus

Well-Known Member
#17
CONSTRCTION:

Construction is quite simple.
1.Plot Bollinger Band (20,2).
2.Plot EMA-3,9,15 in white colour.
3.Plot EMA-4,5,6,7 and 8 in Blue colour.
4.Plot EMA-10,11,12,13 and 14 in red colour.
If blue strip is over red strip go for BUY.
If blue strip is down red strip go for SELL.


 
Last edited:
#18
http://img189.imageshack.us/img189/9488/chartminifty130112011.png






afl used in above image is given below.



_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
//Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );


a=EMA(C,3) ;
b=EMA(C,9) ;
d=EMA(C,15) ;

e=EMA(C,4) ;
f=EMA(C,5) ;
g=EMA(C,6) ;
i=EMA(C,7) ;
j=EMA(C,8) ;

k=EMA(C,10) ;
L=EMA(C,11) ;
m=EMA(C,12) ;
n=EMA(C,13) ;
p=EMA(C,14) ;

Plot(a,"",colorWhite,styleLine + styleThick + styleNoLabel) ;
//Plot(b,"",colorWhite,styleLine + styleThick) ;
//Plot(d,"",colorWhite,styleLine + styleThick) ;

Plot(e,"",colorBrightGreen,styleLine + styleNoLabel) ;
Plot(f,"",colorBrightGreen,styleLine + styleNoLabel) ;
Plot(g,"",colorBrightGreen,styleLine + styleNoLabel) ;
Plot(i,"",colorBrightGreen,styleLine + styleNoLabel) ;
Plot(j,"",colorBrightGreen,styleLine + styleNoLabel) ;

Plot(b,"",colorWhite,styleLine + styleThick + styleNoLabel) ;


Plot(k,"",colorRed,styleLine + styleNoLabel) ;
Plot(L,"",colorRed,styleLine + styleNoLabel) ;
Plot(m,"",colorRed,styleLine + styleNoLabel) ;
Plot(n,"",colorRed,styleLine + styleNoLabel) ;
Plot(p,"",colorRed,styleLine + styleNoLabel) ;

Plot(d,"",colorWhite,styleLine + styleThick + styleNoLabel) ;

Plot(MA(C,20),"",colorGold,styleLine + styleThick + styleNoLabel) ;

/*======================================================
FOREX INTRADAY HEIKIN ASHI + PIVOT POINTS
======================================================*/

//---- heikin ashi

HaClose = (O+H+L+C)/4;
HaOpen = AMA( Ref( HaClose, -1 ), 0.3 );
HaHigh = Max( H, Max( HaClose, HaOpen ) );
HaLow = Min( L, Min( HaClose, HaOpen ) );
xDiff = (HaHigh - Halow) * IIf(StrFind(Name(),"JPY"),100,10000);
barcolor = IIf(HaClose >= HaOpen,colorGreen,colorRed);
PlotOHLC( HaOpen, HaHigh, HaLow, HaClose, "", barcolor, styleCandle );
// Plot(EMA(HaClose,9),"",colorWhite, styleLine);
// Plot(EMA(HaClose,18),"",colorBlack, styleLine);

//Plot( C*.995, "Close", colorWhite , styleNoTitle | styleLine );



//Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );



//_SECTION_END();

//_SECTION_BEGIN("Bollinger Bands");
P = ParamField("Price field",-1);
Periods = Param("Periods", 20, 2, 300, 1 );
Width = Param("Width", 2, 0, 10, 0.05 );
Color = ParamColor("Color", colorCycle );
Style = ParamStyle("Style");
Plot( BBandTop( P, Periods, Width ), "BBTop" + _PARAM_VALUES(), colorBrightGreen, styleLine + styleThick);
Plot( BBandBot( P, Periods, Width ), "BBBot" + _PARAM_VALUES(), colorRed, styleLine + styleThick);
_SECTION_END();



_SECTION_BEGIN("Magnified Market Price");
//by Vidyasagar, [email protected]//
FS=Param("Font Size",30,30,100,1);
GfxSelectFont("Arial", FS, 900, italic = False, underline = False, True );
GfxSetBkMode( colorWhite );
GfxSetTextColor( ParamColor("Color",colorYellow) );
//Hor=Param("Horizontal Position",800,800,800,800);

Hor=Param("Horizontal Position",500,500,200,20);




Ver=Param("Vertical Position",50,50,250,50);
GfxTextOut(""+C,Hor , Ver );
YC=TimeFrameGetPrice("C",inDaily,-1);
DD=Prec(C-YC,2);
xx=Prec((DD/YC)*100,2);
GfxSelectFont("Arial", 12, 700, italic = False, underline = False, True );
GfxSetBkMode( colorWhite );
GfxSetTextColor(ParamColor("Color",colorYellow) );
GfxTextOut(""+DD+" ("+xx+"%)", Hor+5, Ver+45 );
_SECTION_END();




_SECTION_BEGIN("Price Line");

PriceLineColor=ParamColor("PriceLineColor",ColorRGB(82,82,82));
PriceLevel = ParamField("PriceField", field = 3 );

Daysback = Param("Bars Back",100,10,500,1);
FirstBar = BarCount - DaysBack;
YY = IIf(BarIndex() >= Firstbar,EndValue(PriceLevel),Null);

Plot(YY,"Current Price",PriceLineColor,ParamStyle("LineStyle",styleLine|styleDashed|styleNoTitle|styleNoLabel|styleThick,maskAll));


side = Param("side",1,0,1000,1);

dist = 0;

for( i = 0; i < BarCount; i++ )
{
if(i+side== BarCount) PlotText( "\n " + PriceLevel[ i ], i, YY[ i ]-dist, colorLightBlue );
}


_SECTION_END();

_SECTION_BEGIN("kgs 12 26 ma buy sell");


a=EMA(C,3) ;
b=EMA(C,9) ;

Buy = Cross( a,b );
Sell = Cross( b,a );
//Short = Sell;
//Cover = Buy;

//AlertIf( Buy, "", "MA cross BUY", 1,1+2 );

//AlertIf( Sell, "", "MA cross SELL", 2 ,1+2);

PlotShapes( shapeUpTriangle*Buy, colorWhite, 0, L, -15 );
PlotShapes( shapeDownTriangle*Sell, colorGold, 0, H, -15 );
_SECTION_END();
 
Last edited:

Similar threads