OmniTrader Professional Forum OmniTrader Professional Forum
forums calendars search
today this week
 
register logon control panel Forum Rules
You are currently browsing as a guest.
You should logon to access more features
A Self-Moderated Community - ALL MEMBERS, PLEASE READ!
Vote for Members who contribute the most to your trading, and help us moderate content within the Forums.


Only Forum Moderators, Administrators, and the owner of this message may delete it.

 
Jim Dean

Sage
2000100010010010010025
Posts: 3433

Joined: 3/13/2006
Location: L'ville, GA

User Profile
 
Subject : RE: How to Enter Automatically At (Say) 0950
Posted : 3/27/2014 8:52 AM
Post #22811 - In reply to #22809

Good luck with that. If you are using daily bars then it probably won't work.

There is something that you can try. You can write an OScript condition in your trade plan that checks the SYTEM clock, not OT's bar-based clock. But be advised ... this goes outside normal OT syntax, AND deals with OScript conditions for Entry, both of which may be problematic. Worth trying though.

Try this syntax in the OScript field:
now.hour = 10 and now.minute >= 30

... or fill in whatever values you wish

This may or may not work ... it depends on how fast "prints" are coming in for the symbol that you are using. OT will only check the TP conditions when a new print hits ... so if you're trading a very ILliquid stock, you might enter late or not at all, depending on the formula you use.

FYI ... NOT ALL dotNET time functions work in OLang/Script ... there is a huge list and lots of rules. Click here for a discussion with more information about that.

Deleting message 22811 : RE: How to Enter Automatically At (Say) 0950


Nirvana Systems
For any problems or issues please contact our Webmaster at webmaster@nirvsys.com.