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)
Hi all,
I can't buy when the price break the pivotH after 3 bars. How Can I make?
Below my code and image where I want the signal buy but this condition verify after 3 bars.
you reset your BuyFlag3 at the time you send your order. This means on the next bar, the order condition wouldn't be fulfilled anymore and therefore your order would be cancelled, unless filled before of course.
The easiest way might be to store the bar number at the time you set the flag to true and when CurrentBar > SavedBarNumber + X (where X would be the number of bars the order should be valid) or the MarketPosition > 0 (which would indicate an entry), you set the buy flag to false.