[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: How to refer to a custom formula in a system test?



PureBytes Links

Trading Reference Links

Dan, I'm not sufficiently knowledgeable about this to know the 
difference between a coded function and a complete indicator, LOL!

In the custom indicator/index I created, I want to be able to refer 
to it in a system-test just as I would with RSI(), MACD(),EMA(), 
etc.  As a specific example, I'd like to know when the current index 
value sells off by 5% from its 20-day HHV, referring to it along the 
line of this:

Sell=Cross(Ref(HHV("My Custom Index",20),-1)*.95,"My Custom Index");

I didn't use AddtoComposite because I didn't think it would give me 
the weighting method I wanted (equal dollar amounts in each security 
instead of simply adding the stock price of each security).  (Maybe 
I've got that wrong, too?)

I don't really "get" #include yet (like anyone else, some concepts 
come easy and some come hard).  Is #include what I should concentrate 
on to get what I want, do you think? 


Luck,

Sebastian 


--- In amibroker@xxxxxxxxxxxxxxx, "Dan Clark" <dan_public@xxxx> wrote:
>
> Sebastian,
> 
>  
> 
> When you said ".when I created a custom indicator, I could refer to 
it and
> use it.", are you referring to a coded function or a complete 
indicator
> (like an MA)?   
> 
>  
> 
> If the former, you can create functions and add them to an include 
file.
> Then you would use "#Include" with the file name in a chart of
> scan/exploration.   For example, if you stored your functions in 
the file
> "ABFunctions.afl", this is text you would add to the top of your 
chart AFL
> to refer to the indicator:
> 
>  
> 
> #include <ABFunctions.afl>
> 
>  
> 
> If to the latter, you can create an indicator, save it to an AFL 
text file
> and then add it to a chart.  Typically, these custom indicator 
files are
> saved to ".\Amibroker\Formulas\Custom\".   They would then appear 
in the
> "Charts\Custom" list ("View --> Charts").
> 
>  
> 
> Regards,
> 
>  
> 
> Dan.
> 
>  
> 
>  
> 
>  
> 
>   _____  
> 
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] 
On Behalf
> Of sebastiandanconia
> Sent: Friday, November 25, 2005 10:44 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] How to refer to a custom formula in a system 
test?
> 
>  
> 
> I created the index referred to in this post:
> 
> http://finance.groups.yahoo.com/group/amibroker/message/90273
> 
> ...as a custom indicator so that I could refer to it in a system 
> test.  (AddtoComposite couldn't get me where I wanted to go.) In my 
> old Metastock software, when I created a custom indicator I could 
> simply refer to it and use it, but I haven't found a way to do this 
> with Amibroker.  I did a search on the Amibroker.com discussion 
boards 
> site and there have been inquiries about this, but with no answers.
> 
> Does this capability exist, or if not, is there a relatively easy 
> workaround?  TIA.
>   
> 
> Luck to all,
> 
> Sebastian
> 
> 
> 
> 
> 
> 
> 
> Please note that this group is for discussion between users only.
> 
> To get support from AmiBroker please send an e-mail directly to 
> SUPPORT {at} amibroker.com
> 
> For other support material please check also:
> http://www.amibroker.com/support.html
> 
> 
> 
> 
> 
> 
>   _____  
> 
> YAHOO! GROUPS LINKS 
> 
>  
> 
> *	 Visit your group "amibroker
> <http://groups.yahoo.com/group/amibroker> " on the web.
>   
> *	 To unsubscribe from this group, send an email to:
>  amibroker-unsubscribe@xxxxxxxxxxxxxxx
> <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe> 
>   
> *	 Your use of Yahoo! Groups is subject to the Yahoo!
> <http://docs.yahoo.com/info/terms/>  Terms of Service. 
> 
>  
> 
>   _____
>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/