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

[amibroker] Automatic reliable Selling on Close of Bar



PureBytes Links

Trading Reference Links

How can I sell reliable on close of bar (I'm using 5 minutes bars)?

I've used this code, it tries to sell on last second of the 5 minute bar:

Time = Now(4);
NumSeconds = int(int(Time/100%100)*60+int(Time%100));
Newperiod = NumSeconds % TimeFrame >= in5Minute-1;

But it failed yesterday. I suppose, it didn't execute on that last second
for some reason. But I don't know another way.

Thank you in advance

  Peter


Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang. __._,_.___

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

__,_._,___