Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 9/12/2009(UTC) Posts: 9
|
Hi,
When i place an alert on a specific price level using < or >,is their a way to limit the alert to say only two subsequent bars?,
Peter
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 9/13/2004(UTC) Posts: 673 Location: Salt Lake City, UT
|
Alerts will either recalculate live (each and every tick) or at the completion of a price bar. This is controlled via Tools-->Options-->Realtime and checking/unchecking the "Recalculate Expert Live" checkbox. This is the only way to control the frequency of alerts.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/25/2005(UTC) Posts: 1,042
Was thanked: 57 time(s) in 54 post(s)
|
Hi P
Justin’s solution works when restricting an Alert to just once per bar with real-time data, but there’s another situation where an alert testing for a logical state can repeat on multiple bars. This can be addressed by limiting a logical TRUE for the alert to just the first bar that the test state is TRUE. To do this you must change the last line of the alert from, say,
State; {=TRUE}
to
State {=TRUE on current bar} AND Ref(State,-1)=FALSE; {FALSE on previous bar}
A TRUE for the first bar of an alert could also be defined with
State {=1} AND Alert(State=0,2);
You do not need to include “=TRUE” or “=1” when testing a variable for a TRUE state because MetaStock assumes “=TRUE” is what you mean. If you’re testing for a FALSE condition, however, you must be specific about that and qualify with “=FALSE” or “=0”.
Roy
www.metastocktips.co.nz
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 9/12/2009(UTC) Posts: 9
|
Hi All.,
Thanks for the replies,i will investigate them.Why i am asking is if i am away from the screen and i set an alert i don't want it to keep sending a message to my mobile until i turn the alert off,
Peter
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.