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
> 
> 
> 
> 
> 

Reply via email to