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

[amibroker] sigscaleout



PureBytes Links

Trading Reference Links

I want to scale into positions and scale out of positions during the day, but at the end of the day, I'd like to blow out all longs and all shorts.
 
Why does this not work??
 
Cond5 = Hour() > 15 ;
Buy = IIf(Buysignal AND NOT Hour() ==16,sigScaleIn,O);
Short = IIf(Shortsignal,sigScaleIn,0);
 
Cover=IIf(Buy ,sigScaleOut,IIf(Cond5,1,0));
Sell=IIf(Short,sigScaleOut,IIf(cond5,1,0));
__._,_.___

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




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___