Having problem with very simple thing and can't resolve it. I know it's simple, but very hard to me.
I have Two SMA (not exactly SMA, but in case the same thing). Have this code:
If (SMA(Fast)[0] > SMA(Slow)[0]{
EnterLongLimit(0, true, DefaultQuantity, LowBorder, "Long Limit");
}
In this case I have entries every time as price comes to my LowBorder value.
But I want to do next condition:
Enter only ONCE when SMA(Fast) > SMA(Slow) from entry order. Not more times.
I have SMA(Fast)<SMA(Slow) with short limit of course.
Cant' understand where I need to put "flags" to get those conditions and enters what i want.
Thanks!
Comment