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

[amibroker] stock price at time of buy signal



PureBytes Links

Trading Reference Links

Can anyone tell me what is the difference between these two?  I'm
tracing and i'm getting different results for different stocks.  Thank
you!

PriceAtBuySignal = ValueWhen (Buy==1,Close);
_TRACE("PriceAtBuySignal "+PriceAtBuySignal);

PriceAtBuySignal = LastValue (BuyPrice);
_TRACE("PriceAtBuySignal "+PriceAtBuySignal);