Mudraa.com
Search Mudraa.com

Home







Topic: General Discussion
Gautam MVS
View Profile

AMIBROKER FORMULAS

From : Gautam Mvs at 11:04 PM - Jan 24, 2011 ( )
Total Views:
4 , 13 Bookmark

Share it on Facebook

Dear friends,

I am starting this thread to share AMIBROKER formulas with each other.

I will post some good afl's.

I request you all too,to share your formulas




In Reply to above Message (161 to 180 out of 193) -- Latest Replies are put on Top | First | << Previous | Next >> | Last |
mr elango
View Profile
From : Mr Elango at 11:05 PM - Jan 31, 2011 ( )

gautam pls post some AFL for trendline and suppost .pls reload it 


abhijit babar`
View Profile
From : Abhijit Babar` at 02:01 AM - Jan 31, 2011 ( )

one can try marketdata provider i m using it and those who not able to get where to put this formula

amibroker--analysis--formulaeditor--save follow the path given by moorthy swcc sir

after pesting u will find thisd in chart option left side if not there go to view and select charts

good initiative gautam sir

it will really goin to help all amibroker users thanks


Ranjit Chakraborty
View Profile
From : Ranjit Chakraborty at 10:59 PM - Jan 30, 2011 ( )

Can anyone throw light on where to get current and uptodate fundamental datas for amibroker?


mr elango
View Profile
From : Mr Elango at 10:36 PM - Jan 30, 2011 ( )

the below link also we can use it for anytype of trade intra or delevery


mr elango
View Profile
From : Mr Elango at 10:35 PM - Jan 30, 2011 ( )

//|----------------------------------------------------------------------------------------- //|PatternExplorer.com - Price chart //|Copyright © 2007, PatternExplorer.com //|http://www.PatternExplorer.com //|e-mail: support@PatternExplorer.com //|----------------------------------------------------------------------------------------- FormulaName = "PE - Price Chart";
SetChartOptions(0,chartShowDates|chartShowArrows|chartLogarithmic|chartWrapTitle); #pragma nocache #include_once  <\PEInc\PatternExplorer_f0.afl> #include_once "C:\Program Files\AmiBroker\Formulas\PatternExplorer\#Defaults & Mods\PE - Defaults.afl" #include_once "C:\Program Files\AmiBroker\Formulas\PatternExplorer\#Defaults & Mods\PE - Mods.afl" #include_once  <\PEInc\PatternExplorer_1.afl> /*******************************************************************************************/ AddCustomCodeBeforePE(); /*******************************************************************************************/ Filter = def_Filter AND NOT GroupID()==253; Addefaultcolumns(); AddTextColumn(FullName(),"Full name"); /*******************************************************************************************/ if(inAA) { _SECTION_BEGIN("Fundamental Data"); if(ParamToggle("Show Columns in AA","Off,On",1)) { AddColumn(GetFnData("EPS"),"EPS"); AddColumn(GetFnData("EPSEstCurrentYear"),"EPS Est Current Year"); AddColumn(GetFnData("EPSEstNextYear"),"EPS Est Next Year"); AddColumn(GetFnData("EPSEstNextQuarter"),"EPS Est Next Quarter"); AddColumn(GetFnData("PEGRatio"),"PEG Ratio"); AddColumn(GetFnData("SharesFloat"),"Shares Float",1.0); AddColumn(GetFnData("SharesOut"),"Shares Out",1.0); //AddColumn(GetFnData("DividendPayDate"),"Dividend Pay Date"); //AddColumn(GetFnData("ExDividendDate"),"Ex Dividend Date"); AddColumn(GetFnData("BookValuePerShare"),"Book Value Per Share"); AddColumn(GetFnData("DividendPerShare"),"Dividend Per Share"); AddColumn(GetFnData("ProfitMargin"),"Profit Margin"); AddColumn(GetFnData("OperatingMargin"),"Operating Margin"); AddColumn(GetFnData("OneYearTargetPrice"),"One Year Target Price"); AddColumn(GetFnData("ReturnOnAssets"),"Return On Assets"); AddColumn(GetFnData("ReturnOnEquity"),"Return On Equity"); AddColumn(GetFnData("QtrlyRevenueGrowth"),"Qtrly Revenue Growth"); AddColumn(GetFnData("GrossProfitPerShare"),"Gross Profit Per Share"); AddColumn(GetFnData("SalesPerShare"),"Sales Per Share"); AddColumn(GetFnData("EBITDAPerShare"),"EBITDA Per Share"); AddColumn(GetFnData("QtrlyEarningsGrowth"),"Qtrly Earnings Growth"); AddColumn(GetFnData("InsiderHoldPercent"),"Insider Hold Percent"); AddColumn(GetFnData("InstitutionHoldPercent"),"Institution Hold Percent"); AddColumn(GetFnData("SharesShort"),"Shares Short",1.0); AddColumn(GetFnData("SharesShortPrevMonth"),"Shares Short Prev Month",1.0); AddColumn(GetFnData("ForwardDividendPerShare"),"Forward Dividend Per Share"); AddColumn(GetFnData("ForwardEPS"),"Forward EPS"); AddColumn(GetFnData("OperatingCashFlow"),"Operating Cash Flow",1.0); AddColumn(GetFnData("LeveredFreeCashFlow"),"Levered Free Cash Flow",1.0); AddColumn(GetFnData("Beta"),"Beta"); AddColumn(GetFnData("LastSplitRatio"),"Last Split Ratio"); //AddColumn(GetFnData("LastSplitDate"),"Last Split Date"); } _SECTION_END(); } /*******************************************************************************************/ ToolTip = def_ToolTip; /*******************************************************************************************/ AddCustomCodeAfterPE(); /*******************************************************************************************/ Title = "PatternExplorer.com - Price Chart" + default_priceTitle+" ";
_SECTION_BEGIN("santhosh Swing");SetBarsRequired(200,0);
GraphXSpace = 5;SetChartOptions(0,chartShowArrows|chartShowDates);k =  Optimize("K",Param("K",2.25,0.25,5,0.25),0.25,5,0.25);Per= Optimize("atr",Param("atr",10,3,20,1),3,20,1);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, "" + Name(), colorBlack, styleCandle | styleNoLabel );j=Haclose;
//=======================================================================================================================//=========================Indicator==============================================================================================f=ATR(14);
rfsctor = WMA(H-L, Per);
revers = k * rfsctor;
Trend = 1;  NW[0] = 0;  

