Mudraa.com
Search Mudraa.com

Home










Topic: Learning Section
rajaswamy s
View Profile

AFL WRITING FOR AMIBROKER

From : Rajaswamy S at 07:59 PM - Sep 26, 2011 ( )
Total Views: 2614


Share it on Facebook

HI SIR/ MAM

       HERE ANY BODY KNOW AFL WRITING IF SO PLS REPLY I WANT TO WRITE ONE THINK PLS




In Reply to above Message (1 to 20 out of 24) -- Latest Replies are put on Top | First | << Previous | Next >> | Last |
Akshat Jain
View Profile
From : Akshat Jain at 10:27 PM - Sep 27, 2011 ( )

From : Jitendra Singh at 09:11 PM - Sep 27, 2011 (1 hours ago)

DEAR AKSHAT JI YOUR MULTIPIVOT POINT AMIBROKER AFL IS GIVING ERROR PLS CORRECT THIS

 

THE AFL HAS BEEN CORRECTED BY MISTAKE HAD GIVEN A SPACE IN BETWEEN THE FORMULAS YOU CAN BACK TEST THE SAME NOW

JAI GANESGA


Akshat Jain
View Profile
From : Akshat Jain at 10:24 PM - Sep 27, 2011 ( )

WORKING AND TESTED AFL :)

JAI GANESHA

 

_SECTION_BEGIN("Multi Pivots");
_SECTION_BEGIN ("Multi Pivots - StockManiacs");
//chart colors
SetChartBkColor(ParamColor("Outer panel",colorSkyblue));
SetChartBkGradientFill(
ParamColor("Inner panel upper",colorLightBlue),
ParamColor("Inner panel lower",colorLightYellow)
,ParamColor("TitleBlock",colorWhite));
SetChartOptions(0,chartShowDates|chartShowArrows|chartLogarithmic|chartWrapTitle);

//basic price plotting
_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() );

T_F =ParamList("Pivot T_F","iDay|Hourly|2_Hrs|3_Hrs|4_Hrs|EOD|Weekly|Mon thly");

if (T_F=="iDay")
{
H_1 = TimeFrameGetPrice( "H", inDaily, -1 );
L_1 = TimeFrameGetPrice( "L", inDaily, -1 );
C_1 = TimeFrameGetPrice( "C", inDaily, -1 );
O = TimeFrameGetPrice("O", inDaily); // current day's open
}
else if (T_F == "Hourly")
{
H_1 = TimeFrameGetPrice( "H", inHourly, -1 );
L_1 = TimeFrameGetPrice( "L", inHourly, -1 );
C_1 = TimeFrameGetPrice( "C", inHourly, -1 );
O = TimeFrameGetPrice( "O", inHourly );
}
else if (T_F == "2_Hrs")
{
H_1 = TimeFrameGetPrice( "H", inHourly*2, -1 );
L_1 = TimeFrameGetPrice( "L", inHourly*2, -1 );
C_1 = TimeFrameGetPrice( "C", inHourly*2, -1 );
O = TimeFrameGetPrice( "O", inHourly*2);
}
else if (T_F == "3_Hrs")
{
H_1 = TimeFrameGetPrice( "H", inHourly*3, -1 );
L_1 = TimeFrameGetPrice( "L", inHourly*3, -1 );
C_1 = TimeFrameGetPrice( "C", inHourly*3, -1 );
O = TimeFrameGetPrice( "O", inHourly*3);
}
else if (T_F == "4_Hrs")
{
H_1 = TimeFrameGetPrice( "H", inHourly*4, -1 );
L_1 = TimeFrameGetPrice( "L", inHourly*4, -1 );
C_1 = TimeFrameGetPrice( "C", inHourly*4, -1 );
O = TimeFrameGetPrice( "O", inHourly*4 );

}
else if (T_F == "EOD")
{
H_1 = TimeFrameGetPrice( "H", inDaily, 0 );
L_1 = TimeFrameGetPrice( "L", inDaily, 0 );
C_1 = TimeFrameGetPrice( "C", inDaily, 0 );
O = TimeFrameGetPrice( "O", inDaily );

}
else if (T_F == "Weekly")
{
H_1 = TimeFrameGetPrice( "H", inWeekly, -1 );
L_1 = TimeFrameGetPrice( "L", inWeekly, -1 );
C_1 = TimeFrameGetPrice( "C", inWeekly, -1 );
O = TimeFrameGetPrice( "O", inWeekly );
}
else if (T_F == "Monthly")
{
H_1 = TimeFrameGetPrice( "H", inMonthly, -1 );
L_1 = TimeFrameGetPrice( "L", inMonthly, -1 );
C_1 = TimeFrameGetPrice( "C", inMonthly, -1 );
O = TimeFrameGetPrice( "O", inMonthly );
}

