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

[amibroker] Tradestation translation help



PureBytes Links

Trading Reference Links

I'm trying to translate the following Tradestation system:

Inputs: Len1(6), Len2(7);
If Close = LowestFC(Close, Len1)
Then Buy This Bar at Close;
If BarsSinceEntry = Len2
Then Exitlong This Bar at Close;

Most of it is easy - but I'm not sure if I've got the right function
in place.  The system is described as:

"this system buys the 6 day low and sells at the close of the 7th day. "

Is the following the same thing?

Buy = C = Ref(LLV(C,6),-1);
BuyPrice = Close;
Sell = 0;
SellPrice = Close;

ApplyStop(stopTypeNBar,stopModeBars,Optimize("BarStop",6,10,40,1),ExitAtStop=1,Volatile=False,ReEntryDelay=0);

Thanks in advance!


------------------------------------

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/