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)
i have a strategy that is stop and reverse and I want to place a limit exit, however when i do this once the strategy exits it position it will automatically get right back into the long or short position. I tried to put code in that says "if marketposition <> -1 then begin" but then the strategy generates no trades... how can i prevent a strategy from automatically re-entering in the same direction? The goals is to take the Long Short Strategy and place limit exists but once a short or long achieves its exit not to entry until the next trade... which if long would be short and vis-versa.
Can you help answer these questions from other members on NexusFi?
you could store the previous market position of the entry and then check this against the new entry. Another idea would be to use the exit name and make sure the last exit wasn't a long limit exit in case you want to enter long.
The latter requires OOEL, but the first idea is fairly simple. The only thing to keep in mind is that you only want to store the previous market position if you are long or short and not if your are flat.
is there any possible way to have an underlying stop and reverse strategy and on top of that overlay a exit management strategy with out effecting entries for the main strategy?