NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 08-31-2011, 08:21 PM   #1
The Alchimix
Junior Member
 
Join Date: Oct 2009
Location: DTC
Posts: 15
Thanks: 1
Thanked 2 times in 2 posts
Question RealtimeErrorHandling

I run my FX strategies on the same account with each the maximum leverage. As it is a scalping systems I sometimes get excess margin error when one currency is moving fast (often during news). Example : Yen is moving fast and one strategy enter on GJ with maximum leverage and then another strategy try to enter EJ, but fail cause of margin. At this moment Ninja disable the strategy which caused the error. I want the strategy to continue running. I'm thinking about RealtimeErrorHandling.TakeNoAction but I would like to know exactly what are risks. I use managed approach. I enter Market only, and use Stop & Target Submission = PerEntryExecution. If I get an overfill error (this happen cause of market's speed only when my trail is running fast....(need real IB trail....;-)) what will happen ? Will Ninja cancel my trail ?
Any other idea may be ?

Alchi
The Alchimix is offline  
Reply With Quote
Old 09-01-2011, 12:58 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,414
Thanks: 252
Thanked 978 times in 961 posts
Default

Alchi, correct an overfill would halt the strategy per default, but in the unmanaged approach you could address that via code - http://www.ninjatrader.com/support/h...reoverfill.htm
NinjaTrader_Bertrand is offline  
Reply With Quote
Reply

Tags
realtimeerrorhandling

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
RealtimeErrorHandling and automated ATM strategies pepelucho Automated Trading 1 06-11-2010 01:26 PM
RealtimeErrorHandling Issues John833 Strategy Development 5 05-12-2010 04:05 PM


All times are GMT -6. The time now is 11:49 PM.