NexusFi: Find Your Edge


Home Menu

 





Is it possible to programmatically pause NinjaTrader Market Replay?


Discussion in NinjaTrader

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




 
Search this Thread

Is it possible to programmatically pause NinjaTrader Market Replay?

  #1 (permalink)
 
drunkcolonel's Avatar
 drunkcolonel 
Pluto is a planet
 
Experience: None
Platform: SierraChart
Trading: Freeze Dried Orange Juice
Posts: 44 since Jul 2011
Thanks Given: 161
Thanks Received: 48

Is it possible to programmatically pause Market Replay from within a NinjaTrader indicator?

That is: Perhaps something like this pseudo-code:
if (SetupDetected == true)
{
MarketReplay.Pause();
}

If this is not possible anyone have other programmatic suggestions on accomplishing this task?

Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Better Renko Gaps
The Elite Circle
REcommedations for programming help
Sierra Chart
ZombieSqueeze
Platforms and Indicators
 
  #2 (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

I'm not aware of a method to do this within NinjaTrader. Only outside:

Probably the best/only method will be to execute an AutoIt script from within your strategy/indicator which then clicks the Market Replay window pause button at a preset location. Keep in mind, most likely, you will not be able to use the mouse when this script is executed otherwise it will fail.

Reply With Quote
Thanked by:
  #3 (permalink)
 mzabarain   is a Vendor
 
Posts: 26 since May 2013
Thanks Given: 30
Thanks Received: 18



MrYou View Post
I'm not aware of a method to do this within NinjaTrader. Only outside:

Probably the best/only method will be to execute an AutoIt script from within your strategy/indicator which then clicks the Market Replay window pause button at a preset location. Keep in mind, most likely, you will not be able to use the mouse when this script is executed otherwise it will fail.

Could you tell me how to call/execute an AutoIt script from within a NT strategy?

Thanks in advance

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


mzabarain View Post
Could you tell me how to call/execute an AutoIt script from within a NT strategy?

I'm not sure what you're trying to achieve so I'll put it in the context of the OP. Off the top of my head and to keep it simple...

Write an AutoIt script that checks if a file exist every n second(s). If file exist then remove file and click the Market Replay pause button. Within your NinjaScript you would just create this file when you want your AutoIt script to pause the Market Replay.

If this inter-process file-based communication method doesn't work for you then you'll want to search on how to execute programs from within .NET.

Reply With Quote
  #5 (permalink)
 mzabarain   is a Vendor
 
Posts: 26 since May 2013
Thanks Given: 30
Thanks Received: 18


MrYou View Post
I'm not sure what you're trying to achieve so I'll put it in the context of the OP. Off the top of my head and to keep it simple...

Write an AutoIt script that checks if a file exist every n second(s). If file exist then remove file and click the Market Replay pause button. Within your NinjaScript you would just create this file when you want your AutoIt script to pause the Market Replay.

If this inter-process file-based communication method doesn't work for you then you'll want to search on how to execute programs from within .NET.

Thanks for your input Mr. You.

Reply With Quote




Last Updated on May 5, 2014


© 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