// To calculate the Pivot Levels

R = H_1 - L_1; // Range
_N(Pivot =ParamList("Pivot Type ", "Classical|Woodies|Fibonacci|WF"));

if (Pivot =="Classical" )
{
PP = (H_1 + L_1 + C_1) / 3;
r1 = (2 * PP) - L_1 ;
s1 = (2 * PP) - H_1 ;
r2 = PP - s1 + r1;
s2 = PP - (r1 - s1) ;
r3 = 2 * (PP - L_1) + H_1 ;
s3 = L_1 - (2 * (H_1 - PP));
r4 = Null;
s4 = Null;
}
else if(Pivot =="Woodies" )
{
PP = (H_1 + L_1 + C_1 + O) / 4;
r1 = (2 * PP) - L_1;
r2 = PP + R;
r3 = H_1 + 2 * (PP - L_1);
r4 = r3 + R;
s1 = (2 * PP) - H_1;
s2 = PP - R;
s3 = L_1 - 2 * (H_1 - PP);
s4 = S3 - R;
}

else if(Pivot =="Fibonacci" )
{
PP = (H_1 + L_1 + C_1) / 3;
r3 = PP + 1.000 * R;
r2 = PP + 0.618 * R;
r1 = PP + 0.382 * R;
s1 = PP - 0.382 * R;
s2 = PP - 0.618 * R;
s3 = PP - 1.000 * R;
r4 = Null;
s4 = Null;
}
else if (Pivot == "WF")
{
PP = (H_1 + L_1 + O + O) / 4;
s1 = PP - (R * 0.38);
s2 = PP - (R * 0.62);
s3 = PP - (R * 1.272);
r1 = PP + (R * 0.38);
r2 = PP + (R * 0.62);
r3 = PP + (R * 1.272);
r4 = Null;
s4 = Null;
}

//Defining TF on charts
procedure AddT_fParam(defaultvalue)
{
global T_F;
T_F = ParamList("Time Frame", List = "iDay|Hourly|2_Hrs|3_Hrs|4_Hrs|EOD|Weekly|Monthly" , defaultvalue);

if(T_F == "iDay") T_F = inDaily;
else if(T_F == "Hourly") T_F = inHourly;
else if(T_F == "2_Hrs") T_F = inHourly*2;
else if(T_F == "3_Hrs") T_F = inHourly*3;
else if(T_F == "4_Hrs") T_F = inHourly*4;
else if(T_F == "EOD") T_F = inDaily;
else if(T_F == "Weekly") T_F = inWeekly;
else if(T_F == "Montly") T_F = inMonthly;
}

// Plot Pivot Levels in the charts

Plot (PP,"PP",colorViolet,styleDots,styleThick,1);
Plot (r1,"R1",colorDarkRed,styleLine,styleThick,1);
Plot (r2,"R2",colorDarkRed,styleLine,styleThick,1);
Plot (r3,"R3",colorDarkRed,styleLine,styleThick,1);
Plot (s1,"S1",colorDarkGreen,styleLine,styleThick,1);
Plot (s2,"S2",colorDarkGreen,styleLine,styleThick,1);
Plot (s3,"S3",colorDarkGreen,styleLine,styleThick,1);
Plot (r4,"R4",colorDarkRed,styleLine,styleThick,1);
Plot (s4,"S4",colorDarkGreen,styleLine,styleThick,1);


