• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 4:24am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 4:24am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

RSI sound alert 19 replies

MTF Stochastic indicator with sound alert? 10 replies

Looking for MT4 indicator: Sound alert enabled Pivot Levels 5 replies

Sound alert coding help 2 replies

EA wanted for sound alert depending on fractals condition 2 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 9
Attachments: Alert to sound X pips AWAY from an MA
Exit Attachments
Tags: Alert to sound X pips AWAY from an MA
Cancel

Alert to sound X pips AWAY from an MA

  • Last Post
  •  
  • 1 2Page 3 4
  • 1 2Page 3 4
  •  
  • Post #41
  • Quote
  • Jul 15, 2011 2:55pm Jul 15, 2011 2:55pm
  •  dread
  • | Joined Jan 2008 | Status: Member | 114 Posts
Quoting CodeMeister
Disliked
This indicator will alert when the price has moved a specified number of pips from the MA. Every kind of MA can be specified. There is also an email alert. This new indicator replaces PipMArk.ex4. It will not be supported in the future.

These are the inputs and their meaning.


AlertPips=10 - distance from MA to close in pips.
AlertBarsSkip=3 - number of bars to skip before next alert.
MATimeFrame=0 - this is the TF for the calculation of the MA. Zero means to use the chart's TF.
MAperiods=10 - MAperiods - the number of periods to be...
Ignored

This indicator is fabulous...Is there any way to have this indicator alert us "WHEN THE PRICE CLOSES" AFTER CROSSING A MA???? LONG OR SHORT???

Thank you so much CodeMeister....It's been a pleasure reading your comments for years. I'm a big fan.....

Regards,
 
 
  • Post #42
  • Quote
  • Jul 21, 2011 5:07am Jul 21, 2011 5:07am
  •  whatfx
  • | Joined Jun 2010 | Status: The Villain | 2,565 Posts
does anyone know of any trading platforms that provide alerts when price crosses certain ma and indicators on your chart ?

the alert has to be in the form of a text message sent to your mobile phone.


for example, say if price crosses above the 55 sma, or say the price crosses above the level 50 on rsi. i need an alert on my mobile phone to notify me of this .
 
 
  • Post #43
  • Quote
  • Edited 8:49pm Sep 25, 2011 8:23pm | Edited 8:49pm
  •  CodeMeister
  • Joined Sep 2009 | Status: Making Code While Making Pips | 1,672 Posts
As promised many months ago, I have added several new features to the Pips2MA alert indicator.

A mail alert option has been added. Of course this will only work if MT4 is properly configured to send emails.

The other new option is CloseBar which means sending the alert only after the bar has closed and is still within the target distance from the MA.

The new version will not affect current user settings as the new ones have to be selected to be active.
Attached File(s)
File Type: ex4 Pips2MA.ex4   6 KB | 3,801 downloads
 
 
  • Post #44
  • Quote
  • Sep 26, 2011 10:10am Sep 26, 2011 10:10am
  •  CodeMeister
  • Joined Sep 2009 | Status: Making Code While Making Pips | 1,672 Posts
Here is the dashboard version of this indicator.

http://www.forexfactory.com/showthread.php?t=317213
 
 
  • Post #45
  • Quote
  • Oct 4, 2011 12:22pm Oct 4, 2011 12:22pm
  •  morpheus_
  • | Joined Oct 2011 | Status: Member | 8 Posts
hello codemeister,

works it, when both sides are crossing?

form above and below?
 
 
  • Post #46
  • Quote
  • Oct 4, 2011 12:31pm Oct 4, 2011 12:31pm
  •  CodeMeister
  • Joined Sep 2009 | Status: Making Code While Making Pips | 1,672 Posts
Yes it does.
 
 
  • Post #47
  • Quote
  • Dec 12, 2011 4:41pm Dec 12, 2011 4:41pm
  •  chick3n420
  • | Joined Mar 2011 | Status: Member | 65 Posts
Does the S stand for Simple or Smooth?

