Welcome to NexusFi: the best trading community on the planet, with over 200,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 -- discounts are available after registering.
-- The NexusFi team
(If you already have an account, login at the top of the page)
Site Administrator Developer Swing Trader R.I.P. 1977-2026
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,669 since Jun 2009
Thanks Given: 33,669
Thanks Received: 102,586
You need to wrap code snippets in the [code]put code here[/code] tags to prevent bad formatting on the forum.
It sounds like what you are wanting is called Market On Touch. You'll have to run your strategy with COBC = false to monitor tick by tick.
You seem to be saying you are getting an error message. It would be helpful if you would post a screen shot of the error message, but my guess from your posts is that you need to use a dot . not a comma , in the double. BTW, an int cannot have decimals, and a boolean cannot have decimals.
I suggest you study some existing strategy and indicator code, there are hundreds available on this site. Read line by line and you will begin to understand what you can do from others working examples.