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)
Could you please help me with the next question? I am really stuck with it.
I have created an strategy in EasyLanguage and run it on my OEC Trading Platform. But the problem that my entry stop order stays active much longer then 1 bar. I do the next (cutted version):
As I understand, entry stop order should be canceled if it is not filled and new bar come? If it is not true, then how to cancel it?
I will be very obligated to you for help.
Thank you in advance.
Can you help answer these questions from other members on NexusFi?
That is true, it should be cancelled if not filled on the bar in question.
BUT, here is a dumb question...
Are you sure that CanGoLong and the other conditions are still not true? You might want to debug it using the Print statement, just to make sure the condition is really false.
It looks like you are using a non-time based bar type. MAYBE that has something to do with it.
I looked on Tradestation forum, and found this (which confirms your thinking):
> What is the lifespan of the stop order? If I do not issue it on each bar, will it then cease to exist?
You need to issue built-in stop orders on each bar to provide entry bar protection ( to allow exits on the same bar as entry ), even if you are not in a position, or they will be cancelled the next bar after your strategy stops issuing them.
So, the way I see it, your order should have been cancelled when "CANGOLONG" turns to false.
If I find out anymore, I will post it. You might also try posting this on TS forum.