--- In [email protected], Keith McCombs <[EMAIL PROTECTED]> wrote:
>
> I don't know about the rest of your code, but "C > BuyPrice*1.2" is
20%,
> not 2%.
>
> rockergab wrote:
>

Sorry. I mistyped my code! The correct code is this:

TradeStart = 1060505
Buy = DateNum()==TradeStart;
Sell = 0;
ApplyStop(stopTypeLoss,stopModePercent,3,1,0,1);
IIf(C > BuyPrice*1.02,ApplyStop
(stopTypeTrailing,stopModePercent,0.5,1,1,1),0);

I'm a very beginner and the above code is only an attempt to write a
micro trading system that help me to comprehend how AFL works. All
the code is written above.
Buyprice variable seems not to save the value of my enter the trade
in the date specified by TradeStart (5 May 2006). I don't know which
value Buyprice represents.
Thanks in advance for every suggestion.





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





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS




Reply via email to