[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] TJ - Stoch/MACD



PureBytes Links

Trading Reference Links

NAthan,
>Sell = IIf(StochK()>75, ...
Without any other factor this will always execute the true or false decision
on the very next bar,
"true" if on the next bar it exceeds 75, or "false" if on the next bar it
doesn't. Maybe use the "AND" or "OR" like this;
Sell = IIf(StochK()>75 AND barssince(buy) == 3, ...
Sell = IIf(StochK()>75 OR ROC(StochK(),1)<0, ...
Untested
HTH,
Brian