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

Re: [amibroker] Alertif default for lookback



PureBytes Links

Trading Reference Links

Hi,

Four hours later and think I understand this a little better.

This applies for Indicator Alertif, with Alertif placed in a chart with data coming in.
Alertif(Buy, "", "", 1, 1+2, Lookback =1); // returns the first signal in one bar back.
Alertif(Buy, "", "", 1, 1+2, Lookback = 10); // only returns the first signal in the last 10 bars back.
Alertif(Buy, "", "", 1, 1+2, Lookback = 0); // Actually gives me a signal inside the currently open 5 min bar with data coming in.
Alertif(Buy, "", "",1, 1 + 2 ) ; // with no Lookback set, I get a signal only for the last (already closed bar).

Therefore this defaults to a value of 1.

My confusion was that in AA settings N bars back, hitting Scan would output all signals in the Results window.
This is not the same as the lookback field in the Alertif statement, as far as I can make out.

See attached for those of us who can get attachments.

Regards

ChrisB





ChrisB wrote:

Hi

If I do not set a value in the last parameter of

Alertif( , Lookback = 1);

what does this default to?

--
Regards

ChrisB

__._,_.___

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

JPEG image

JPEG image