I run a strategy that uses 11 inverse funds. I want to tweak it to adapt to each inverse funds' change in volatility (to increase or decrease my position sizes each buy). I'm a novice at Amibroker afl and am trying to understand how to do this via ATR. The trick is I am not scanning a list of symbols for candidates. I have specific rules for each individual symbol I use. Here is some sample code in my strategy.
if( n == "DXKSX" )
{
//Strategy 3 US Gov Bear 10-Year 2X (Direxion)
>>>INDIVIDUAL RULES GO HERE<<<
PositionSize = -25;
}
if( n == "RRPIX" )
{
//Strategy 8 ProFunds Rising Rates US Gov 30 Bond 1.25X//
>>INDIVIDUAL RULES GO HERE<<<
PositionSize = -40;
}
How do I use ATR for position size? Do I need to optimize each symbol individually and then insert that afl code into the above strategy?
Thanks so much. As I said, I'm an idea person, not a programmer. I just want to be able to optimize the best way to increase or decrease position size as each symbols' volatility changes.
You guys are the best!
Graphman.
Posted by: steve@optimusadvisory.com
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (1) |
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
EmoticonEmoticon