// Add Pivot levels on charts as text
Title = Title + EncodeColor(colorDarkTeal)+
"\n,Pivot T_F = "+T_F + " \n " +
EncodeColor(colorRed)+"R4 = "+ r4 +"\n"+
EncodeColor(colorRed)+"R3 = "+ r3 +"\n"+
EncodeColor(colorRed)+"R2 = "+ r2 + "\n"+
EncodeColor(colorRed)+"R1 = "+ r1 + "\n"+ "\n"+
EncodeColor(colorViolet)+"PP = "+ PP + "\n"+ "\n" +
EncodeColor(colorGreen)+"S1 = "+ s1 + "\n"+
EncodeColor(colorGreen)+"S2 = "+ s2 + "\n"+
EncodeColor(colorGreen)+"S3 = "+ s3 + "\n"+
EncodeColor(colorGreen)+"S4 = "+ s4 + " \n" ;

_SECTION_END ();
_SECTION_END();


Jitendra Singh
View Profile
From : Jitendra Singh at 09:11 PM - Sep 27, 2011 ( )

DEAR AKSHAT JI YOUR MULTIPIVOT POINT AMIBROKER AFL IS GIVING ERROR PLS CORRECT THIS


Jitendra Singh
View Profile
From : Jitendra Singh at 09:03 PM - Sep 27, 2011 ( )

THIS AFL IS MODIFIED BY ME

_SECTION_BEGIN

("HA");

//2 - IN - 1 PRICE CHART

Pstyle =

ParamToggle("Heikin Ashi","On|Off",1);

if

 

(Pstyle==0){

HaClose = (O+H+L+C)/

4;

HaOpen =

AMA( Ref( HaClose, -1 ), 0.5 );

HaHigh =

Max( H, Max( HaClose, HaOpen ) );

HaLow =

Min( L, Min( HaClose, HaOpen ) );

PlotOHLC

(HaOpen,HaHigh,HaLow,HaClose,"",IIf(HaClose >

HaOpen,colorGreen,colorBrown),styleCandle);

 

_N

(Title = StrFormat(

"{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g,

 

Close

%g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));

}

else

 

{

_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() );

}

 

 

 

//TIME FRAME CALCULATION

H1 =

TimeFrameGetPrice("H", inDaily, -1); // yesterdays high

L1 =

TimeFrameGetPrice("L", inDaily, -1); // low

C1=

TimeFrameGetPrice("C", inDaily, -1); // close

DayO =

TimeFrameGetPrice("O", inDaily); // current day open

 

// PIVOT Calculation

P = ( H1+ L1 + C1 )/

3;

S1 = (

2*P)-H1;

R1 = (

2*P)-L1;

S2 = P -(H1 - L1);

S3 = S1 - (H1-L1);

R2 = P +(H1 - L1);

R3 = R1 +(H1-L1);

// PIVOT mid points

MIDR1 = (P+R1)/

2;

MIDR2 = (R1+R2)/

2;

MIDR3 = (R2+R3)/

2;

MIDS1 = (P+S1)/

2;

MIDS2 = (S1+S2)/

2;

MIDS3 = (S2+S3)/

2;

//PLOTS

Plot

(R1, "",colorBrightGreen,styleDots+styleNoRescale);

Plot

(R2, "",colorCustom12,styleDots);

Plot

(S1, "",colorPink,styleDots+styleNoRescale);

Plot

(S1, "",colorRed,styleDots+styleNoRescale);

Plot

(S2, "",colorBlue,styleDots+styleNoRescale);

Plot

(S3, "",colorOrange,styleDots+styleNoRescale);

Plot

(P, "",colorYellow,styleDots+styleNoRescale);

// text section

"HIGH /LOW /CLOSE = "

+H +" / "+ L+" / "+ C +"\n";

"H1 /L1 /C1 = "

+H1 +" / "+ L1+" / "+ C1 +"\n";

"R3 = "

+R3;

"midr3 = "

+MIDR3;

"R2 = "

+R2;

"midr2 = "

+MIDR2;

"R1 = "

+R1;

"midr1 = "

+MIDR1;

"*************"

;

"p = "

+p;

"*************"

;

"mids1 = "

+MIDS1;

"S1 = "

+S1;

"mids2 = "

+MIDS2;

"S2 = "

+S2;

"mids3 = "

+MIDS3;

"S3 = "

+S3;

_SECTION_END

();

//Topping Bar

//Range = H - L ;

