PureBytes Links
Trading Reference Links
|
Hello all,I'm trying to code some AFl to
sell if EITHER of the following 2 conditions are met:
- 2 days have passed since buying
OR
- the price has dropped below the low of the bar
right before buying
The following AFL is not working correctly.
What am I doing wrong ?
//ApplyStop(0,2, Ref(Low, -1),1); // I don't think this one is
rightApplyStop(0,2, ValueWhen(buyconditions, Low, 1),1); // this one
is not working correctlyBuy = buyconditions;Buy =
ExRemSpan(Buy,2);Sell = Ref (Buy, -2);
////////////////////////////////
|