| 
 PureBytes Links 
Trading Reference Links 
 | 
Some code of mine is at the Feedback Centre : http://www.amibroker.com/feedback/view_bug.php?bug_id=707
That should help with the first part of your question.
Second part requires margin size and contract calculations.
Third bit probably requires understanding of ApplyStop (which I never worked out myself..)
GRANT
dralexchambers wrote:
> I am really confused how to do this in backtest AFL on the GBPUSD. 
> Can anyone supply the AFL:
> 
> - I would like each PIP of movement on to be worth $1
> - I would like to risk only 5% of my total equity on each trade.
> 
> - Am I correct in assuming that in Amibroker, if I set the risk at 
> 5%, if my initial buy is triggered and then I am instantly stopped 
> out, the maximum I will lose will be 5% of my account?
> 
> Thanks - Alex
> 
> 
> 
> 
> 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
> 
> For other support material please check also:
> http://www.amibroker.com/support.html
>  
> Yahoo! Groups Links
> 
> 
> 
> 
> 
------------------------ Yahoo! Groups Sponsor --------------------~--> 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/lOt0.A/hOaOAA/yQLSAA/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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
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/
<*> Your email settings:
    Individual Email | Traditional
<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)
<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
 
 |