//TPB = Volume > MA(Volume,9) AND Close < Low + Range/2 AND Range <= Ref(Range,-1);

//PlotShapes(shapeSmallCircle * TPB,colorYellow,0,H,20);


Akshat Jain
View Profile
From : Akshat Jain at 08:36 PM - Sep 27, 2011 ( )

This is the afl i had found in my collection, as didnt get time to modify the same, you can try out this afl and get on with the work

Wish you good luck

Jai Ganesha


Akshat Jain
View Profile
From : Akshat Jain at 08:35 PM - Sep 27, 2011 ( )

_SECTION_BEGIN("Multi Pivots");
_SECTION_BEGIN ("Multi Pivots - StockManiacs");
//chart colors
SetChartBkColor(ParamColor("Outer panel",colorSkyblue));
SetChartBkGradientFill(
ParamColor("Inner panel upper",colorLightBlue),
ParamColor("Inner panel lower",colorLightYellow)
,ParamColor("TitleBlock",colorWhite));
SetChartOptions(0,chartShowDates|chartShowArrows|c hartLogarithmic|chartWrapTitle);

//basic price plotting
_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() );

T_F =ParamList("Pivot T_F","iDay|Hourly|2_Hrs|3_Hrs|4_Hrs|EOD|Weekly|Mon thly");

if (T_F=="iDay")
{
H_1 = TimeFrameGetPrice( "H", inDaily, -1 );
L_1 = TimeFrameGetPrice( "L", inDaily, -1 );
C_1 = TimeFrameGetPrice( "C", inDaily, -1 );
O = TimeFrameGetPrice("O", inDaily); // current day's open
}
else if (T_F == "Hourly")
{
H_1 = TimeFrameGetPrice( "H", inHourly, -1 );
L_1 = TimeFrameGetPrice( "L", inHourly, -1 );
C_1 = TimeFrameGetPrice( "C", inHourly, -1 );
O = TimeFrameGetPrice( "O", inHourly );
}
else if (T_F == "2_Hrs")
{
H_1 = TimeFrameGetPrice( "H", inHourly*2, -1 );
L_1 = TimeFrameGetPrice( "L", inHourly*2, -1 );
C_1 = TimeFrameGetPrice( "C", inHourly*2, -1 );
O = TimeFrameGetPrice( "O", inHourly*2);
}
else if (T_F == "3_Hrs")
{
H_1 = TimeFrameGetPrice( "H", inHourly*3, -1 );
L_1 = TimeFrameGetPrice( "L", inHourly*3, -1 );
C_1 = TimeFrameGetPrice( "C", inHourly*3, -1 );
O = TimeFrameGetPrice( "O", inHourly*3);
}
else if (T_F == "4_Hrs")
{
H_1 = TimeFrameGetPrice( "H", inHourly*4, -1 );
L_1 = TimeFrameGetPrice( "L", inHourly*4, -1 );
C_1 = TimeFrameGetPrice( "C", inHourly*4, -1 );
O = TimeFrameGetPrice( "O", inHourly*4 );

}
else if (T_F == "EOD")
{
H_1 = TimeFrameGetPrice( "H", inDaily, 0 );
L_1 = TimeFrameGetPrice( "L", inDaily, 0 );
C_1 = TimeFrameGetPrice( "C", inDaily, 0 );
O = TimeFrameGetPrice( "O", inDaily );

}
else if (T_F == "Weekly")
{
H_1 = TimeFrameGetPrice( "H", inWeekly, -1 );
L_1 = TimeFrameGetPrice( "L", inWeekly, -1 );
C_1 = TimeFrameGetPrice( "C", inWeekly, -1 );
O = TimeFrameGetPrice( "O", inWeekly );
}
else if (T_F == "Monthly")
{
H_1 = TimeFrameGetPrice( "H", inMonthly, -1 );
L_1 = TimeFrameGetPrice( "L", inMonthly, -1 );
C_1 = TimeFrameGetPrice( "C", inMonthly, -1 );
O = TimeFrameGetPrice( "O", inMonthly );
}

// To calculate the Pivot Levels

R = H_1 - L_1; // Range
_N(Pivot =ParamList("Pivot Type ", "Classical|Woodies|Fibonacci|WF"));

