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)
This is my entry criteria for entering a buy trade.
//Buy Average
if (close<low_signal and close[1] > high_signal and close[2]>high_signal then buy next bar at market;
setprofittarget(AvgEntryPrice_at_Broker_for_The_Strategy+20);
I have tried using barssinceentry>=0 and also maxentries<100 but no luck.
from this code snippet it's hard to tell. You can check with print statements if your entry conditions are valid while you are in a trade. This should tell you if your code is the problem.
What radio button position did you use for the Position limits under the strategy properties? Is it set to "regardless of the entry that generated the order"?
I have tried a simple SMA cross strategy which I can now backtest and see the trade differences between the 2 different radio buttons. Something must be off with my code.