Regards,
Chicken
 
 
  • Post #48
  • Quote
  • Dec 12, 2011 5:27pm Dec 12, 2011 5:27pm
  •  CodeMeister
  • Joined Sep 2009 | Status: Making Code While Making Pips | 1,672 Posts
S = simple
M = smooth
 
 
  • Post #49
  • Quote
  • Jan 31, 2012 6:18pm Jan 31, 2012 6:18pm
  •  Pips4Fun
  • | Joined Dec 2010 | Status: Member | 64 Posts
CodeMeister,

Thank you so much for all you've offered with these indicators. I cannot commend your giving spirit highly enough. Let's just say I owe you one if we ever get to meet!

Is it correct to assume that it is the bid price that is monitored in both directions by Pips2MA? And is it now okay to place a zero for AlertBarsSkip?
 
 
  • Post #50
  • Quote
  • Jan 31, 2012 9:31pm Jan 31, 2012 9:31pm
  •  CodeMeister
  • Joined Sep 2009 | Status: Making Code While Making Pips | 1,672 Posts
Welcome to FF Pips4Fun.

You picked a tough question for me to answer and I wish somebody had asked it several years ago when I wrote the indicator and everything was fresh in my mind.

The price used in the calculation is the current close. I believe that is the Bid price because I remember testing it and it would trigger when the price line crossed the threshold of the MA. How the close is derived is not documented and I remember there was a discussion about it here on FF at about the time I wrote the indicator. I think the consensus of the discussion was that Close = Bid but that was a long time ago and I doubt if I could find that thread again.

The question about AlertSkipBars is easy. Zero means to trigger the alert once per bar if the criteria is met. The default of 3 skips 3 bars after an alert even if the criteria is met.
 
 
  • Post #51
  • Quote
  • Feb 1, 2012 12:51am Feb 1, 2012 12:51am
  •  Pips4Fun
  • | Joined Dec 2010 | Status: Member | 64 Posts
Quoting CodeMeister
Disliked
Welcome to FF Pips4Fun.

...... I wish somebody had asked it several years ago when I wrote the indicator and everything was fresh in my mind.
Ignored

Indeed, to write code today and be taken to task on some specific small aspect of it in several years' time is not anything anyone would feel he needs. Yet you take it on so graciously, and painstakingly respond and attend to each issue raised. It bears repeating that this is very highly commendable.
 
 
  • Post #52
  • Quote
  • Edited 2:10am Feb 1, 2012 1:48am | Edited 2:10am
  •  Pips4Fun
  • | Joined Dec 2010 | Status: Member | 64 Posts
Quoting CodeMeister
Disliked

Welcome to FF Pips4Fun.

The price used in the calculation is the current close. I believe that is the Bid price .....
Ignored
Thank you.

My knowledge of these issues cannot come anywhere near yours, but please bear with me as I ask one or two questions that may turn out to be unreasonable.

The price bars that we see in MT4 are based on the bid price. When this bid price is approaching a moving average line (which itself may be based on the close or open etc.), it is not the close or the open or high or low of the bar that is doing so. It is just the price (the bid) at the given time.

This can be seen by watching the bid price line as it approaches the MA line, if the latter has been included in the chart. When the price equates that of the moving average, demonstrated by the price line touching the MA line, it is the bid price becoming equal to the MA price.

If this is correct, how is it then that the "price used in the calculation is the current close"? Does it mean that if I use the indicator on say, a daily chart and at 1 pm the price touches or approaches the EMA by the set number of pips, I will not get an alert until the next day?

Is it not the case that as soon as the bid price equals that of the MA, an alert is fired to announce it? From my observation of the indicator so far, it appears this is what happens. And this really was what I was looking for when I found Pips2MA namely, an IMMEDIATE alert as soon as price touches the MA or approaches it by a set number of pips.

If this is the case, then it is great indeed because then you don't have to wait for the bar to close (which would be the next day if you are using a daily chart!) to know that this has occurred.

