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)
You can't.
What you can do is - calculate a middle point btw the long and short price and below it issue a long limit and cancel short limit, if was issued, and vs. On the next bar if was not triggered recalculate.
Hi baruchs
I know your post is 2 years old, but could you please elaborate more on this concept. I've been trying to find a way around this for a while, but with no success. Thanks
This is an interesting post and would like to add the following. Hopefully someone has found a good solution for the following.
being flat
shortlimit is active
longlimit becomes active
NT will ignore the longlimit in the managed approach because of the trading rules.
solution:
cancel shortlimit first
then activate longlimit
but:
if you put this code close to each other the Nt core will not have enough time to cancel the shortlimit and you end up again with the ignored longlimit.
There needs to be at least one bar in between the cancel of shortlimit and the activation of longlimit.
So you will have to cancel shortlimit on bar 0 and activate longlimit on bar 1
problem: you activate 1 bar too late with possible missed trading opportunities
solution:
use smaller time frame to cancel the shortlimit on bar 0 and activate the longlimit 1 bar later on the smaller timeframe. Use the other logic on you regular timeframe.
but:
this will make your overall performance slower, for example i am running into crashing NT during WFO because i am using lower time frame (1 minute) for 0 bar cancelling and 1 bar later activating. At the same time the main logic of the code is still running on the higher time frame.
Question:
Did anyone find a solution for this.
Maybe it is time to step to the unmanaged approach?