Tuesday, March 20, 2012

Camarilla Pivot Lines AFL


CAMARILLA PIVOT LINES

Some people prefer Camarilla Pivot Points . This AFL serves the purpose and it works very well on the
60 Minute Intraday chart showing the pivot lines quite clearly.

After reading the AFL formula changes can be made quite effectively through Parameters window according to personal preferences.

Read Also: Top 10 Amibroker AFL For Easy Trading

==========================Copy The Code Shown Below==========================





P1=Param("P1",1,0.00,2,0.01);

TimeFrameSet( inDaily );

R5 = (H/L)*C;

R4 = (((H/L)+P1)/(1+P1))*C;

R3 = (((H/L)+(1+2*P1))/(2+2*P1))*C;

R2 = (((H/L)+(1+4*P1))/(2+4*P1))*C;

R1 = (((H/L)+(1+8*P1))/(2+8*P1))*C;

S5 = C - (R5-C);

S4 = C - (R4-C);

S3 = C - (R3-C);

S2 = C - (R2-C);

S1 = C - (R1-C);

TimeFrameRestore(); // restore time frame to original

Plot(TimeFrameExpand(R1, inDaily),"R1",1,1);

Plot(TimeFrameExpand(R2, inDaily),"R2",2,1);

Plot(TimeFrameExpand(R3, inDaily),"R3",3,1);

Plot(TimeFrameExpand(R4, inDaily),"R4",4,1);

Plot(TimeFrameExpand(R5, inDaily),"R5",5,1);

Plot(TimeFrameExpand(S1, inDaily),"S1",1,1);

Plot(TimeFrameExpand(S2, inDaily),"S2",2,1);

Plot(TimeFrameExpand(S3, inDaily),"S3",3,1);

Plot(TimeFrameExpand(S4, inDaily),"S4",4,1);

Plot(TimeFrameExpand(S5, inDaily),"S5",5,1);

Plot(Close,"Close",colorBlue,styleCandle,styleThick);
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 )));
}


===============================The End===================================


Camarilla Pivot Lines AFL as applied to 60 Minute Intraday Chart of a Scrip called RELIANCE listed on the National Stock Exchange of India. This screenshot image will give an idea of the purpose of AFL.

No comments:

Post a Comment

Required US Government Disclaimer & CTFC Rule 4.41

Futures trading contains substantial risk and is not suitable for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones financial security or lifestyle. Only consider risk capital that should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. CTFC RULE 4.41 – HYPOTHETICAL OR SIMULATED PERFORMANCE RESULTS HAVE CERTAIN LIMITATIONS. UNLIKE AN ACTUAL PERFORMANCE RECORD, SIMULATED RESULTS DO NOT REPRESENT ACTUAL TRADING. ALSO, SINCE THE TRADES HAVE NOT BEEN EXECUTED, THE RESULTS MAY HAVE UNDER-OR-OVER COMPENSATED FOR THE IMPACT, IF ANY, OF CERTAIN MARKET FACTORS SUCH AS LIQUIDITY. SIMULATED TRADING PROGRAMS IN GENERAL ARE ALSO SUBJECT TO THE FACT THAT THEY ARE DESIGNED WITH THE BENEFIT OF HINDSIGHT. NO REPRESENTATION IS BEING MADE THAT ANY ACCOUNT WILL OR IS LIKELY TO ACHIEVE PROFIT OR LOSSES SIMILAR TO THOSE SHOWN. All trades, patterns, charts, systems, etc., discussed in this website or advertisement are for illustrative purposes only and not construed as specific advisory recommendations. All ideas and materials presented herein are for information and educational purposes only. No system or trading methodology has ever been developed that can guarantee profits or prevent losses. The testimonials and examples used herein are exceptional results which do not apply to average people and are not intended to represent or guarantee that anyone will achieve the same or similar results. Trades placed on the reliance of Trend Methods systems are taken at your own risk for your own account. This is not an offer to buy or sell futures interests.