if (Pivot =="Classical" )
{
PP = (H_1 + L_1 + C_1) / 3;
r1 = (2 * PP) - L_1 ;
s1 = (2 * PP) - H_1 ;
r2 = PP - s1 + r1;
s2 = PP - (r1 - s1) ;
r3 = 2 * (PP - L_1) + H_1 ;
s3 = L_1 - (2 * (H_1 - PP));
r4 = Null;
s4 = Null;
}
else if(Pivot =="Woodies" )
{
PP = (H_1 + L_1 + C_1 + O) / 4;
r1 = (2 * PP) - L_1;
r2 = PP + R;
r3 = H_1 + 2 * (PP - L_1);
r4 = r3 + R;
s1 = (2 * PP) - H_1;
s2 = PP - R;
s3 = L_1 - 2 * (H_1 - PP);
s4 = S3 - R;
}

else if(Pivot =="Fibonacci" )
{
PP = (H_1 + L_1 + C_1) / 3;
r3 = PP + 1.000 * R;
r2 = PP + 0.618 * R;
r1 = PP + 0.382 * R;
s1 = PP - 0.382 * R;
s2 = PP - 0.618 * R;
s3 = PP - 1.000 * R;
r4 = Null;
s4 = Null;
}
else if (Pivot == "WF")
{
PP = (H_1 + L_1 + O + O) / 4;
s1 = PP - (R * 0.38);
s2 = PP - (R * 0.62);
s3 = PP - (R * 1.272);
r1 = PP + (R * 0.38);
r2 = PP + (R * 0.62);
r3 = PP + (R * 1.272);
r4 = Null;
s4 = Null;
}

//Defining TF on charts
procedure AddT_fParam(defaultvalue)
{
global T_F;
T_F = ParamList("Time Frame", List = "iDay|Hourly|2_Hrs|3_Hrs|4_Hrs|EOD|Weekly|Monthly" , defaultvalue);

if(T_F == "iDay") T_F = inDaily;
else if(T_F == "Hourly") T_F = inHourly;
else if(T_F == "2_Hrs") T_F = inHourly*2;
else if(T_F == "3_Hrs") T_F = inHourly*3;
else if(T_F == "4_Hrs") T_F = inHourly*4;
else if(T_F == "EOD") T_F = inDaily;
else if(T_F == "Weekly") T_F = inWeekly;
else if(T_F == "Montly") T_F = inMonthly;
}

// Plot Pivot Levels in the charts

Plot (PP,"PP",colorViolet,styleDots,styleThick,1);
Plot (r1,"R1",colorDarkRed,styleLine,styleThick,1);
Plot (r2,"R2",colorDarkRed,styleLine,styleThick,1);
Plot (r3,"R3",colorDarkRed,styleLine,styleThick,1);
Plot (s1,"S1",colorDarkGreen,styleLine,styleThick,1);
Plot (s2,"S2",colorDarkGreen,styleLine,styleThick,1);
Plot (s3,"S3",colorDarkGreen,styleLine,styleThick,1);
Plot (r4,"R4",colorDarkRed,styleLine,styleThick,1);
Plot (s4,"S4",colorDarkGreen,styleLine,styleThick,1);


// Add Pivot levels on charts as text
Title = Title + EncodeColor(colorDarkTeal)+
"\n,Pivot T_F = "+T_F + " \n " +
EncodeColor(colorRed)+"R4 = "+ r4 +"\n"+
EncodeColor(colorRed)+"R3 = "+ r3 +"\n"+
EncodeColor(colorRed)+"R2 = "+ r2 + "\n"+
EncodeColor(colorRed)+"R1 = "+ r1 + "\n"+ "\n"+
EncodeColor(colorViolet)+"PP = "+ PP + "\n"+ "\n" +
EncodeColor(colorGreen)+"S1 = "+ s1 + "\n"+
EncodeColor(colorGreen)+"S2 = "+ s2 + "\n"+
EncodeColor(colorGreen)+"S3 = "+ s3 + "\n"+
EncodeColor(colorGreen)+"S4 = "+ s4 + " \n" ;

_SECTION_END ();
_SECTION_END();


rajaswamy s
View Profile
From : Rajaswamy S at 06:08 PM - Sep 27, 2011 ( )

today also i got 19 points in nifty


rajaswamy s
View Profile
From : Rajaswamy S at 05:08 PM - Sep 27, 2011 ( )

sir ji pls finish thet afl


rajaswamy s
View Profile
From : Rajaswamy S at 10:41 AM - Sep 27, 2011 ( )

yes sir i am taking data from this website

http://www.globaldatafeeds.in they giving tick data


Akshat Jain
View Profile
From : Akshat Jain at 10:39 AM - Sep 27, 2011 ( )

From : Rajaswamy S at 09:23 AM - Sep 27, 2011 (1 hours ago) 

sir ji i realy need thet afl which i givened the condition pls if you make thet i will be great full for you i need all the condition has to met

Due you have realtime??

Jai Ganesha


rajaswamy s
View Profile
From : Rajaswamy S at 09:23 AM - Sep 27, 2011 ( )

sir ji i realy need thet afl which i givened the condition pls if you make thet i will be great full for you i need all the condition has to met


Akshat Jain
View Profile
From : Akshat Jain at 08:17 AM - Sep 27, 2011 ( )

I got the point which you are telling, can you confirm that do you have realtime data in amibroker, secondly, this is totaly pivot trading you wont need a afl for this there is a easy way to get 15 min pivot levels.......

What you can do is, after the arkets open from 9:15 to 9:30 take the high low and 930 close at 930 from the terminal tick data and input it in any of the pivot calculators you can get many by searching on google.......

This trading is intra day pivot trading, i have used the same and have the afl also, but better would be if you go for a much easier work and use pivot calculator, this strategy works on 1 side moves, when high volatility is there they might hit stop loss also, this is a lay man tool named as PIVOTS............

One can take eod pivots which are daily pivots, monthly, weekly, yearly, quarterly and etc etc.......

If you want that afl then would post in the night, it would be beneficial if you use it on realtime

Wish you good luck

Jai Ganesha


rajaswamy s
View Profile
From : Rajaswamy S at 11:28 PM - Sep 26, 2011 ( )

SIR JI TODAY CALL I GOT BASED ON THET

INTRA PIVOT WAS 4811

BUY AT 4820 TARGET WAS 4847 ( 27 ) ACHIVED

SELL AT 4793 TARGET WAS 4766 ( 27 ) ACHIVED

I GAINED SOME AROUND 54 POINTS TODAY YOU CAN CHECK BASED ON THIS CONDTION ITS REALY GOOD


rajaswamy s
View Profile
From : Rajaswamy S at 11:13 PM - Sep 26, 2011 ( )

Akshat Jain SIR I FORGET TO TELL ONE MORE CONTION FOR BUY SELL PLS READ CAREFULLY  I AM ADDING THET IN BELOW LINE RED MARKED

CONDITIONS

I WANT THREE BLACK LINES

  • TAKE YESTADAY (H+L+C)/3 { THIS WILL BE FRISTLINE } WE CALL HIM PIVIOT
  • PIVIOT MULTILPY WITH TWO MINUS WITH YESTADAY LOW { THIS WILL BE SECOND LINE }
  • PIVIOT MULTILPY WITH TWO MINUS WITH  YESTADAY HIGH { THIS WILL BE THIRD LINE }

CONDITIONS 2

  • IN FIFTEEN MIN TIME FRAME WHICH CANDLE HIT FRIST TAKE THET CANDLE (H+L+C)/3 WE CALL HIM INTRAPIVIOT { BUT IN THET CANDLE WE WANT MIN 20 POINTS HIGH LOW GAP  (OR) WE CAN TAKE  PREVIOSE THREE CANDLE AS A CHOICE WHICH WILL BE BIGGER  WE CAN TAKE THET CANDLE  ALSO}
  • BUY CONDITION = INTRAPIVIOT MULTILPY WITH TWO MINUS WITH THET CANDLE LOW
  • BUY TARGET =  MINUS INTRA PIVIOT WITH CANDLE LOW MULTIPLY WITH 2 ADD WITH CANDLE HIGH

 

  • SELL CONDITION = INTRAPIVIOT MULTILPY WITH TWO MINUS WITH THET CANDLE HIGH
  • SELL TARGET = MINUS INTRA PIVIOT WITH CANDLE HIGH MULTIPLY WITH 2 ADD WITH CANDLE LOW

