NexusFi: Find Your Edge


Home Menu

 





Multiple strategies / limit positions


Discussion in NinjaTrader

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




 
Search this Thread
  #1 (permalink)
 hawks67 
Chicago, IL
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AGN/Rithmic
Trading: CL
Posts: 22 since Apr 2010
Thanks Given: 14
Thanks Received: 2

Hey, NT7 programming gurus...

Say I have a strategy running on a 5 min chart, and different one running on a 2 min chart. The 5 min strategy fired off a long entry 90 seconds ago, and that trade is still going. The 2 min chart strategy just went long, too. Now I have two trades going. Generally this would be a good thing, considering the two timeframes agreed, but I do not want to risk more than my standard two contracts at one time, no matter what the setup.

How can I modify the code in my strategies to abort an entry if there is already a live position? Like "if position_already == false then <trade>"?

If this is a duh-obvious question, I do apologize, but I haven't found any answers that really apply.

Thanks in advance,
Gary


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Eurex Eyes Prediction Markets -- Europes Biggest Derivat …
Prediction Markets & Event Contracts
SEC Chairman Calls for New Golden Age of SEC-CFTC Regula …
Traders Hideout
CFTC Workforce Shrinks 24% to 15-Year Low While Predicti …
Traders Hideout
Irans Dual Probability: Guns Quiet at 99.95% While Forma …
Prediction Markets & Event Contracts
US Prop Firms Race Inside the CFTC Perimeter -- Tradeify …
Funded Trading Evaluation Firms
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #3 (permalink)
 
quantismo's Avatar
 quantismo 
Christiansburg Virginia
 
Experience: Advanced
Platform: retired ...maybe
Trading: anything with the slightest edge..
Posts: 244 since Jul 2011
Thanks Given: 340
Thanks Received: 179


One simple way would be to pack both strategies into one multy timeframe strategy and put EntriesPerDirection = 1;

Quantismo


Reply With Quote




Last Updated on January 18, 2015


© 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