NexusFi: Find Your Edge


Home Menu

 





windows messages to ninjatrader strategy


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one junkone with 2 posts (0 thanks)
    2. looks_two sam028 with 1 posts (0 thanks)
    3. looks_3 monpere with 1 posts (0 thanks)
    4. looks_4 MrYou with 1 posts (1 thanks)
    1. trending_up 2,406 views
    2. thumb_up 1 thanks given
    3. group 3 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread

windows messages to ninjatrader strategy

  #1 (permalink)
junkone
toronto,ontario
 
Posts: 5 since Dec 2009
Thanks Given: 0
Thanks Received: 0

I am looking for ways to communicate with the ninjatrader starategy and i came accross windows messages.

ryanfarley.com/blog/archive/2004/05/10/605.aspx. i cannot post the entire url as i am new to this forums

Communication between applications via Windows Messages

I am trying to see if i can try it in NT strategy. can anyone share clues on how to implement it. i can do the legwork and share the results.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
Trade idea based off three indicators.
Traders Hideout
Exit Strategy
NinjaTrader
MC PL editor upgrade
MultiCharts
ZombieSqueeze
Platforms and Indicators
 
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
28 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
  #2 (permalink)
 
monpere's Avatar
 monpere 
Bala, PA, USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus, IB
Trading: SPY, Oil, Euro
Posts: 1,854 since Jul 2010
Thanks Given: 300
Thanks Received: 3,371


junkone View Post
I am looking for ways to communicate with the ninjatrader starategy and i came accross windows messages.

ryanfarley.com/blog/archive/2004/05/10/605.aspx. i cannot post the entire url as i am new to this forums

Communication between applications via Windows Messages

I am trying to see if i can try it in NT strategy. can anyone share clues on how to implement it. i can do the legwork and share the results.

Are you trying to pass messages from an NT Indicator to a Strategy, or from an external windows program to an NT Strategy?

Reply With Quote
  #3 (permalink)
junkone
toronto,ontario
 
Posts: 5 since Dec 2009
Thanks Given: 0
Thanks Received: 0


external windows program to NT.
basically simple stuff like
1. close half position etc so the strategy can continue doing it and execute instructions from outside.

Reply With Quote
  #4 (permalink)
 
MrYou's Avatar
 MrYou 
NC, USA
 
Experience: None
Platform: None Yet
Trading: Guitar
Posts: 403 since Jun 2011
Thanks Given: 618
Thanks Received: 196

Just have "program A" create a file in the NinjaTrader 7\tmp directory. Then have "program B" look for the file in the tmp file. If you need to pass any info you can do so via the text file, but use the filename to specify which strategy should be watching the file.

In the past I've used the time frame and instrument name as part of the filename so this can be easily passed along via the NinjaTrader (using the instrument or timeframe variable set via strategy/indicator). I used this method in order to implement a simple method of communication from one strategy to another.

Reply With Quote
Thanked by:
  #5 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629


MrYou View Post
Just have "program A" create a file in the NinjaTrader 7\tmp directory. Then have "program B" look for the file in the tmp file. If you need to pass any info you can do so via the text file, but use the filename to specify which strategy should be watching the file.

In the past I've used the time frame and instrument name as part of the filename so this can be easily passed along via the NinjaTrader (using the instrument or timeframe variable set via strategy/indicator). I used this method in order to implement a simple method of communication from one strategy to another.

The simplest solutions are the best, unless having some very specific needs, using simple files is the way to go.

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter Reply With Quote




Last Updated on July 31, 2012


© 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