THIS STRATAGY GIVING SOMETHINK GOOD FOR ME ARE YOU ABLE TO PLOTE THIS AFL IN AMIBROKER

CONDITION WILL BE THREE BLACK LINE BUY WILL BE  TWO GREEN LINE SELL WILL BE TWO RED LINE

I AM WAITING FOR YOUR REPLY YOU CAN ADD MY MASSANGER ID rajaswamym#y ahoo,com so i can explain more easily


rajaswamy s
View Profile
From : Rajaswamy S at 11:08 PM - Sep 26, 2011 ( )

Akshat Jain SIR I FORGET TO TELL ONE MORE CONTION FOR BUY SELL PLS READ CAREFULLY  I AM ADDING THET IN BELOW LINE RED MARKED

CONDITIONS

I WANT THREE BLACK LINES

  • TAKE YESTADAY (H+L+C)/3 { THIS WILL BE FRISTLINE } WE CALL HIM PIVIOT
  • PIVIOT MULTILPY WITH TWO MINUS WITH YESTADAY LOW { THIS WILL BE SECOND LINE }
  • PIVIOT MULTILPY WITH TWO MINUS WITH  YESTADAY HIGH { THIS WILL BE THIRD LINE }

CONDITIONS 2

  • IN FIFTEEN MIN TIME FRAME WHICH CANDLE HIT FRIST TAKE THET CANDLE (H+L+C)/3 WE CALL HIM INTRAPIVIOT { BUT IN THET CANDLE WE WANT MIN 20 POINTS HIGH LOW GAP }
  • BUY CONDITION = INTRAPIVIOT MULTILPY WITH TWO MINUS WITH THET CANDLE LOW
  • BUY TARGET =  MINUS INTRA PIVIOT WITH CANDLE LOW MULTIPLY WITH 2 ADD WITH CANDLE HIGH

 

  • SELL CONDITION = INTRAPIVIOT MULTILPY WITH TWO MINUS WITH THET CANDLE HIGH
  • SELL TARGET = MINUS INTRA PIVIOT WITH CANDLE HIGH MULTIPLY WITH 2 ADD WITH CANDLE LOW

THIS STRATAGY GIVING SOMETHINK GOOD FOR ME ARE YOU ABLE TO PLOTE THIS AFL IN AMIBROKER

CONDITION WILL BE THREE BLACK LINE BUY WILL BE  TWO GREEN LINE SELL WILL BE TWO RED LINE

I AM WAITING FOR YOUR REPLY


rajaswamy s
View Profile
From : Rajaswamy S at 11:00 PM - Sep 26, 2011 ( )

SIR JI TODAY ALSO I GOT 47 POINTS BASED ON THIS WHAT YOU FEEL ABOUT THIS STRATAGY WHOULD YOU LIKE TO GIVE ANY SUGETION BASED ON THIS SIR


rajaswamy s
View Profile
From : Rajaswamy S at 10:50 PM - Sep 26, 2011 ( )

CONDITIONS

I WANT THREE BLACK LINES

  • TAKE YESTADAY (H+L+C)/3 { THIS WILL BE FRISTLINE } WE CALL HIM PIVIOT
  • PIVIOT MULTILPY WITH TWO MINUS WITH YESTADAY LOW { THIS WILL BE SECOND LINE }
  • PIVIOT MULTILPY WITH TWO MINUS WITH  YESTADAY HIGH { THIS WILL BE THIRD LINE }

CONDITIONS 2

  • IN FIFTEEN MIN TIME FRAME WHICH CANDLE HIT FRIST TAKE THET CANDLE (H+L+C)/3 WE CALL HIM INTRAPIVIOT
  • BUY CONDITION = INTRAPIVIOT MULTILPY WITH TWO MINUS WITH THET CANDLE LOW
  • BUY TARGET =  MINUS INTRA PIVIOT WITH CANDLE LOW MULTIPLY WITH 2 ADD WITH CANDLE HIGH

 

  • SELL CONDITION = INTRAPIVIOT MULTILPY WITH TWO MINUS WITH THET CANDLE HIGH
  • SELL TARGET = MINUS INTRA PIVIOT WITH CANDLE HIGH MULTIPLY WITH 2 ADD WITH CANDLE LOW

