Forex
Google

Go Back   Forex Trading > Downloads > Indicators - Metatrader 4
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-03-2006, 02:39 PM
billm billm is offline
Member
 
Join Date: Dec 2005
Posts: 52
billm is on a distinguished road
MA turn indicator needed

I am looking for an indicator that is a modification of the basic Moving Average indicator in MQ4.

All I want it to do .. is when one of the MA's changes direction at the close of the bar, (from up to down or down to up) then I want it to make a sound/alert or say something using the Speech function to alert me that it has changed direction.

If this can be done, perhaps I can have 2 input variables:
1) to turn the sound on/off and
2) to define the time in seconds BEFORE the close of the current bar to give this audible alert.

eg; I would like it to sound the alert say 10 seconds before the bar closes

thanks
B
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-12-2006, 08:49 AM
Kalenzo's Avatar
Kalenzo Kalenzo is offline
Senior Member
 
Join Date: Dec 2005
Location: Bydgoszcz - Poland
Posts: 692
Kalenzo is on a distinguished road
Here U go!
It should work.

--------------
Moving Average method enumeration

MODE_SMA 0 Simple moving average,
MODE_EMA 1 Exponential moving average,
MODE_SMMA 2 Smoothed moving average,
MODE_LWMA 3 Linear weighted moving average.



Applied price enumeration

PRICE_CLOSE 0 Close price.
PRICE_OPEN 1 Open price.
PRICE_HIGH 2 High price.
PRICE_LOW 3 Low price.
PRICE_MEDIAN 4 Median price, (high+low)/2.
PRICE_TYPICAL 5 Typical price, (high+low+close)/3.
PRICE_WEIGHTED 6 Weighted close price, (high+low+close+close)/4.
Attached Files
File Type: mq4 MA_ALERT.mq4 (1.8 KB, 223 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-12-2006, 09:14 AM
billm billm is offline
Member
 
Join Date: Dec 2005
Posts: 52
billm is on a distinguished road
Hi, thank you. I have applied it to a chart but it alerts after every pip movement.

Can you make the following change:

Only alert when the ma has Changed direction eg, when changed from up to down or vice versa determined at the close of the bar ?

thankyou
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-12-2006, 09:19 AM
Kalenzo's Avatar
Kalenzo Kalenzo is offline
Senior Member
 
Join Date: Dec 2005
Location: Bydgoszcz - Poland
Posts: 692
Kalenzo is on a distinguished road
Try this one. It will Alert once per a bar of selected window period.
Attached Files
File Type: mq4 MA_ALERT.mq4 (2.1 KB, 200 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-12-2006, 11:15 AM
billm billm is offline
Member
 
Join Date: Dec 2005
Posts: 52
billm is on a distinguished road
Quote:
Originally Posted by Kalenzo
Try this one. It will Alert once per a bar of selected window period.
Hi
great .. this works just fine.

How difficult would it be to add this functionality into the standard moving average indicator - then I wouldn't have to have 2 indicators on my chart .. the mov average and your ma_alert ?

thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-12-2006, 11:24 AM
Kalenzo's Avatar
Kalenzo Kalenzo is offline
Senior Member
 
Join Date: Dec 2005
Location: Bydgoszcz - Poland
Posts: 692
Kalenzo is on a distinguished road
Quote:
Originally Posted by billm
Hi
great .. this works just fine.

How difficult would it be to add this functionality into the standard moving average indicator - then I wouldn't have to have 2 indicators on my chart .. the mov average and your ma_alert ?

thanks
No problem at all
Use this one
Enjoy !
Attached Files
File Type: mq4 MA_ALERT.mq4 (2.5 KB, 293 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-12-2006, 12:47 PM
billm billm is offline
Member
 
Join Date: Dec 2005
Posts: 52
billm is on a distinguished road
Excellent job .. thankyou
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 05-13-2008, 09:16 PM
fx_aces fx_aces is offline
Junior Member
 
Join Date: May 2008
Posts: 1
fx_aces is on a distinguished road
EMA/SMA Crossing Alert Needed

Hi there... I would appreciate if someone can help and assist me in getting this alert made for my specific need. I would like to have an alert when sma5 crosses ema50 with words on the chart. Thanks in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 05-14-2008, 01:29 AM
Linuxser's Avatar
Linuxser Linuxser is offline
Moderator
 
Join Date: May 2006
Location: Helliconia (Autumn)
Posts: 2,162
Linuxser has disabled reputation
Quote:
Originally Posted by fx_aces View Post
Hi there... I would appreciate if someone can help and assist me in getting this alert made for my specific need. I would like to have an alert when sma5 crosses ema50 with words on the chart. Thanks in advance.
Most MA crossing indicators with alert are here: Indicators with alert/signal
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
He turn $5K into $40K (less than 4 months) Brazilian_Nutter Suggestions for Trading Systems 72 07-04-2008 12:20 PM
Expert Advisor Upgrader - Turn Simple Into Superb Scorpion Tools and utilities 7 04-13-2007 01:01 AM
LIMITED TIME $2.50 REBATE per Lot (round turn) Nicholishen General Discussion 1 09-28-2006 02:44 AM


All times are GMT. The time now is 10:45 PM.