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.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I'm posting again this post because yestarday I hade an error from NexusFi after the publication and actually I'm unable to access to the post so it must be corrupted. Here is my original question.
I'm basically trying to avoid an entry if there was already an entry closed in the previous bar. So just to be sure I decided the avoid entries at least for 3 bars after the last trade so I made this code:
The problem is that by adding "canEntry" in the " if marketposition = 0 and canEntry then begin" the strategy doesn't perform any trade. By removing canentry the backtest is showing 731 trade.
Ok so I tryied to print barssinceexit(1) and it work!!!!! It is correclty showing values in the Output as this exampe:
So if I'm able to PRINT it then barssinceexit(1) HAS a value and why my code is basically never doing a trade? --------> Why canEntry is always false?