THIS STRATAGY GIVING SOMETHINK GOOD FOR ME ARE YOU ABLE TO PLOTE THIS AFL IN AMIBROKER

CONDITION WILL BE THREE BLACK LINE BUY WILL BE  TWO GREEN LINE SELL WILL BE TWO RED LINE

I AM WAITING FOR YOUR REPLY


Akshat Jain
View Profile
From : Akshat Jain at 10:37 PM - Sep 26, 2011 ( )


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() );

H1=SelectedValue( TimeFrameGetPrice( "H", inDaily, -1 ));
L1=SelectedValue(TimeFrameGetPrice( "L", inDaily, -1 ));
C1=SelectedValue(TimeFrameGetPrice( "C", inDaily, -1 ));

/*PIVOT Calculation*/
p = ( H1+ L1 + C1 )/3;
s1 = (2*p)-H1;
r1 = (2*p)-L1;


Plot (p,"CONDITION 1 >> Pivot",25,1);
Plot (r1,"cONDITION 2",12,1);
Plot (s1,"CONDITION 3",3,1);

 

hERE IS THE CODE WHICH YOU WANTED, ITS LOOKS LIKE YOU WANT TO HAVE A PIVOT AFL, IS THAT TRUE, AS THE ABOVE STRATEGY IS BASED ON PIVOTS ONLY AND THE FORMULA WHICH YOU SAID IS CONSIDERED AS RESISTANCE 1 AND SUPPORT 1

 

AM I RIGHT WITH THE THING, YOU ARE LOOKING FOR PIVOT AFL???? IN SHORT??

THE ABOVE AFL HAS BEEN BACK TESTED AND WORKING FINE

JAI GANESHA


Akshat Jain
View Profile
From : Akshat Jain at 10:16 PM - Sep 26, 2011 ( )

From : Rajaswamy S at 10:12 PM - Sep 26, 2011 (2 minutes ago)

 

CONDITIONS

I WANT THREE BLACK LINES

  • TAKE YESTADAY (H+L+C)/3 { THIS WILL BE FRISTLINE } WE CALL HIM PIVIOT
  • PIVIOT MULTILPY WITH TWO MINUS WITH YESTADAY LOW { THIS WILL BE SECOND LINE }
  • PIVIOT MULTILPY WITH TWO MINUS WITH  YESTADAY HIGH { THIS WILL BE THIRD LINE }

SIR JI PLS CREAT THIS AS AFL BALENCE I WILL TELL YOU AFTER CREATING THIS OTHERWISE YOU WILL BE CONFUSE

 

 

Due you want these plotted on the chart or on a exploration?? what else need to be added, the pivot can be added and would work on the other 2 conditions also, but give me full details so as to work accordingly

Jai Ganesha


rajaswamy s
View Profile
From : Rajaswamy S at 10:12 PM - Sep 26, 2011 ( )

CONDITIONS

I WANT THREE BLACK LINES

  • TAKE YESTADAY (H+L+C)/3 { THIS WILL BE FRISTLINE } WE CALL HIM PIVIOT
  • PIVIOT MULTILPY WITH TWO MINUS WITH YESTADAY LOW { THIS WILL BE SECOND LINE }
  • PIVIOT MULTILPY WITH TWO MINUS WITH  YESTADAY HIGH { THIS WILL BE THIRD LINE }

SIR JI PLS CREAT THIS AS AFL BALENCE I WILL TELL YOU AFTER CREATING THIS OTHERWISE YOU WILL BE CONFUSE


1 to 20 out of 24 | First | << Previous | Next >> | Last |
(1) 2

Login to participate in discussion.



Recently Discussed Posts of Rajaswamy S

General Discussion >> Fire Waterfall of Yosemite National Park (1)

General Discussion >> Gandhiji's Top 10 Fundamental that can change the World (3)

General Discussion >> Manmohan Singh: 10 brilliant tributes (3)

General Discussion >> WANT TO SEE YOUR FUTURE ( NEED KNOWLDGE ) (7)

General Discussion >> LUCK FAVORS THOSE WHO HELP THEMSELVES (2)