logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
pwood  
#1 Posted : Thursday, October 1, 2009 12:00:11 PM(UTC)
pwood

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

Justin  
#2 Posted : Thursday, October 1, 2009 3:49:30 PM(UTC)
Justin

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.
mstt  
#3 Posted : Thursday, October 1, 2009 7:12:55 PM(UTC)
mstt

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

pwood  
#4 Posted : Friday, October 2, 2009 12:44:08 AM(UTC)
pwood

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)
Similar Topics
Repeated Alerts (Formula Assistance)
by FeverTrader 6/25/2019 2:58:01 AM(UTC)
Email alerts is MS 9.1 (MetaStock)
by roman001 11/3/2016 5:43:07 AM(UTC)
email alerts from EOD (MetaStock)
by guybooth 4/1/2015 1:34:13 PM(UTC)
I also have a problem on the buy and sell of alerts of expert advisor (Formula Assistance)
by Frenkys 1/1/2014 2:29:47 PM(UTC)
Irritated with "alerts" popping up with every tick! (Formula Assistance)
by nishant 11/21/2013 12:34:24 AM(UTC)
Metastock 12 EOD and e-mail alerts (MetaStock)
by Torbenv 4/10/2013 8:16:24 AM(UTC)
Multiple Alerts using Real Time Data (MetaStock)
by Cherian 11/8/2012 7:14:23 AM(UTC)
SImplfied way to email alerts to your account (Product Wish List)
by C1Miller 11/25/2010 9:24:24 PM(UTC)
how to cancel the pop alerts in metastock ? (MetaStock)
by sambousa 8/6/2010 8:24:18 AM(UTC)
Text message service for trading signals/alerts (Tips & Tricks)
by exito100 1/1/2010 10:28:42 AM(UTC)
Outlook Express and Alerts (Tips & Tricks)
by Jennifer A 11/5/2008 3:07:04 PM(UTC)
Trend Line Alerts - Any Plans For This Feature? (MetaStock)
by soullfire 7/19/2008 3:34:33 PM(UTC)
CODING COUNTING FOR DEMARKS COMBO OR SEQUENTIAL WITH ALERTS, & SYMBOLS,ETC (Formula Assistance)
by shadmax 3/25/2008 7:42:16 PM(UTC)
Metastock Multiple Alerts (MetaStock)
by damini001 3/19/2007 11:58:53 PM(UTC)
Expert Advisor: How to create alerts (MetaStock FAQ)
by StorkBite 7/31/2006 11:16:47 PM(UTC)
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.