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)
In an effort to better understand the functionality of how buys and sells work within a strategy, I have written a very simple program.
The buy order enters me into a position as expected, but the subsequent sell orders do not work as expected, except for the first one. I cannot seem to figure out why the subsequent sell orders do not get executed.
The expectation is for 100 shares to be sold on every bar after the buy order is executed, until the position is flat.
Can anyone shed some light on why the program is behaving this way?
Can you help answer these questions from other members on NexusFi?
"Sell" is the reserved word for closing a long entry, or partially closing it as in your case. Exit orders do not pyramid in Tradestation i.e. they will only be applied once to a position (unless the position is modified after the exit).
Having said that, you would need ten different exit orders to accomplish what you have in mind, while making sure that they are not all applied to the entry at the same time.