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 -- discounts are available after registering.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Hi, I am trying to add a condition to a strategy based on the Net Profit taken from the Performance report.
Pseudocode --> Trade only if the Net Profit of today is greater than Net Profit of 4 months ago.
The strategy uses 15min Data1 and Daily Data2, therefore I thought the best way is to use Data2's candles (4 months = 60 daily candles back).
MaxBarBack had to be adjusted, but I can't seem to adapt MyNPT to the correct Data2 look back (60 candles), hopefully someone sees what is missing or has a better way to achieve the same result, thank you.
Note: I tried to add "of Data2" in the if statement before the entry rules, but I get a compiler error.
Can you help answer these questions from other members on NexusFi?