Traderji.com - Discussion forum for Stocks Commodities & Forex

AmiBroker formula Language

Discuss AmiBroker formula Language at the AmiBroker within the Traderji.com - Discussion forum for Stocks Commodities & Forex; Can anybody guide me how to Draw Hi and Lows for the period of 1st ...


Go Back   Traderji.com - Discussion forum for Stocks Commodities & Forex > TOOLS & RESOURCES > Software > AmiBroker

Notices


Advertise Here

Reply
 
Thread Tools
Sponsored Links
  #231  
Old 13th September 2008, 09:18 PM
Member
 
Join Date: Jun 2007
Location: dehradun
Posts: 9
Thanks: 7
Thanked 0 Times in 0 Posts
shiree is on a distinguished road
Reputation: 20
Default Re: AmiBroker formula Language

Can anybody guide me how to Draw Hi and Lows for the period of 1st of every month to 18th of every month. Appreciate any help . I have progressed moderately in writing AFLs but this date function still eludes me.
Shiree
Reply With Quote
Sponsored Links
  #232  
Old 14th September 2008, 12:58 AM
Member
 
Join Date: Sep 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
myhan is on a distinguished road
Reputation: 10
Default Sector in ami

Quote:
Originally Posted by shiree View Post
Can anybody guide me how to Draw Hi and Lows for the period of 1st of every month to 18th of every month. Appreciate any help . I have progressed moderately in writing AFLs but this date function still eludes me.
Shiree
hi all
In your data have many stock of company
I want to made sector in ami.
but i don't,
can i have you,
thank all
Reply With Quote
  #233  
Old 19th September 2008, 12:17 PM
Member
 
Join Date: Mar 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
georgecheng is on a distinguished road
Reputation: 10
Default Re: AmiBroker formula Language

HI,

I am a newbe in computer programming and AFL is making me mad. I will be very greatful if anybody can write the AFL scan for me as per following condition

when SMA=2 cross EMA=8
Vol of min 500,000

Many thanks
Reply With Quote
  #234  
Old 21st September 2008, 11:44 PM
Member
 
Join Date: Jun 2007
Location: dehradun
Posts: 9
Thanks: 7
Thanked 0 Times in 0 Posts
shiree is on a distinguished road
Reputation: 20
Default Re: AmiBroker formula Language

Quote:
Originally Posted by georgecheng View Post
HI,

I am a newbe in computer programming and AFL is making me mad. I will be very greatful if anybody can write the AFL scan for me as per following condition

when SMA=2 cross EMA=8
Vol of min 500,000

Many thanks

Buy=Cross(MA(C,2),MA(C,8)) and V>=500000;

You can modify that to complete exploration also.
Hope this helps.
Shiree
Reply With Quote
  #235  
Old 23rd September 2008, 12:01 AM
Member
 
Join Date: Jun 2008
Posts: 27
Thanks: 13
Thanked 3 Times in 3 Posts
sanamtrade is on a distinguished road
Reputation: 16
Default AFL for generating buy/sell signal using Stochastics(slow/fast)

Hi all, can any one give me the AFL prog. for generating buy and sell signal while using automatic analysis in Amibroker, with respect to Stochastics, thanks in advance.......with warm regards
Reply With Quote
  #236  
Old 12th October 2008, 01:06 AM
Member
 
Join Date: Feb 2007
Location: Tamilnadu
Posts: 86
Thanks: 0
Thanked 1 Time in 1 Post
venkatpersonal is on a distinguished road
Reputation: 21
Default Re: Hello ji

I would like to get a warning signal from MACD when it hit extreme over bought/sold zone how can i write the AFL ang get the signal.
Reply With Quote
  #237  
Old 13th October 2008, 01:26 PM
Member
 
Join Date: Aug 2007
Location: Italy
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Deviad is on a distinguished road
Reputation: 21
Default Re: AmiBroker formula Language

Can anyone make this code better:

Code:
SECTION_BEGIN("ZigZag Retracement");
function GetXSupport(Lo, Percentage, Back)
{
 return ((BarCount - 1) - LastValue(TroughBars(Lo, Percentage,Back)));
}
function GetYSupport(Lo, Percentage, Back)
{
 return (LastValue(Trough(Lo, Percentage, back)));
}

function GetXResistance(Hi, Percentage, Back)
{
 return ((BarCount - 1) -LastValue(PeakBars(Hi, Percentage, Back)));
}
function GetYResistance(Hi, Percentage, Back)
{
 return (LastValue(Peak(Hi, Percentage, Back)));
}

//////////////////////////////////////////////////////////////////
Per = Param("Period", 5.9618, .1, 20, .001);
Period = Param("Look back", 10, 1, BarCount-1);
ShowRet = ParamToggle("Show Retracement values", "No|Yes",1);
Price = ParamList("Price to follow:", "Close|High|Low", 0);
if(Price=="Close") ZigP = Zig(C, per);
else if(Price=="High") ZigP = Zig(H, per);
else ZigP = Zig(L, per);

//////////////////////////////////////////////////////////////////
Plot(C, "", IIf(O>=C, colorDarkRed, colorDarkGreen), ParamStyle("Price
Style",styleBar,maskPrice));
Plot(ZigP, "Zig", colorGold, styleThick);
//////////////////////////////////////////////////////////////////

xs1 = GetXSupport(ZigP, .01, 1);
xr1 = GetXResistance(ZigP, .01, 1);
ys1 = GetYSupport(ZigP, .01, 1);
yr1 = GetYResistance(ZigP, .01, 1);

if(xs1 < xr1)
{
	x = LineArray(xs1, ys1, BarCount - 1, LastValue(ZigP));
	Down = (yr1 - LastValue(ZigP)) / (yr1 - ys1);
	DnBars = BarCount - 1 - xr1;
	Plot(x, "", colorRed, styleDots);
	PlotText(StrFormat("%.3f (%.0f)", Down, DnBars), (xs1 + BarCount -1)/2,
(ys1+LastValue(ZigP))/2, colorWhite);
}
else
{
	x = LineArray(xr1, yr1, BarCount - 1, LastValue(ZigP));
	Up = (LastValue(ZigP) - ys1) / (yr1 - ys1);
	UpBars = BarCount - 1 - xs1;
	Plot(x, "", colorRed, styleDots);
	PlotText(StrFormat("%.3f (%.0f)", Up, UpBars), (xr1 + BarCount -1)/2,
(yr1+LastValue(ZigP))/2, colorWhite);
}
Plot( 1, "", IIf( xs1 > xr1, colorGreen,
colorRed),styleOwnScale|styleArea|styleNoLabel, -0.5, 100 );
if(ShowRet)
for(i=2; i<=Period+1; i++)
{
	xs0 = GetXSupport(ZigP, .01, i);
	xs1 = GetXSupport(ZigP, .01, i-1);
	ys0 = GetYSupport(ZigP, .01, i);
	ys1 = GetYSupport(ZigP, .01, i-1);

	xr0 = GetXResistance(ZigP, .01, i);
	xr1 = GetXResistance(ZigP, .01, i-1);
	yr0 = GetYResistance(ZigP, .01, i);
	yr1 = GetYResistance(ZigP, .01, i-1);

	xs = LineArray(xs0, ys0, xs1, ys1, 0);
	Plot(xs, "", colorGold, styleLine|styleDashed);
	xr = LineArray(xr0, yr0, xr1, yr1, 0);
	Plot(xr, "",  colorGold, styleLine|styleDashed);
	if(xs1 < xr1)
	{
		Up = (yr1 - ys1) / (yr0 - ys1);
		Down = (yr0 - ys1) / (yr0 - ys0);
		UpBars = xr1 - xs1;
		DnBars = xs1 - xr0;
	}
	else
	{
		Up = (yr1 - ys0) / (yr0 - ys0);
		Down = (yr1 - ys1) / (yr1 - ys0);
		UpBars = xr1 - xs0;
		DnBars = xs1 - xr1;
	}
	PlotText(StrFormat("%.3f (%.0f)", Up, UpBars), (xr1 + xr0)/2, (yr1+yr0)/2,
colorWhite);
	PlotText(StrFormat("%.3f (%.0f)", Down, DnBars), (xs1 + xs0)/2, (ys1+ys0)/2,
colorWhite);
	//Plot(LineArray(xs0, ys0, BarCount-1, ys0), "", colorGreen, styleDashed);
	//Plot(LineArray(xr0, yr0, BarCount-1, yr0), "", colorRed, styleDashed);

}

str = StrFormat("   (Bars to END=%.0f)\n", BarCount - 1 - BarIndex());
Title =FullName()+" ("+Name()+") - "+Date()+" - Open: "+O+", Hi: "+H+", Lo:
"+L+", Close: "+C+StrFormat(" (%.2f  %.2f%%)", C-Ref(C, -1),
SelectedValue(ROC(C, 1)))+str;
WriteIf(1, "\nNote Fibonacci numbers:\nPrimary numbers: 0.618, 0.786, 1.27 and
1.618","");
WriteIf(1, "Secondary numbers: 0.382, 0.50, 1.00, 2.00, 2.24, 2.618 and
3.14","");


_SECTION_END();
So that it looks like this:




At the moment the code above just shows some retracements not all like Ensign does.
Reply With Quote
  #238  
Old 26th October 2008, 01:06 AM
Member
 
Join Date: Jun 2008
Posts: 13
Thanks: 7
Thanked 0 Times in 0 Posts
KILLERDON99 is on a distinguished road
Reputation: 10
Lightbulb Re: AmiBroker formula Language

Can anyone pls tell how to put "minvalue" function in the afl or can makes changes afl so that it does not shows negative value.

Code:
_SECTION_BEGIN("Unnamed 5");
i = 2;

if (Interval()<inDaily)

i=MA( Volume , 2 );

f=(2 * i);

g=(f - Volume);

w=(Volume - g);

newvol= w;


Plot(newvol,"New Volume",ParamColor("Color",colorBlueGrey),styleHistogram|styleThick);

_SECTION_END();
Reply With Quote
  #239  
Old 28th October 2008, 10:08 PM
Member
 
Join Date: Oct 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
abdullah_bd83 is on a distinguished road
Reputation: 10
Default Re: AmiBroker formula Language

can any one help me how can i use fundamental data in amibroker
Reply With Quote
  #240  
Old 1st November 2008, 04:45 PM
Member
 
Join Date: Sep 2008
Posts: 29
Thanks: 411
Thanked 7 Times in 7 Posts
dhinakar113 is on a distinguished road
Reputation: 17
Default Re: AmiBroker formula Language

Can someone help me how to get Real Time quotes for the Amibroker? I have just installed it in my system. I am trading intraday in Nifty f n o with Indiainfoline TT. Thanks in advance.

Regards.
Reply With Quote
Sponsored Links

Reply

Bookmarks


Advertise Here


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads for: AmiBroker formula Language
Thread Thread Starter Forum Replies Last Post
need help on formula cmlee MetaStock 23 8th October 2007 07:55 PM
Metastock ,Metatrader & Amibroker indicator formula saji oommen MetaStock 0 4th June 2006 06:35 PM
Metastock language help Ropewalker MetaStock 4 1st November 2005 09:16 PM
TradeStation & MetaStock Formula Language bikertrader MetaStock 4 10th December 2004 01:50 PM


All times are GMT +5.5. The time now is 11:39 AM.

Indemnity, Disclaimer & Disclosure Notice:
• By visiting Traderji.com you indicate your acceptance of our Forum Rules Disclaimer & Disclosure and indemnify Traderji.com, its associates and related parties of all claims howsoever resulting from the usage of the forum.
Disclaimer: Trading or investing in stocks & commodities is a high risk activity. Any action you choose to take in the markets is totally your own responsibility. Traderji.com will not be liable for any, direct or indirect, consequential or incidental damages or loss arising out of the use of this information.
Disclosure: The information in this forum is neither an offer to sell nor solicitation to buy any of the securities mentioned herein. The writers may or may not be trading in the securities mentioned.
• All names or products mentioned are trademarks or registered trademarks of their respective owners.
General Content Disclaimer Notice:
In light of our policy of encouraging candid, open exchanges of views and the rapid distribution of information originating from many sources, Traderji.com cannot determine the accuracy of information that may be uploaded to the forum. Opinions, advice and all other information expressed by participants in discussions are those of the author. You rely on such information at your own risk. You are urged to seek professional advice for specific, individual situations and not rely solely on advice or opinions given in the discussions. Since Traderji.com is an open and free discussion forum, any comments made by members of this forum in their posts reflect their own views and not of the owner or administrator of Traderji.com. Thus the owner/administrator indemnify themselves of all claims whatsoever and will not be liable or responsible for any members comments/views in this forum Traderji.com. If you find any objectionable or offensive posts made by members of this forum which you would like to bring to our notice for removal then please Contact Us.
 


Copyright © 2001 - 2008, Traderji.com All Rights Reserved.

Recommended Websites - www.TradersEdgeIndia.com - www.TradingPicks.com - www.MasterOfTrading.com