Skip to content
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

How to check if is there an order open return 1 else return 0 in thinkorswom coding? #3

Open
myfuture2025 opened this issue Jul 15, 2019 · 2 comments

Comments

@myfuture2025
Copy link

Hi All,
I am trying to implement a strategy of back testing in thinkorswim. I want to check if there is no or only 1 order open the strategy will open one more order. How can I do this by coding? Thanks

@korygill
Copy link

Have you looked at GetQuantity API? For back testing, I use FloatingPL study, and if you want to contain max position size, see Studies | Edit Studies and Strategies | Global Strategy Settings... | Position Limits.

@myfuture2025
Copy link
Author

Thanks Korygill. I am at work right now; will try it tonight. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants