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.


This message cannot be deleted. It is the first message of the thread.
Administrators or moderators may choose to delete the entire thread


 
kmcintyre

Veteran
10025
Posts: 132

Joined: 9/12/2007
Location: Valley Center, CA

User Profile
 
Subject : Issues with MOC orders
Posted : 8/15/2020 3:06 PM
Post #31198

I am trying to implement a really simple strategy.

on Thursday, BTO MOC
on Friday, STC MOC

I want to run the ToDo list Wednesday evening. I want OT to submit the MOC order Wednesday night, so the broker can process the order Thursday morning. Since it is a MOC order, I expect the stock to be bought at the close on Thursday.

So Problem 1 - MOC orders appear to only be "accepted" for the current bar. The Orders block is pretty explicit that MOC orders are filled based on the close of the Signal day. This implies hindsight is available. Signals generated after the market close are filled before they are generated. (I wish I could do that in real life.)

Trade Plans appear to have the same logic. A signal generated on Wednesday is entered at the close on the same day the signal is generated. This is not possible for EOD traders that run ToDO after the market closes.

Ok. So there is probably nothing I can do about this. I accept that I will need to run ToDo on Thursday morning even though I am an EOD trader...

Problem 2 - The N-Bar Stop is exiting my trades on Monday, not Friday.

The N-Bar setting is set to 1. In both the Orders block and the Trade Plan, the trade entered Thursday MOC is exiting Monday MOC. To get a 1 bar exit, I need to set the N-Bar Value to 0.

Again, there is probably nothing I can do about this either.

So I seem to have a workaround. Run the ToDo in the morning and specify a 0-bar exit.

I wonder if this is going to work in the real world? If I upload this to OmniVest, am I going to get Thursday MOC entries and Friday MOC exits? (I guess time will tell.)

If anyone knows of a better way to make this work I would appreciate being schooled.

To me this just seems really kludgy.

Cheers




Deleting message 31198 : Issues with MOC orders


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