SH's Intraday Strategy - ELH5

Thanks Sir for another great strategy.

Can any Ichart user help me. The default EMAs provided there use the close price. How to set ema for high and lows in ichart premium?
Kindly do respond if someone knows the answer.

Thanks
 
Thanks Sir for another great strategy.

Can any Ichart user help me. The default EMAs provided there use the close price. How to set ema for high and lows in ichart premium?
Kindly do respond if someone knows the answer.

Thanks
in i charts instead of jcharts(basic) or jcharts(premium)..use LIVE CHARTS...there u can do d required settings..
 

daitya

Active Member
Dear friends,
Can any one make change colour of emaH & emaL lines.....please guide here...
OK I have changed the color..

Here is the afl

/////SH Intraday Statregy - ELH5/////////////////
_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
if( ParamToggle("Tooltip shows", "All Values|Only Prices" ) )
{
ToolTip=StrFormat("Open: %g\nHigh: %g\nLow: %g\nClose: %g (%.1f%%)\nVolume: "+NumToStr( V, 1 ), O, H, L, C, SelectedValue( ROC( C, 1 )));
}

Plot(a=EMA(H,5),"H5",colorred,1);
Plot(b=EMA(L,5),"L5",colordarkgreen,1);

Buytrigger = C>a AND Ref(C,-1) > Ref(a, -1);
selltrigger = C<b AND Ref(C,-1) < Ref(b, -1);

shape=Buytrigger*shapeUpArrow + selltrigger*shapeDownArrow;
PlotShapes(shape,IIf(Buytrigger,1,1));

//////////////end of code///////////

If anyone wants other color then just change red and darkgreen to whatever color he like..(should be permitted by amibroker :D)
 

Nava

Active Member
OK I have changed the color..

Here is the afl

/////SH Intraday Statregy - ELH5/////////////////
_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
if( ParamToggle("Tooltip shows", "All Values|Only Prices" ) )
{
ToolTip=StrFormat("Open: %g\nHigh: %g\nLow: %g\nClose: %g (%.1f%%)\nVolume: "+NumToStr( V, 1 ), O, H, L, C, SelectedValue( ROC( C, 1 )));
}

Plot(a=EMA(H,5),"H5",colorred,1);
Plot(b=EMA(L,5),"L5",colordarkgreen,1);

Buytrigger = C>a AND Ref(C,-1) > Ref(a, -1);
selltrigger = C<b AND Ref(C,-1) < Ref(b, -1);

shape=Buytrigger*shapeUpArrow + selltrigger*shapeDownArrow;
PlotShapes(shape,IIf(Buytrigger,1,1));

//////////////end of code///////////

If anyone wants other color then just change red and darkgreen to whatever color he like..(should be permitted by amibroker :D)
Hi,
Thanks for the AFL. I am getting "Missing Buy/Sell Variables..." error
How to rectify this error..?
 
one small query..if opposite signal is triggred then we shall exit at candle close..or we shall wait for the hi/low of that trigger candle to exit..(& that too wd sum filter or without filter).
 
Charts added for yesterday marked with all trades above. There was a third short entry also possible 2.45 PM bar which I did not take since 5 EMAH was not fully touched.

Small amendment in above, the second long gave only 10 point loss and not 20. So profit from yesterday was again around 50 points.

This means that we are 150+ points in profit in last 5 trading days.:thumb:

Lets see what today brings.

http://img252.imageshack.us/img252/1433/screenhunter01dec070850.gif
Cheers
SH
Hi Friends,

We had 4 trades yesterday (marked on the charts attached) and all gave profits so we made 80 points profit yesterday.

Our total profit in last 6 days has gone up to 230+ points which is a good start!

Lets see what today brings. The global market cues are flat so we need to be slightly cautious of a small range day. Remember - 2 consecutive SLs mean no more trades for the day.

Enjoy!

http://img32.imageshack.us/img32/1099/screenhunter01dec080840.gif

Cheers
SH
 

Similar threads