OmniTrader Forum OmniTrader 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.


  Current location        Thread information  
OmniTrader Archives
OmniTrader 2019 Technical Support
PortSim %ofEquity w/MoC & ReuseIntradayFunds bug
Last Activity 6/11/2020 8:44 AM
5 replies, 1234 viewings

Jump to page : 1
Now viewing page 1 [25 messages per page]
 
back reply
Printer friendly version

^ Top
SteveL

Veteran
1001002525
Posts: 262

Joined: 8/19/2005
Location: Boulder, CO

User Profile
 
Subject : PortSim %ofEquity w/MoC & ReuseIntradayFunds bug
Posted : 5/8/2019 4:50 PM
Post #46185

There is a bug in PortSim when using this specific combination of settings: 1) MoC entries and exits in your strategies, 2) the "Reuse intraday funds" feature in PortSim, and 3) PortSim’s "All Strategies" setting. With these settings, the trade sort preferentially picks 1-day trades (enter at MoC of day 1 and exit at MoC of day 2), before selecting other possible trades. So, don't believe the Equity Curve that results with those settings.

Below is an impossible equity curve with a bunch of RTM strategies all modified to do MoC enties/exits and reuse intraday funds on the Russell 1000.

Note: There is look-ahead happening in order to preferentially select 1 day trades vs. longer trades. Consequently, there are more trades than there should be (because they are quick) and more likely to be profitable (else they would be in trade longer before reaching the exit criteria).



[Edited by SteveL on 5/8/2019 5:16 PM]

Attached file : 2019-04-12_11-50-50.png (169KB - 540 downloads)

^ Top
Buffalo Bill

Legend
50025
Posts: 539

Joined: 10/3/2006
Location: Stafford, VA

User Profile
 
Subject : RE: PortSim %ofEquity w/MoC & ReuseIntradayFunds b
Posted : 5/8/2019 9:08 PM
Post #46186 - In reply to #46185

Steve

Did you see the same thing using MOO & reuse OR MOC and deselect reuse?

I am wondering how PS will act if you use MOO for entries and MOO for Fixed-loss type exits BUT MOC exits for things like fixed profit/SMA stops? Will it calc the right exit levels on the right days? IOW I am sure the MOO entry/exits will be OK, but will the MOC exits be on the correct day? If you run to-do list each night you get entries (MOO next day), maybe hit a Fixed Loss stop (MOO next day) and maybe hit an SMA or fixed profit stop but those are MOC - will it use the MOC C value for the next day in it's calc? Or the exact value (The fixed profit value let's say) or even worse the PREV day's C? Anyone? barry?

[Edited by Buffalo Bill on 5/8/2019 9:16 PM]

^ Top
SteveL

Veteran
1001002525
Posts: 262

Joined: 8/19/2005
Location: Boulder, CO

User Profile
 
Subject : RE: PortSim %ofEquity w/MoC & ReuseIntradayFunds b
Posted : 5/8/2019 11:03 PM
Post #46187 - In reply to #46186

Bill,

Barry has submitted the problem to development. It's queued up behind other stuff.

Barry nailed down the specific conditions necessary to cause the problem. It is the MoC exit with ReuseIntradayFunds that is the necessary combination to trigger this problem when using the PortSim sort, rather than an ATM sort.

NOTE: Barry just specified "MoC" being a necessary condition. I believe it is the exit that is the issue. So, I assume that it is "MoC Exit" that is the condition. But I suppose "MoC entry" might be a factor. I have not experimented with MOO entry and MoC exit, so I don't know what that would do. In fact, I don't think you can simulate a MOO entry and MOC exit on the same day.

The way I discovered this was looking at the PortSim trade report, and noticed that many of the trades were exiting the next day (almost always with a profit) in alphabetic order. And if there were still funds available, then longer than 1-day-trades were listed in a second alphabetic ordered grouping. That is, the set of trades entered on any particular day comprised two groups - 1-day-trades, and then longer trades.

My point is that you should study your trade report to make sure it is sorted the way you think it should be.
^ Top
Buffalo Bill

Legend
50025
Posts: 539

Joined: 10/3/2006
Location: Stafford, VA

User Profile
 
Subject : RE: PortSim %ofEquity w/MoC & ReuseIntradayFunds b
Posted : 5/9/2019 9:06 AM
Post #46188 - In reply to #46187

Steve

Sounds like there might be issues with MOC orders and ATM. Like you, I use MOC - this is a problem
^ Top
SteveL

Veteran
1001002525
Posts: 262

Joined: 8/19/2005
Location: Boulder, CO

User Profile
 
Subject : RE: PortSim %ofEquity w/MoC & ReuseIntradayFunds b
Posted : 5/9/2019 9:25 AM
Post #46189 - In reply to #46188

Bill,

I don't think this problem occurs with ATM when using market states and trade ranking. Barry's pretty sure it's tied to the original PortSim ranking process.

I think you and a few others use MoC, so I thought it important to raise a flag so that you could look closely at your PortSim results until the problem is fixed.
^ Top
SteveL

Veteran
1001002525
Posts: 262

Joined: 8/19/2005
Location: Boulder, CO

User Profile
 
Subject : RE: PortSim %ofEquity w/MoC & ReuseIntradayFunds b
Posted : 11/5/2019 3:36 PM
Post #46440 - In reply to #46189

Bump. Problem not fixed in OT2020.
Jump to page : 1
Now viewing page 1 [25 messages per page]
back reply

Legend    Action      Notification  
Administrator
Forum Moderator
Registered User
Unregistered User
E-Mail this thread to a friend
Toggle e-mail notification


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