Hi!
I try to program no trade for 3 days after the last one closed.
I have that: if (LastPosition.ExitBar > 3) but it doesn't work...
Do you have any suggestion?
Thanks
S
Size:
Color:
I think the problem is to start the first position because this condition is never true with the first trade (no "lastposition". What do you think?
Size:
Color:
You're right on the money.
But don't code what you can beg, borrow or steal:
CooledOffInstall Community Components from the Extensions section and restart WL6 before using.
Size:
Color:
Thanks! I will do that...
I found a solution anyway: if (Positions.Count < 1||LastPosition.ExitBar > 3)
Size:
Color:
I finally used cooledOff. Thank Eugene!
Size:
Color: