NinjaScript Workaround - NinjaTrader Programming | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming

NinjaScript Workaround
Started:June 16th, 2014 (05:17 PM) by JGSmith Views / Replies:204 / 1
Last Reply:June 16th, 2014 (05:17 PM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

NinjaScript Workaround

Old June 16th, 2014, 05:17 PM   #1 (permalink)
Elite Member
Duisburg, Germany
Futures Experience: Intermediate
Platform: TWS, NinjaTrader, MT4
Broker/Data: FXCM, Interactive Brokers, Oanda
Favorite Futures: Forex
Posts: 129 since Aug 2013
Thanks: 55 given, 44 received

NinjaScript Workaround

I am trying to come up with a NinjaScript work around and think that I may have an idea and want to know if anyone can confirm if this would work or not.

The goal is that NinjaScript would only be used to 1.) place entry, stop, and limit orders & 2.) remove pending entry orders after a particular time.

If the entry orders are triggered, then the trade could stay active for several days - thus the stop & limit orders would be pending for several days as well.

I do not want NinjaScript to update the pending stop & limit orders on the following days as it would when new trades are placed.

According to the help files (NinjaTrader Version 7), NinjaScript will take an active role in the pending orders again when the program is restarted.

Therefore, here is my thought for a workaround.

Also, according to the help files: A previously generated order is considered to match an active strategy order when the order action, order type, quantity, limit price, and stop price are exactly identical.

With this in mind, could I close NinjaTrader and then manually change the stop & limit orders by 0.5 pips. At this point, the order on the TWS server would not be exactly the same as what is in the NinjaScript strategy and therefore, would NinjaScript ignore those orders and leave them be? Would NinjaScript try to delete those orders?

Thanks for your help!!

Reply With Quote

Old June 16th, 2014, 05:17 PM   #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.


Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > NinjaScript Workaround

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Workaround for no continuous contract data? BenosBanderos IB Trader Workstation 8 December 1st, 2015 08:21 AM
Easy Language Workaround minntabo TradeStation 3 November 24th, 2013 02:21 PM
EasyLanguage to NinjaScript - example tomas262 NinjaTrader Programming 2 July 10th, 2013 11:12 AM
Workaround code for more accurate backtesting quantismo Elite Automated NinjaTrader Trading 11 October 1st, 2012 11:58 PM
Ninjascript How TO spinnybobo NinjaTrader Programming 2 October 29th, 2009 10:34 AM

All times are GMT -4. The time now is 01:12 AM.

Copyright © 2016 by 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.
no new posts

Page generated 2016-10-27 in 0.07 seconds with 19 queries on phoenix via your IP