for(i = 1; i < BarCount; i++){ if(Trend[i-1] == 1)                 {  if(j[i] < NW[i-1])                   {   Trend[i] = -1;                      NW[i] = j[i] + Revers[i];          }  else                                {   Trend[i] = 1;   if((j[i] - Revers[i]) > NW[i-1])   {    NW[i] = j[i] - Revers[i];    }   else   {    NW[i] = NW[i-1];   }  }  } if(Trend[i-1] == -1)                {  if(j[i] > NW[i-1])                  {   Trend[i] = 1;                       NW[i] = j[i] - Revers[i];          }  else                                {   Trend[i] = -1;   if((j[i] + Revers[i]) < NW[i-1])    {    NW[i] = j[i] + Revers[i];    }   else   {    NW[i] = NW[i-1];   }  } }}
//===============system================
Plot(NW, "", IIf(Trend == 1, 27, 4), 4);Buy=Cover=Cross(j,nw);Sell=Short=Cross(nw,j);SellPrice=ValueWhen(Sell,C,1);BuyPrice=ValueWhen(Buy,C,1);Long=Flip(Buy,Sell);Shrt=Flip(Sell,Buy );_SECTION_END();//=================TITLE================================================================================================_SECTION_BEGIN("Title");if( Status("action") == actionIndicator ) (Title = EncodeColor(colorYellow)+ "www.nifty-fut.blogspot.com" + " - " +  Name() + " - " + EncodeColor(colorDarkGrey)+ Interval(2) + EncodeColor(colorWhite) + "  - " + Date() +" - "+"\n" +EncodeColor(colorYellow) +"Op-"+O+"  "+"Hi-"+H+"  "+"Lo-"+L+"  "+"Cl-"+C+"  "+ "Vol= "+ WriteVal(V)+"\n"+ EncodeColor(colorLime)+WriteIf (Buy , " GO LONG NOW/ Reverse Signal at "+C+"  ","")+WriteIf (Sell , " GO SHORT NOW/ Reverse Signal at "+C+"  ","")+"\n"+EncodeColor(colorWhite)+WriteIf(Sell , "Total Profit/Loss for the Last Trade Rs."+(C-BuyPrice)+"","")+WriteIf(Buy  , "Total Profit/Loss for the Last trade Rs."+(SellPrice-C)+"","")+WriteIf(Long AND NOT Buy, "Trade : Long - Entry price Rs."+(BuyPrice),"")+WriteIf(shrt AND NOT Sell, "Trade : Short - Entry price Rs."+(SellPrice),"")+"\n"+ WriteIf(Long AND NOT Buy, "Current Profit/Loss Rs."+(C-BuyPrice)+"","")+WriteIf(shrt AND NOT Sell, "Current Profit/Loss Rs."+(SellPrice-C)+"",""));PlotShapes(IIf(Buy, shapeSquare, shapeNone),colorGreen, 0, L, Offset=-40);PlotShapes(IIf(Buy, shapeSquare, shapeNone),colorLime, 0,L, Offset=-50);                      PlotShapes(IIf(Buy, shapeUpArrow, shapeNone),colorWhite, 0,L, Offset=-45); PlotShapes(IIf(Sell, shapeSquare, shapeNone),colorRed, 0, H, Offset=40);PlotShapes(IIf(Sell, shapeSquare, shapeNone),colorOrange, 0,H, Offset=50);                      PlotShapes(IIf(Sell, shapeDownArrow, shapeNone),colorWhite, 0,H, Offset=-45);_SECTION_END();
_SECTION_BEGIN("MA1");P = ParamField("Price field",-1);Periods = Param("Periods", 15, 2, 300, 1, 10 );Plot( MA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") ); _SECTION_END();
_SECTION_BEGIN("MA2");P = ParamField("Price field",-1);Periods = Param("Periods", 15, 2, 300, 1, 10 );Plot( MA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") ); _SECTION_END();
_SECTION_BEGIN("MA3");P = ParamField("Price field",-1);Periods = Param("Periods", 15, 2, 300, 1, 10 );Plot( MA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") ); 


mr elango
View Profile
From : Mr Elango at 09:57 PM - Jan 30, 2011 ( )

nobody is helping .pls guide us how to add afl formulas in amibroker


Gautam MVS
View Profile
From : Gautam Mvs at 05:11 PM - Jan 30, 2011 ( )




 BANK NIFTY 28/01/2011


Gautam MVS
View Profile
From : Gautam Mvs at 04:04 PM - Jan 30, 2011 ( )
mudraa.png wonderfull formula based on trend line/support and resistence


Gautam MVS
View Profile
From : Gautam Mvs at 03:54 PM - Jan 30, 2011 ( )


Gautam MVS
View Profile
From : Gautam Mvs at 03:51 PM - Jan 30, 2011 ( )


Gautam MVS
View Profile
From : Gautam Mvs at 03:50 PM - Jan 30, 2011 ( )


Gautam MVS
View Profile
From : Gautam Mvs at 06:24 PM - Jan 28, 2011 ( )

Friends..pls post formulas,

 

So others can benefit


kiran badgujar
View Profile
From : Kiran Badgujar at 12:28 PM - Jan 28, 2011 ( )

thanks


srinivasa rao d
View Profile
From : Srinivasa Rao D at 02:31 PM - Jan 26, 2011 ( )

seniors I got the amibroker 5.2 version with key. please help me how to add NSE future& stock in amibroker, and also how to insert afl code please guide me.


srinivasa rao d
View Profile
From : Srinivasa Rao D at 02:02 PM - Jan 26, 2011 ( )

Dear friends,

Iam new market, and in learning stage, After downloading Amibroker it wants key to save changes.  Seniors please help me if any body having free key, post here or mail it to me at   dsrao.trading@**.com please


Jitendra Singh
View Profile
From : Jitendra Singh at 09:43 AM - Jan 26, 2011 ( )

KAMAS SYSTEM 1.0 IS GREAT FORMULA FOR INTRADAY


nitin borude
View Profile
From : Nitin Borude at 08:20 AM - Jan 26, 2011 ( )

Sir, I want to use the above formulas in metastock, could u pls post it.


Gautam MVS
View Profile
From : Gautam Mvs at 11:53 PM - Jan 25, 2011 ( )

Beautiful formula - CAMARILLA

 

("CARMILLA v2.1");
SetChartOptions(0,chartShowArrows|chartShowDates);
//Unlike floor pivots,we also call them classic pivots, there is no pivot but 8 levels in Camarilla eq.
PTF = ParamList("Time Frame",List = "Hourly,4 Hour,Daily,Weekly",2);
TF = IIf(PTF == "Hourly",inHourly, IIf(PTF == "4 Hour",inHourly*4, IIf(PTF == "Daily",inDaily,
IIf(PTF == "Weekly",inWeekly,0))));
Today = LastValue(Day());
Ho =TimeFrameGetPrice( "H", tf, -1, expandFirst) ;
Lo = TimeFrameGetPrice( "L", tf, -1, expandFirst) ;
Co = TimeFrameGetPrice( "C", tf, -1, expandFirst) ;
 
Range=Ho-Lo;
 
H4=Co+1.1* RANGE/2 ;  
H3=Co+1.1*RANGE/4;
H2=Co+1.1*RANGE/6;
H1=Co+1.1* RANGE/12;
 
L1=Co-1.1*RANGE/12;
L2=Co-1.1*RANGE/6;
L3=Co-1.1*RANGE/4;
L4=Co-1.1*RANGE/2;
 
//I use 2 more levels to take care of gap-ups AND gap downs-
H5=Co+1.1*range;
L5=Co-1.1*range;
Plot(C,"",41,8+16|styleNoLabel);
Plot(C,"",31,64);
 
//Plot(IIf(Today == Day(), H5, Null),"", colorDarkGreen,styleDots|styleNoLabel|styleNoRescale );
Plot(IIf(Today == Day(), H4, Null),"", colorGreen,styleThick|styleNoLabel|styleNoRescale );
Plot(IIf(Today == Day(), H3, Null),"", colorLime,styleLine|styleNoLabel|styleNoRescale );
Plot(IIf(Today == Day(), H2, Null),"", colorLime,styleDashed|styleNoLabel|styleNoRescale );
Plot(IIf(Today == Day(), H1, Null),"", colorOrange,styleLine|styleNoLabel|styleNoRescale );
 
Plot(IIf(Today == Day(), L1, Null),"", colorRed,styleLine|styleNoLabel|styleNoRescale );
Plot(IIf(Today == Day(), L2, Null),"", colorLightOrange,styleDashed|styleNoLabel|styleNoRescale );
Plot(IIf(Today == Day(), L3, Null),"", colorLightOrange,styleLine|styleNoLabel|styleNoRescale );
Plot(IIf(Today == Day(), L4, Null),"", colorRed,styleThick|styleNoLabel|styleNoRescale );
//Plot(IIf(Today == Day(), L5, Null),"", colorDarkRed,styleDots|styleNoLabel|styleNoRescale );
 
Plot(IIf(Today == Day(), HO, Null),"yH",7,8+16);
 
Plot(IIf(Today == Day(), LO, Null),"yL",7,8+16);
C11=ParamColor("Text col",colorTan );
numbars = LastValue(Cum(Status("barvisible")));
fraction= IIf(StrRight(Name(),3) == "", 3.2, 3.2);
hts  = Param ("Text Shift", -50,-100,100,10);
 
PlotText("Y'high = " + WriteVal(Ho,fraction),
LastValue(BarIndex())-(numbars/hts+30),LastValue (Ho,1) , 7);
PlotText("Y'low = " + WriteVal(lO,fraction),
LastValue(BarIndex())-(numbars/hts+30),LastValue (lO,1) , 7);
 
 
PlotText("H4 = " + WriteVal(h4,fraction),
LastValue(BarIndex())-(numbars/hts),LastValue (h4,1) , C11);
PlotText("H3  = " + WriteVal(h3,fraction),
LastValue(BarIndex())-(numbars/hts),LastValue (h3,1) , C11);
PlotText("H2  = " + WriteVal(H2,fraction),
LastValue(BarIndex())-(numbars/hts),LastValue (H2,1) , C11);
PlotText("H1 = " + WriteVal(H1,fraction),
LastValue(BarIndex())-(numbars/hts),LastValue (H1,1) , C11);
 
PlotText("L4 = " + WriteVal(l4,fraction),
LastValue(BarIndex())-(numbars/hts),LastValue (l4,1) , C11);
PlotText("L3 = " + WriteVal(l3,fraction),
LastValue(BarIndex())-(numbars/hts),LastValue (l3,1) ,C11);
PlotText("L2  = " + WriteVal(L2,fraction),
LastValue(BarIndex())-(numbars/hts),LastValue (L2,1) , C11);
PlotText("L1 = " + WriteVal(L1,fraction),
LastValue(BarIndex())-(numbars/hts),LastValue (L1,1) , C11);
 
sce0b=Cross(C,L1)OR Cross(C,H1);
sce1b=Cross(C,L2)OR Cross(C,H2);
sce2b=Cross(C,L3)OR Cross(C,H3);
sce3b=Cross(C,L4)OR Cross(C,H4);
 
sce0s=Cross(L1,C)OR Cross(H1,C);
sce1s=Cross(L2,C)OR Cross(H2,C);
sce2s=Cross(L3,C)OR Cross(H3,C);
sce3s=Cross(L4,C)OR Cross(H4,C);
 
COND=TimeNum()>101000;
EXIT=Cross(TimeNum(),152000);
Buy=COND AND (sce1b OR sce2b OR sce3b OR sce0b) ;
Sell=COND AND(sce1s OR  sce2s OR sce3s OR sce0s);
 
PlotShapes(shapeSmallUpTriangle*Buy,colorSeaGreen,0,L,-10);
PlotShapes(shapeSmallDownTriangle*Sell,colorOrange,0,H,-10);
/*
PlotShapes(shapeDigit0*sce0b,colorSeaGreen,0,L,-10);
PlotShapes(shapeDigit1*sce1b,colorSeaGreen,0,L,-10);
PlotShapes(shapeDigit2*sce2b,colorSeaGreen,0,L,-10);
PlotShapes(shapeDigit3*sce3b,colorSeaGreen,0,L,-10);
PlotShapes(shapeDigit0*sce0s,colorOrange,0,H,10);
PlotShapes(shapeDigit1*sce1s,colorOrange,0,H,10);
PlotShapes(shapeDigit2*sce2s,colorOrange,0,H,10);
PlotShapes(shapeDigit3*sce3s,colorOrange,0,H,10);
PlotShapes(shapeCircle*EXIT,colorYellow,0,C,0);
*/
Title = EncodeColor(colorWhite)+ "CARMILLA v1 ("+ptf+")" + " - " +  Name() + " - " + EncodeColor(colorRed)+ Interval(2) + EncodeColor(colorWhite) +
 "  - " + Date() +" - "+"\n" +EncodeColor(colorGreen) +"Op-"+O+"  "+"Hi-"+H+"  "+"Lo-"+L+"  "+
"Cl-"+C+"  "+ "Vol= "+ WriteVal(V)+"\n\n"+
EncodeColor(colorSeaGreen)+
WriteIf (sce1b, "BUY  at "+C+"","")+
WriteIf (sce2b, "BUY  at "+C+"","")+
WriteIf (sce3b, "BUY  at "+C+"","")+
EncodeColor(colorOrange)+
WriteIf (sce1s, "SELL  at "+C+"","")+
WriteIf (sce2s, "SELL  at "+C+"","")+
WriteIf (sce3s, "SELL  at "+C+"","")+
 
WriteIf(EXIT,"CLOSE POSITION at "+C+"","");
 
NewDay = IIf(Day() != Ref(Day(), -1) OR BarIndex() == LastValue(BarIndex()), 1, 0);
Plot(NewDay, "", 47, 2 + 32768 + 4096, Minvalue = 0, Maxvalue = 1);
_SECTION_END();


Ranjit Chakraborty
View Profile
From : Ranjit Chakraborty at 11:23 PM - Jan 25, 2011 ( )

Can anyone guide how to configure Ami with Quote Tracker?


Gautam MVS
View Profile
From : Gautam Mvs at 10:46 PM - Jan 25, 2011 ( )

Dear Friends,

Yes,this formula will give only sell signals,

But when green candles appear., cover your shorts or enter long.

please watch how the formula works in live market,before taking any positions based on it.


161 to 180 out of 193 | First | << Previous | Next >> | Last |
1 2 3 4 5 6 7 8 (9) 10

Login to participate in discussion.



Recently Discussed Posts of Gautam Mvs

Learning Section >> CAMARILLA MAY CHANGE YOUR TRADING STYLE (40)

Futures & Options >> Only Nifty Option Sellers thread (6)

General Discussion >> A wiiner never Quits (1)

General Discussion >> How 5 points a day make you a CROREPATHI in a year (10)

General Discussion >> How much one can earn in the financial markets? (10)