If this is not the case and you do really have to wait for the bar to close to be alerted because the price used in the calculation is the current close, don't you think a review is necessary?
 
 
  • Post #53
  • Quote
  • Feb 1, 2012 2:20am Feb 1, 2012 2:20am
  •  CodeMeister
  • Joined Sep 2009 | Status: Making Code While Making Pips | 1,672 Posts
Close price on the current bar is updated every tick, so in your example the first tick on the current bar that hits the MA will trigger the alert on the Daily chart. Think of it this way - the MT4 client does not know when the next tick will arrive. It usually is a fraction of a second later, but it could be a minute or several minutes later. I do not wait for the bar to close. Several people have requested that as a feature but I don't see the advantage and it would make the code more complicated to use, code and test.

The way I look at it, this indicator is just a way of signaling that something of interest has occurred on the chart and it is up to the trader to wait for further confirmation of the signal or not. That's the way I trade.
 
 
  • Post #54
  • Quote
  • Feb 1, 2012 3:44am Feb 1, 2012 3:44am
  •  Pips4Fun
  • | Joined Dec 2010 | Status: Member | 64 Posts
Quoting CodeMeister
Disliked

The way I look at it, this indicator is just a way of signaling that something of interest has occurred on the chart and it is up to the trader to wait for further confirmation of the signal or not.
Ignored
Absolutely.
 
 
  • Post #55
  • Quote
  • Feb 1, 2012 4:06am Feb 1, 2012 4:06am
  •  Pips4Fun
  • | Joined Dec 2010 | Status: Member | 64 Posts
Quoting CodeMeister
Disliked
Close price on the current bar is updated every tick, so in your example the first tick on the current bar that hits the MA will trigger the alert on the Daily chart. Think of it this way - the MT4 client does not know when the next tick will arrive. It usually is a fraction of a second later, but it could be a minute or several minutes later. I do not wait for the bar to close. Several people have requested that as a feature but I don't see the advantage and it would make the code more complicated to use, code and test.
Ignored

I have never thought of it that a bar always has a close ever before it actually closes! Now I understand what you meant by "close = bid". This is as it should be and makes perfect sense.

Thanks for this explanation which, to you, must be MT4 "bread and butter" but which I never knew. Mark me up as a great fan and follower!!!

Mission accomplished. And thanks again for Pips2MA.
 
 
  • Post #56
  • Quote
  • Feb 4, 2012 5:11am Feb 4, 2012 5:11am
  •  Pips4Fun
  • | Joined Dec 2010 | Status: Member | 64 Posts
Hi CodeMeister,

I have tried to contact you. Did you receive my message?
 
 
  • Post #57
  • Quote
  • Feb 4, 2012 5:15am Feb 4, 2012 5:15am
  •  CodeMeister
  • Joined Sep 2009 | Status: Making Code While Making Pips | 1,672 Posts
I answered to your email directly within a few hours. Have sent again a minute ago.
 
 
  • Post #58
  • Quote
  • Apr 15, 2012 3:23am Apr 15, 2012 3:23am
  •  Keithlks
  • | Joined Mar 2012 | Status: Junior Member | 1 Post
Is there a mail indicator that alerts 30pips away from open price? Can anyone please help me.
 
 
  • Post #59
  • Quote
  • Jul 12, 2012 11:53am Jul 12, 2012 11:53am
  •  tradersda
  • | Joined Jun 2011 | Status: Member | 4 Posts
anyone can make EA base on this indicator ... ????
 
 
  • Post #60
  • Quote
  • Aug 16, 2012 3:40am Aug 16, 2012 3:40am
  •  matman
  • | Joined May 2011 | Status: Junior Member | 2 Posts
As to me alert to sound X pips TO an MA (not away from) is more important.
For example, when the price came within 5 pips from MA and then there is an alarm. Do you know of such an indicator? I will be grateful for your help.
 
 
  • Platform Tech
  • /
  • Alert to sound X pips AWAY from an MA
  • Reply to Thread
    • 1 2Page 3 4
    • 1 2Page 3 4
0 traders viewing now
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023