NexusFi: Find Your Edge


Home Menu

 





NinjaScript Workaround


Discussion in NinjaTrader

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




 
Search this Thread
  #1 (permalink)
 
JGSmith's Avatar
 JGSmith 
Lübeck, Germany
 
Experience: Intermediate
Platform: NinjaTrader, MT4
Broker: FXCM, Interactive Brokers, Oanda
Trading: Forex
Posts: 150 since Aug 2013
Thanks Given: 61
Thanks Received: 55

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!!


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Bookmap Global Plus Lifetime + Lifetime Addons For Sale
Platforms and Indicators
One Wallet Made $200K in Hours: AP Probes Polymarket Cea …
Prediction Markets & Event Contracts
Saylors 41-Month HODL Breaks: Strategy Sells 32 BTC as $ …
Prediction Markets & Event Contracts
CME Launches Bitcoin Volatility Futures June 1 -- First …
Cryptocurrency
Kharg Island at 6%, Regime Fall at 1.5% -- The Black Swa …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 thanks




Last Updated on June 16, 2014


© 2026 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 - Downloads - Top
no new posts