NexusFi: Find Your Edge


Home Menu

 





Ninja Strategy- Real Time Errors


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one NinjaTrader with 2 posts (4 thanks)
    2. looks_two Quick Summary with 1 posts (0 thanks)
    3. looks_3 Fat Tails with 1 posts (1 thanks)
    4. looks_4 waza1960 with 1 posts (0 thanks)
    1. trending_up 3,273 views
    2. thumb_up 5 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 2 attachments




 
Search this Thread

Ninja Strategy- Real Time Errors

  #1 (permalink)
 
waza1960's Avatar
 waza1960 
NSW Australia
 
Experience: Advanced
Platform: MT4/MT5/ Multicharts/Ninja Trader
Broker: gain
Trading: forex
Posts: 33 since May 2010
Thanks Given: 38
Thanks Received: 40

I have a Ninja Strategy which Backtests perfectly but returns errors when traded live in Sim . Any help would be appreciated in finding the necessary adjustments which need to be made to the Strategy.
This is NT's reply about the problem

Quoting 
I checked your log and trace files. One of your strategy orders (sell short) is filled at 6:00 AM. Subsequently a trail stop and a profit target order are submitted. Unfortunately the profit target order is rejected. The limit price of the order is greater than the current ask price. Unfortunately buy limit orders submitted at a price greater than the ask price are not accepted.

11/15/2011 6:00:00 AM|1|32|Order=xxxxxxxxxxxxxxxxxxxxxxxxxxxxName='Profit target' New state=Rejected Instrument='$EURUSD' Action=BuyToCover Limit price=1.35772 Stop price=0 Quantity=1 Type=Limit Filled=0 Fill price=0 Error=OrderRejected Native error='Limit price can't be greater than current ask.'

11/15/2011 6:00:00 AM|0|32|Gain Live, Limit price can't be greater than current ask. affected Order: BuyToCover 1 Limit @ 1.35772


You will need to ensure your strategy will not submit buy limit orders at such prices. The same applies for sell limit orders - they cannot be submitted at prices smaller than the bid price. You experience such a rejection at 2:00 PM.
As per the screenshots you sent, another buy limit order was submitted higher than the current ask. What ask price did you receive when the order was submitted?

If you need any assistance with your strategy code, please post a message on our support forum. It is monitored by support people with programming experience.


Please find some screenshots of the strategy code I don't wish to disclose the full code at this time any help would be appreciated

Attached Thumbnails
Click image for larger version

Name:	211111.3.JPG
Views:	197
Size:	55.4 KB
ID:	55368   Click image for larger version

Name:	211111.2.JPG
Views:	200
Size:	76.4 KB
ID:	55369  
Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Are there any eval firms that allow you to sink to your …
Traders Hideout
Better Renko Gaps
The Elite Circle
NexusFi Journal Challenge - April 2024
Feedback and Announcements
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
38 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
GFIs1 1 DAX trade per day journal
19 thanks
The Program
18 thanks
  #3 (permalink)
 
NinjaTrader's Avatar
 NinjaTrader  NinjaTrader is an official Site Sponsor
Site Sponsor

Web: NinjaTrader
AMA: Ask Me Anything
Webinars: NinjaTrader Webinars
Elite offer: Click here
 
Posts: 1,713 since May 2010
Thanks Given: 203
Thanks Received: 2,686



waza1960 View Post
I have a Ninja Strategy which Backtests perfectly but returns errors when traded live in Sim . Any help would be appreciated in finding the necessary adjustments which need to be made to the Strategy.
This is NT's reply about the problem

Please find some screenshots of the strategy code I don't wish to disclose the full code at this time any help would be appreciated


GAIN (FOREX.com) buy limit orders above the ask and sell limit below the bid are not valid and will be rejected. NinjaTrader's simulator takes into account this GAIN specific limitation. During a backtest, there is no associated brokerage account so these orders are valid. You should replace these orders with market orders.

Follow me on Twitter Reply With Quote
Thanked by:
  #4 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


NinjaTrader View Post
GAIN (FOREX.com) buy limit orders above the ask and sell limit below the bid are not valid and will be rejected. NinjaTrader's simulator takes into account this GAIN specific limitation. During a backtest, there is no associated brokerage account so these orders are valid. You should replace these orders with market orders.

@NinjaTrader:

Marketable limit orders are used to control slippage. I understand that it is possible to use this order type with real accounts and for backtests, and that the limitation only applies to the simulator and to some broker accounts, if required by the broker.

Please correct me if I did not understand it correctly.

Reply With Quote
Thanked by:
  #5 (permalink)
 
NinjaTrader's Avatar
 NinjaTrader  NinjaTrader is an official Site Sponsor
Site Sponsor

Web: NinjaTrader
AMA: Ask Me Anything
Webinars: NinjaTrader Webinars
Elite offer: Click here
 
Posts: 1,713 since May 2010
Thanks Given: 203
Thanks Received: 2,686


Fat Tails View Post
@ NinjaTrader:

Marketable limit orders are used to control slippage. I understand that it is possible to use this order type with real accounts and for backtests, and that the limitation only applies to the simulator and to some broker accounts, if required by the broker.

Please correct me if I did not understand it correctly.

As of 11/21/2011 the limitation only applies to:

- GAIN live account
- NinjaTrader simulator when connected to GAIN

We will be releasing support for FXCM very soon and once it is released, the limitations above will also apply to them.

Follow me on Twitter Reply With Quote
Thanked by:




Last Updated on November 21, 2011


© 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