-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buy at Open, close at Close of the same candlestick #249
Comments
The recommended approach for trading within candlesticks is to obtain/load OHLC data in a lower time-frame. |
Thank you, that is viable approach. The only issue with that is that intraday data is not as free and easy to get as daily data so when we want to run across good amount of stocks we would need to pay for data |
while we're at it, is it possible to specify the exact price we want to make it in? In that case, we can specify any OHLC, or combinations. We can set a flag somewhere if we don't want to accidentally cheat with it. |
Instead of market order use limit order for the required price. If you mean completely different price like the options premium of this stock then it is not possible without serious modifications. I think it may be possible to do several transactions in one bar by calling self._broker.next() after each order in Strategy.next(). This way the order will be processed and it will accept new order in the same bar. It is not verified, just an idea to experiment with. |
Can you make it so we can buy at Open and close the position at Close the same candlestick?
Thanks
The text was updated successfully, but these errors were encountered: