Having next trouble:
I want to have only one enter from current Swing indicator. Only once when my condition is accepted. And if it will be accepted on this Swing again - I need to do nothing and skip it. How can I do this?
F.e. I have next code:
swLow = price of the current Low Swing
if(trendup == true)
{
currentLow = Low[0];
enterLongPrice = swLow;
if(currentLow < enterLongPrice && hadEnterFromThisLong == false)
{
priceInLongD = true;
}
if(priceInLongD == true && currentLow > enterLongPrice)
{
orderLong = EnterLongLimit(enterLongPrice, "Long Limit Order");
hadEnterFromThisLong = true;
}
Please, help!
Thanks!

Comment