NexusFi: Find Your Edge


Home Menu

 





Multiple strategies / limit positions


Discussion in NinjaTrader

Updated
    1. trending_up 1,808 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?
The 50/50 Paradox: Peace and Invasion Each at 20% -- Ira …
Prediction Markets & Event Contracts
CPI Eve: Fed Hike Odds Hold at 52% for the First Time, I …
Prediction Markets & Event Contracts
Trump Media to sell instant access to market-moving soci …
Traders Hideout
Iran Peace Expired NO: Ceasefire on Life Support, OPEC a …
Prediction Markets & Event Contracts
Trump Truth Social Fires Hormuz From 10% to 59% -- Arsen …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
13 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 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: 347
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