Hello,
If you get exits at the same bar as entry it means that somewhere
you must have enabled "allow same bar exit".
Please go to AA settings and make sure that "Allow same bar exit (single bar
trade)" is OFF.
Also make sure that you don't use
SetOption("AllowSameBarExit", True );
anywhere in your formula.
Once this option is off, you won't be getting single bar trades and there will
be no
need to even use HoldMinBars.
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: Ara Kaloustian
To: AB-Main
Sent: Wednesday, October 15, 2008 8:20 PM
Subject: [amibroker] HoldMinBars
I tried to use
SetOption("HoldMinBars", 1 );
to prevent exit on same bar as the buy signal, but and getting a message
"You can not use HoldMinBars together with Allow Same Bar exit"
Problem is, I am not using "Allow Same Bar exit".
Would there be something else that has the same effect?
Ara