NexusFi: Find Your Edge


Home Menu

 





Multiple strategies / limit positions


Discussion in NinjaTrader

Updated
    1. trending_up 1,869 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?
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
Thanks Mike. Godspeed.
The Elite Circle
No book, only a stair: journaling fills where price move …
Cryptocurrency
Without Pulisic, USA 61.5% Live vs. Australia -- France …
Prediction Markets & Event Contracts
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Want your NinjaTrader indicator created, free?
5 thanks
BERN ALGOS algo trading journal
1 thanks
Afternoon-close session
1 thanks
Franks Trading Journey
1 thanks
Denied 20K payouts: Alpha Futures
1 thanks
  #3 (permalink)
 
quantismo's Avatar
 quantismo 
Christiansburg Virginia
 
Experience: Advanced
Platform: retired ...maybe
Trading: anything with the slightest edge..
Posts: 245 since Jul 2011
Thanks Given: 349
Thanks Received: 185


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