NexusFi: Find Your Edge


Home Menu

 





Make strategy start another strategy


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one kandlekid with 4 posts (4 thanks)
    2. looks_two MXASJ with 4 posts (0 thanks)
    3. looks_3 zwentz with 3 posts (1 thanks)
    4. looks_4 gregid with 1 posts (0 thanks)
    1. trending_up 8,486 views
    2. thumb_up 5 thanks given
    3. group 6 followers
    1. forum 13 posts
    2. attach_file 1 attachments




 
Search this Thread

Make strategy start another strategy

  #11 (permalink)
 decs0057 
Munich, Germany
 
Experience: Intermediate
Platform: NinjaTrader, TWS
Broker: IB, NinjaTrader Brokerage
Trading: ES,NQ,6E
Posts: 71 since Feb 2010
Thanks Given: 15
Thanks Received: 25

Have a look at
strategy persistence
He can launch strategy from strategy, but he wants to sell his solution

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
REcommedations for programming help
Sierra Chart
Trade idea based off three indicators.
Traders Hideout
Exit Strategy
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #12 (permalink)
 zwentz 
Austin, TX
 
Experience: Advanced
Platform: NinjaTrader
Broker: Optimus Futures/Rithmic
Trading: Futures [ZB]
Posts: 36 since Sep 2009
Thanks Given: 12
Thanks Received: 22

Just set the Running property of the strategy you're calling to True and it will start.

Started this thread Reply With Quote
Thanked by:
  #13 (permalink)
 MXASJ 
Asia
 
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800


Thanks zwentz,

I put this is the code I posted earlier:

 
Code
protected override void OnBarUpdate()
    {
         cStrat.Running = true; 
    }
And NT7b22 wasn't very happy as per the attached.

Can you throw me a code snippet you used to get it to work? Thanks.

Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	223
Size:	131.1 KB
ID:	21609  
Reply With Quote
  #14 (permalink)
 
gregid's Avatar
 gregid 
Wrocław, Poland
 
Experience: Intermediate
Platform: NinjaTrader, Racket
Trading: Ockham's razor
Posts: 650 since Aug 2009
Thanks Given: 320
Thanks Received: 623

Was anyone successful at this task (starting the strategy from within strategy)?

My trial and error method of solving the issue has not been successful so far (at least in regards to my objective of coupled backtesting).

Reply With Quote




Last Updated on April 4, 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