Traderji.com - Discussion forum for Stocks Commodities & Forex

Help needed in AFL functionality

Discuss Help needed in AFL functionality at the AmiBroker within the Traderji.com - Discussion forum for Stocks Commodities & Forex; Hi, How to use one AFL inside another AFL? I need to include the trailing ...


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

Notices


Advertise Here

Reply
 
Thread Tools
Sponsored Links
  #1  
Old 1st November 2006, 05:54 PM
Member
 
Join Date: May 2006
Location: Bangalore
Posts: 914
Thanks: 0
Thanked 33 Times in 3 Posts
bvpraveen will become famous soon enough
Reputation: 65
Default Help needed in AFL functionality

Hi,

How to use one AFL inside another AFL?

I need to include the trailing SL afl into another AFL, so that i needn't drag and drop the TrailingSL.afl each and every time I use the second AFL.

Thanks,
Praveen.
Reply With Quote
Sponsored Links
  #2  
Old 1st November 2006, 06:00 PM
Member
 
Join Date: May 2006
Location: Bangalore
Posts: 914
Thanks: 0
Thanked 33 Times in 3 Posts
bvpraveen will become famous soon enough
Reputation: 65
Default Re: Help needed in AFL functionality

Hi,

Got the answer. Its using #include.

Sorry..I'm not able to delete this thread started by me. Is it we cant delete the thread?

Praveen.
Reply With Quote
  #3  
Old 12th November 2006, 05:53 PM
Member
 
Join Date: May 2006
Location: Bangalore
Posts: 914
Thanks: 0
Thanked 33 Times in 3 Posts
bvpraveen will become famous soon enough
Reputation: 65
Default Re: Help needed in AFL functionality

Hello,

Can anyone please tell me how to get the exact price at the MA crossover point in AFL? I need this info in one of my AFL.

Please see the attached chart for better understanding.

Thanks,
Praveen.
Attached Images
File Type: png Crossover price.PNG (8.8 KB, 37 views)
Reply With Quote
  #4  
Old 12th November 2006, 06:02 PM
Member
 
Join Date: Jul 2004
Posts: 454
Thanks: 34
Thanked 288 Times in 86 Posts
tanewbie is a jewel in the roughtanewbie is a jewel in the roughtanewbie is a jewel in the roughtanewbie is a jewel in the rough
Reputation: 312
Default Re: Help needed in AFL functionality

HI Praveen

You need statistical formula to calculate the price at which the crossovers will happen.
I use 3ema and 5ema. So I give you the formula for the crossover.

r=EMA(C,3);
a=EMA(C,5);
g=(Ref(a,-1)*(1-.3333)-Ref(r,-1)*(1-.5))/(.5-.3333);


here g is the crossvover point.

if u replace for eg 5 ema with 13 ema then 5 should be repalced with 13 and .3333 shd be replced with 2/14.

Hope the above is clear.
cheers
Reply With Quote
  #5  
Old 12th November 2006, 07:28 PM
Member
 
Join Date: May 2006
Location: Bangalore
Posts: 914
Thanks: 0
Thanked 33 Times in 3 Posts
bvpraveen will become famous soon enough
Reputation: 65
Default Re: Help needed in AFL functionality

Thanks Tanewbie, that works.

For clarification for others, .3333 should be replaced with (2/higherVar+1).

Praveen.
Reply With Quote
  #6  
Old 13th November 2006, 01:06 PM
Member
 
Join Date: Aug 2005
Posts: 274
Thanks: 0
Thanked 1 Time in 1 Post
ragh_ash is on a distinguished road
Reputation: 21
Default Re: Help needed in AFL functionality

hi praveen,
do u have #include for candle?
Reply With Quote
  #7  
Old 13th November 2006, 02:21 PM
Member
 
Join Date: May 2006
Location: Bangalore
Posts: 914
Thanks: 0
Thanked 33 Times in 3 Posts
bvpraveen will become famous soon enough
Reputation: 65
Default Re: Help needed in AFL functionality

Quote:
Originally Posted by ragh_ash View Post
hi praveen,
do u have #include for candle?
What? Couldn't get you, my friend.

#include is used to include one afl into another afl.

Praveen.
Reply With Quote
  #8  
Old 13th November 2006, 04:58 PM
Member
 
Join Date: Aug 2005
Posts: 274
Thanks: 0
Thanked 1 Time in 1 Post
ragh_ash is on a distinguished road
Reputation: 21
Default Re: Help needed in AFL functionality

that's right praveen,
i will post the AFl which needs that#include, then u will be able to help me.
Reply With Quote
  #9  
Old 9th December 2006, 11:44 AM
SGM SGM is offline
Member
 
Join Date: Aug 2005
Location: PUNE
Posts: 468
Blog Entries: 14
Thanks: 11
Thanked 41 Times in 12 Posts
SGM will become famous soon enough
Reputation: 81
Default Re: Help needed in AFL functionality

Hello Vish

Thanks for explaining how to find the next trigger (price target) for the crossover. Now I can calculate crossover for EMA(C,5) and EMA(C,13).

Can you help me in finding how to get crossover point for this

EMA(C,13) and EMA(EMA(C,13), 13);


Warm Regards
Sanjay
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: Help needed in AFL functionality
Thread Thread Starter Forum Replies Last Post
Help needed... please aad MetaStock 4 19th August 2006 10:09 PM
Help Needed prabu Metals 1 26th May 2006 07:33 PM
Clarification needed bvpraveen Initial Public Offers (IPO's) 0 6th May 2006 05:10 PM
Help Needed gaj Equities 7 17th March 2006 06:25 PM


All times are GMT +5.5. The time now is 11:28 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