NexusFi: Find Your Edge


Home Menu

 





New to Portfolio Tester - prevent simultaneous long & short?


Discussion in MultiCharts

Updated
    1. trending_up 1,082 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 6 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
shawnh
Montreal, Canada
 
Posts: 15 since Nov 2010
Thanks Given: 1
Thanks Received: 1

Hello, I've never used the Portfolio Tester before and am wondering if there's a simple/easy way to prevent being both long and short in an instrument at the same time. Basically, I am applying my system (ie. signal) to 3 different timeframes (7min, 11min, and 17min) of Crude Oil - so I have 3 "strategies" in total. In the backtest when I look at the list of trades, I see for instance, that a trade in the 11min will be issued even though a trade 4 minutes ago in the 7min has already been taken.... this gives unrealistic situations where I am both long and short in crude oil at the same time (on different timeframes).... or long 2 contracts at the same time, when I explicitly specified in the "Properties Settings" to only allow max one contract in one direction at a time. Am I missing a simple checkbox or setting somewhere that will make this all behave nicely?

Thanks!
Shawn


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Iran Airspace Collapses 18 Points to 15.5% While Hormuz …
Prediction Markets & Event Contracts
Netherlands & Germany Surge as World Cup Field Narro …
Prediction Markets & Event Contracts
Iran Fired a Missile at Israel Last Night. The $8M June …
Prediction Markets & Event Contracts
White House Drops First Alien Files Today -- Market Says …
Prediction Markets & Event Contracts
Czechia Live at 52.5% as England Rides 4-2 Wave to Co-Fa …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
16 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
CME Expands 24/7 Trading to WTI Crude Oil and Gold -- We …
1 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643

Shawn,

the property settings are specific to the strategy on each timeframe and not on a portfolio level. The effective way to accomplish what you have in mind is via a separate money management signal that is complementary to your trading strategies.

Regards,

ABCTG


Follow me on X Reply With Quote
  #3 (permalink)
shawnh
Montreal, Canada
 
Posts: 15 since Nov 2010
Thanks Given: 1
Thanks Received: 1


Thank you... yes I did see that but wasn't sure what it was all about. Would there be some straightforward examples floating about anywhere that I could use as a guide? I did find a page that gave some examples about "PMM" but I found it was quite hard to make sense of (https://www.multicharts.com/trading-software/index.php/Portfolio_Trader_Strategy_Examples)... and I couldn't really see any situation like the one I am having.

Thanks!
Shawn


Reply With Quote
  #4 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643

Shawn,

take some time to go through the three example strategies, the documentation for them, and test/debug them. While it might not translate 1:1 to your case, it includes everything you need and it should get you going.

Regards,

ABCTG


Follow me on X Reply With Quote
  #5 (permalink)
shawnh
Montreal, Canada
 
Posts: 15 since Nov 2010
Thanks Given: 1
Thanks Received: 1


ABCTG View Post
Shawn,

take some time to go through the three example strategies, the documentation for them, and test/debug them. While it might not translate 1:1 to your case, it includes everything you need and it should get you going.

Regards,

ABCTG


Thanks ABCTG. I guess I just don't really grasp what exactly this PMM signal is supposed to do. To me, a signal issues a buy or sell.... but my original signal strategy already does that, so am I supposed to replicate all that again in the PMM signal code? Is the PMM supposed to set some variable that my original strategy reads and once it reads a favorable value, then it performs my original buy/sell? It's a foggy concept to me and I've never seen a straightforward explanation of it anywhere really...

Thanks
Shawn


Reply With Quote
  #6 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643

Shawn,

they are designed and intended to complement each other. The strategies might handle the entries and exit condition and the money management signal can handle the constraints on a portfolio level - for example making sure that some entries are not taken, in case you already have a position in an instrument.

Regards,

ABCTG


shawnh View Post
Thanks ABCTG. I guess I just don't really grasp what exactly this PMM signal is supposed to do. To me, a signal issues a buy or sell.... but my original signal strategy already does that, so am I supposed to replicate all that again in the PMM signal code? Is the PMM supposed to set some variable that my original strategy reads and once it reads a favorable value, then it performs my original buy/sell? It's a foggy concept to me and I've never seen a straightforward explanation of it anywhere really...

Thanks
Shawn


Follow me on X Reply With Quote
Thanked by:
  #7 (permalink)
shawnh
Montreal, Canada
 
Posts: 15 since Nov 2010
Thanks Given: 1
Thanks Received: 1


ABCTG View Post
Shawn,

they are designed and intended to complement each other. The strategies might handle the entries and exit condition and the money management signal can handle the constraints on a portfolio level - for example making sure that some entries are not taken, in case you already have a position in an instrument.

Regards,

ABCTG



Thank you ABCTG, I will examine that page more closely - looks like quite heavy slogging though, not really simple examples to get ones feet wet.

Thanks!
Shawn


Reply With Quote




Last Updated on January 20, 2025


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts