Forex



Go Back   Forex Trading > Discussion Areas > Metatrader 4
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 09-10-2006, 05:26 AM
Junior Member
 
Join Date: Jun 2006
Posts: 6
qtmspin is on a distinguished road
Alert when for force index crosses a level???

Does anyone know the code to alert me when the force index crosses a defined level? It seems so easy, but I have not found anything.

Also, is there a generic alert script that I can say... "if this signal crosses this number alert me"... like the price alert, except for indicators?

Thanks for the help,
Matt
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 09-12-2006, 03:30 PM
Junior Member
 
Join Date: Jun 2006
Posts: 6
qtmspin is on a distinguished road
Answered my own question, now I have another

Does anyone know how to make the sendMail stop after sending one email?

To use a force index level alert...

Create an expert and replace the start function with this:

Force Index Level Alert
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
//----
int top_lvl = 0.0055;
int low_lvl = -0.0055;
if (iForce(NULL,0,13,MODE_EMA,PRICE_TYPICAL,0)>top_lv l||(iForce(NULL,0,13,MODE_EMA,PRICE_TYPICAL,0)<low _lvl)) {
Alert("The Force is: "+iForce(NULL,0,13,MODE_EMA,PRICE_TYPICAL,0));
//SendMail("Force Levels","Time to trade");
}
//----
return(0);
}
//+------------------------------------------------------------------+


To use a macd level alert...
MACD level alert
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
//----
int top_lvl = 0.004;
int low_lvl = -0.004;
if (iMACD(NULL,0,12,26,9,PRICE_MEDIAN,MODE_MAIN,0)>to p_lvl||iMACD(NULL,0,12,26,9,PRICE_MEDIAN,MODE_MAIN ,0)<low_lvl)
Alert("The MACD is: " + iMACD(NULL,0,12,26,9,PRICE_MEDIAN,MODE_MAIN,0));
//----
return(0);
}
//+------------------------------------------------------------------+
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
force index, force


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Price-level alert indicator wanted abaker Metatrader 4 13 08-28-2009 04:22 AM
Moving crosses w Sound Alert forextest11 Indicators - Metatrader 4 1 05-19-2007 07:32 AM
can anyone pls help me code this stepMA stoch to give an audio alert when it crosses? areeq69 Indicators - Metatrader 4 2 02-13-2007 07:30 AM
Force Refresh? luxinterior Indicators - Metatrader 4 5 12-30-2006 03:25 AM
Alert when price reach a certain level Devil2000 Indicators - Metatrader 4 2 09-04-2006 06:32 PM


All times are GMT. The time now is 12:01 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.