Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
order cancellation message
Collapse
X
-
9/22/2015 12:41:03 PM Amended stop order: Order='86bdfacafc2d40f6b85de20c02df8e02/Sim101' Name='Stop loss' State=Accepted Instrument='YM 12-15' Action=Sell Limit price=0 Stop price=16151 Quantity=1 Strategy='VolatilityTrader' Type=Stop Tif=Gtc Oco='1b045cef11fc42eaa7eb8555d10f0abd-429' Filled=0 Fill price=0 Token='86bdfacafc2d40f6b85de20c02df8e02' Gtd='12/1/2099 12:00:00 AM'
9/22/2015 12:41:03 PM Cancelled pending exit order, since associated position is closed: Order='86bdfacafc2d40f6b85de20c02df8e02/Sim101' Name='Stop loss' State=Accepted Instrument='YM 12-15' Action=Sell Limit price=0 Stop price=16151 Quantity=1 Strategy='VolatilityTrader' Type=Stop Tif=Gtc Oco='1b045cef11fc42eaa7eb8555d10f0abd-429' Filled=0 Fill price=0 Token='86bdfacafc2d40f6b85de20c02df8e02' Gtd='12/1/2099 12:00:00 AM'
Here is a screen shot of the above trade, I don't know why it has exited like that, the exit logic is either 10 ticks then breakeven or the yellow line crossbelow the pink... The swing stops look like they were placed 3 ticks below the swing low at 16151 according to the log which is correct..
-
Hello brucelevy,
Try printing the position outside of that condition.
Print(Time[0] + " | " + Position.MarketPosition);
Leave a comment:
-
I put in the trade but I am getting thousands of these occurrences where it prints exits..
I have this before any of the exits so I don't know why its printing exits if its not in a position
if(Position.MarketPosition == MarketPosition.Long
9/22/2015 12:06:24 PM Ignored PlaceOrder() method: Action=BuyToCover OrderType=Market Quantity=0 LimitPrice=0 StopPrice=0 SignalName='' FromEntrySignal='S2' Reason='This was an exit order but no position exists to exit'
Exit Short trade at 1125.3 at 9/22/2015 12:06:22 PM
Leave a comment:
-
Hello brucelevy,
The Log is showing that an order was cancelled after another order was executed. (It looks like a profit target filled to close a short position and then the associated stop was cancelled)
However, the Log wouldn't show you which condition is setting the stop loss to an invalid price or what the current ask or bid price is when the stop is placed.
TraceOrders and prints are going to give you this information.
TraceOrders - http://ninjatrader.com/support/helpG...raceorders.htm
Prints - http://ninjatrader.com/support/helpGuides/nt7/print.htm
Leave a comment:
-
I have the output window up now so if anything shows up ill repost; this is what I have for now from the log
Leave a comment:
-
Hello brucelevy,
When calculating the price of your stop are you checking that the buy stop is above the ask or that the sell stop is below the bid?
Do you have prints that show the price that the order is being set to along with the current bid or ask price?
http://ninjatrader.com/support/helpGuides/nt7/print.htm
If so, please attach these prints to your next post.
Leave a comment:
-
order cancellation message
Hey guys, so I'm trying to figure out whats going on. When the system enters an order it sometimes puts the stops above price for a long although it is set to put stops below swing lows - 3 ticks... Having some trouble deciphering where the issue is.
The swing stop strength is set to 5 and I noticed that price is in a downtrend and there are not swing lows anywhere near price, could this be the issue?
chart with no swing lows
error messages
Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by samish18, Today, 11:26 AM
|
0 responses
1 view
0 likes
|
Last Post
by samish18
Today, 11:26 AM
|
||
Started by Trader146, 03-29-2024, 01:22 PM
|
2 responses
14 views
0 likes
|
Last Post
by Trader146
Today, 11:24 AM
|
||
Started by tsantospinto, 04-12-2024, 07:04 PM
|
7 responses
126 views
0 likes
|
Last Post
by aligator
Today, 11:08 AM
|
||
Started by futtrader, 04-21-2024, 01:50 AM
|
5 responses
56 views
0 likes
|
Last Post Today, 10:57 AM | ||
Started by PeakTry, Today, 10:49 AM
|
0 responses
2 views
0 likes
|
Last Post
by PeakTry
Today, 10:49 AM
|
Leave a comment: