NexusFi: Find Your Edge


Home Menu

 





Multiple strategies / limit positions


Discussion in NinjaTrader

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




 
Search this Thread

Multiple strategies / limit positions

  #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?
REcommedations for programming help
Sierra Chart
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
22 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #3 (permalink)
 
quantismo's Avatar
 quantismo 
Waco TX.
 
Experience: Advanced
Platform: retired ...maybe
Trading: anything with the slightest edge..
Posts: 242 since Jul 2011
Thanks Given: 335
Thanks Received: 176


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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts