Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Strategy Information:
Managed Approach from the wizard with the following in NT7. I unlock the code to add additional code
I am using limit orders to enter the market, then NT auto creates a OCO bracket orders for stoploss and profit order.
EnterLongLimit()
EnterShortLimit()
SetStopLoss()
SetProfitTarget()
Problem
Sometimes (normally during high volume price action) when the entry limit order is filled, instantly I get an error (see attachment) that the stop order is placed on the profit side of the trade. For example, if a long order is filled, the stop order is being placed above the entry price. This causes the Order Rejection and causes the strategy to disable. This happen on the long and short side.
I am using a -30 tick stop loss, and after the Order Rejection occurs, I never see the market prices below my original stop loss price. So the stop loss is just plain being placed on the wrong side of the trade for no apparent reason. I never see price move more then 5-7 ticks towards the stop loss price. So may not be related to high volume.
This problem does not occur often, but it worries me when it happens. I am trading sim until problem is resolved.
I have discussed this issue with NT support on email, but they tell me somewhere in my code is the problem. I can not find the bug.
I attached my code for review and errors.
Questions
1. From your experience with NT, do you recommend I move towards UnManaged Approach? I like Managed Approach because my coding skills is still in the beginner stages and learning.
Thank you kindly.
Can you help answer these questions from other members on NexusFi?
This is normal and a valid rejection if price is moving quickly you have to allow for it. I can't remember all the details but here is some code I wrote a fair while back that might help.
I am using a -30 tick stop loss, and after the Order Rejection occurs, I never see the market prices below my original stop loss price. So the stop loss is just plain being placed on the wrong side of the trade for no apparent reason. I never see price move more then 5-7 ticks towards the stop loss price. So may not be related to high volume.
I believe NT order handling is actually placing the stop loss order on the wrong side of trade.
Have you or anyone else ever seen this issue before?
Just had a quick glance at your code and you seem to be calling the Limit Entries twice
Same is short case, given the same name maybe it just overrides anyway, in which case ignore.
More importantly there are lots of other states in OnOrderUpdate that might be affecting you (e.g Pending, etc), see if the code in KeyTrader can shed any light on it. I've got my head full of too much other stuff at the moment to be much of a shining light..
I too am facing this issue constantly, I am using the shark indicators sofftware to place my trades through the blackbird interface, even a simple trailing stop loss triggers this error for me. Has anyone got any code which can supress the pop up error, it can happen 50+ times for me in a trading session and is so annoying. I have tried to get NT to do this but with no luck