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)
Hello all,
I wrote a super easy correlation strategy that looks to hold for 7 days after entry. uses daily bars.
the problem I'm having is if I'm currently in a position and i get another signal the second entry will exit the same time as the first.
how do i exit 7 days after each entry?
example:
I have approximate answers, possible beliefs and different degrees of certainty of different things. But I'm not absolutely sure of anything and there are many things i don't know anything about.
Can you help answer these questions from other members on NexusFi?
Use the From Entry("order name") code to specify which exit order should close which entry order. See for example the BuyToCoverwiki article for more on that.
thanks @Jura that helped... still having some issues with barssinceentry liquidating my entire position though.
I'll keep tooling with it.
I have approximate answers, possible beliefs and different degrees of certainty of different things. But I'm not absolutely sure of anything and there are many things i don't know anything about.
ok that does work for a maximum of 2 entries. but if i get 3 in the same direction it doesn't. it treats the 3rd entry like another 2nd entry. I feel like i'm missing something easy. i would just like to be able to enter the market and hold for seven days no matter what other entries occur. i.e. if i buy separately on monday then tuesday then wednesday, mondays entry will sell next monday, tuesday entry will sell next tuesday etc...
I have approximate answers, possible beliefs and different degrees of certainty of different things. But I'm not absolutely sure of anything and there are many things i don't know anything about.
hmmm.... sounds like a good idea, trying to think of the logic of that code
I have approximate answers, possible beliefs and different degrees of certainty of different things. But I'm not absolutely sure of anything and there are many things i don't know anything about.
sometimes i feel like i code, and code, and code.... just to end up with something worse than i started with...
elegant i am not
I have approximate answers, possible beliefs and different degrees of certainty of different things. But I'm not absolutely sure of anything and there are many things i don't know anything about.
thanks for the support Bimi, i'm glad to say i've got it sorted out now too.
I have approximate answers, possible beliefs and different degrees of certainty of different things. But I'm not absolutely sure of anything and there are many things i don't know anything about.