Los Angleles, CA
Experience: Intermediate
Platform: Multicharts
Trading: Forex
Posts: 7 since Nov 2011
Thanks Given: 18
Thanks Received: 2
|
I don't understand how to use BarsSinceExit correctly.
For example when I use the expression:
1. if marketposition= 0 and BarsSinceExit (1) >= 0 then begin //works as intended
2. if marketposition= 0 and BarsSinceExit (1) >= 1 then begin //does not work as intended
Basically, I don't want my strategy to open and close positions on the same bar.
I want to limit entry and/or exit signals in this strategy to once per bar.
I checked the user manual and power language keyword reference but did not see anything obvious that would explain
why the strategy works using example #1 yet does not open new positions using example #2.
Would be great if someone could point me in the right direction.
Thanks,
|