Saravanan Notes

SaravananKS

Well-Known Member
#31
Trading Using Camarilla Pivots

backtesting-trading-camarilla-pivots

You Can Get Rules @
Trade Set Up

For Calculations
Calculations By SG

For AFL
AFL For Camirilla

Why Can Not automate
Why Not Automate

More Experince from ACX
http://www.traderji.com/day-trading/27311-backtesting-trading-camarilla-pivots-9.html#post304723

Charts
http://www.traderji.com/day-trading/27311-backtesting-trading-camarilla-pivots-26.html#post315964

http://www.traderji.com/day-trading/27311-backtesting-trading-camarilla-pivots-27.html#post316445

Fine Tuning
http://www.traderji.com/day-trading/27311-backtesting-trading-camarilla-pivots-29.html#post317239

Trading Examples
http://www.traderji.com/day-trading/27311-backtesting-trading-camarilla-pivots-34.html#post349806

http://www.traderji.com/day-trading/27311-backtesting-trading-camarilla-pivots-34.html#post351287

http://www.traderji.com/day-trading/27311-backtesting-trading-camarilla-pivots-34.html#post351960

http://www.traderji.com/day-trading/27311-backtesting-trading-camarilla-pivots-37.html#post353156

http://www.traderji.com/day-trading/27311-backtesting-trading-camarilla-pivots-38.html#post353517

http://www.traderji.com/day-trading/27311-backtesting-trading-camarilla-pivots-40.html#post354131

http://www.traderji.com/day-trading/27311-backtesting-trading-camarilla-pivots-64.html#post505703

An Write Up Which I Liked
http://www.traderji.com/day-trading/27311-backtesting-trading-camarilla-pivots-39.html#post353690

More Observations
http://www.traderji.com/day-trading/27311-backtesting-trading-camarilla-pivots-40.html#post354131

More Links
http://www.traderji.com/day-trading/27311-backtesting-trading-camarilla-pivots-83.html#post732394

Document
http://www.traderji.com/day-trading/27311-backtesting-trading-camarilla-pivots-84.html#post735233
 
Last edited:

SaravananKS

Well-Known Member
#37
Simple Tricks AFL
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() );

DayH = TimeFrameGetPrice("H", inDaily, -1); DayHI = LastValue (Dayh,1);// Daily high
DayL = TimeFrameGetPrice("L", inDaily, -1); DayLI = LastValue (Dayl,1); // Daily low

numbars = LastValue(Cum(Status("barvisible")));
hts = -33.5;


YHL = ParamToggle("Yesterday HI LO","Show|Hide",1);
if(YHL==1) {
Plot(DayL,"DL",colorDarkBlue,styleDots|styleNoLine |styleNoRescale|styleNoTitle);
Plot(DayH,"DH",colorRed,styleDots|styleNoLine|styl eNoRescale|styleNoTitle);
PlotText(" DH " , LastValue(BarIndex())-(numbars/Hts), DayHI, colorBlue);
PlotText(" DL " , LastValue(BarIndex())-(numbars/Hts), DayLI, colorBlue);
}

Buy=C>DayH;
Sell=C<DayL;
S= (DayH-DayL)/2;
SL1=DayH-S;
SL2=DayL+S;

PlotShapes(IIf(Sell==1, shapeDownArrow, shapeNone), colorRed, 0,High, Offset=-20);
PlotShapes(IIf(Buy==1, shapeUpArrow , shapeNone), colorGreen, 0,Low, Offset=-20);
Plot (SL1, "SL1",colorRed,styleLine,styleThick|styleNoRescale |styleNoTitle);
Plot (SL2, "SL2",colorBlue,styleLine,styleThick|styleNoRescal e|styleNoTitle);




SetChartBkColor(colorLightYellow);

_SECTION_BEGIN("ATP");
Atp=ParamToggle("ATP","Off|On",1);
if(Atp==1)
{


DayChange = Day() != Ref(Day(), -1);
AvgTradePrice = Null;
CurDayBars = 0;
CurDayCloseSum = 0;

for (i = 0; i < BarCount; i++)
{
if (DayChange)
{
CurDayCloseSum = C;
CurDayBars = 1;
}
else
{
CurDayCloseSum = CurDayCloseSum + C;
CurDayBars++;
}
AvgTradePrice = CurDayCloseSum / CurDayBars;
}
Plot(AvgTradePrice, "AvgTradePrice",colorPlum,styleDots);
ATP=AvgTradePrice;

_SECTION_END();}

_SECTION_BEGIN("Magnified Market Price");
//by Vidyasagar, [email protected]//
FS=Param("Font Size",12,12,100,1);
GfxSelectFont("Arial", FS, 900, italic = False, underline = False, True );
GfxSetBkMode( colorWhite );
GfxSetTextColor( ParamColor("Color",colorBlack) );
Hor=Param("Horizontal Position",1000,1000,1000,1000);
Ver=Param("Vertical Position",17,17,17,17);
GfxTextOut(""+C,Hor , Ver );
YC=TimeFrameGetPrice("C",inDaily,-1);
DD=Prec(C-YC,2);
xx=Prec((DD/YC)*100,2);
GfxSelectFont("Arial", 8, 700, italic = False, underline = False, True );
GfxSetBkMode( colorWhite );
GfxSetTextColor(ParamColor("Color",colorYellow) );
GfxTextOut(""+DD+" ("+xx+"%)", Hor+5, Ver+45 );
_SECTION_END();
 

Similar threads