Need help with ADXCross indicator
  #1 (permalink)  
Old 05-09-2006, 10:00 AM
Freshman
 
Join Date: Sep 2005
Posts: 8
Thanks: 3
Thanked 0 Times in 0 Posts
tradezone is on a distinguished road
Post Need help with ADXCross indicator

Hi,

I've downloaded adxcrosstalk expert by perky_z. It work fine until I update to new MT4 Build 193. When I compile the source, the error log says :variable not defined or function not defined. I've been trying to figure out but not succesful. :sweatdrop Could someone help me out to fix it? The indicator source as below. Thanks in advance.

__________________________________________________ ___________________



[quote]//+------------------------------------------------------------------+
//| ADXcross EXPERT |
//| Perky_z |
//| |
//+------------------------------------------------------------------+
#property copyright "Perky_z@yahoo.com "
#property link "http://groups.yahoo.com/group/MetaTrader_Experts_and_Indicators/"
//+--------------------------------------------------------------------------------------------------+
//| Alerts in hand with ADXcrosses Indicator they dont need to be run together |
//+--------------------------------------------------------------------------------------------------+
// Alerts on cross of + and - DI lines
// I use it on 15 min charts
// though looks good on any time frame
// use other indicators to confirm this trigger tho

//---- input parameters


double b4adxmain,nowadxmain;
int x;


//----


//---- indicators




//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
//| Setting internal variables for quick access to data |
//+------------------------------------------------------------------+
int start()


{


// Comment (Symbol());

b4adxmain=iADX(NULL,0,14,PRICE_CLOSE,MODE_MAIN,1);
nowadxmain=iADX(NULL,0,14,PRICE_CLOSE,MODE_MAIN,0) ;

//Comment (nowplusdi);
//+------------------------------------------------------------------+
//| Money Management mm=0(lots) mm=-1(Mini) mm=1(full compounding) |
//+------------------------------------------------------------------+


//----

//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+

if( x==0 )
{
SpeechText("Trend Alert loaded , danger Will, Robinson" ,SPEECH_ENGLISH);
x=x+1;
}



if( nowadxmain >20.00 && b4adxmain < 20.00 )//&& nowplusdi>nowminusdi)
//Alert(".");

{


SpeechText("Trend Starting" ,SPEECH_ENGLISH);
if(Symbol()=="EURUSD" ) SpeechText("euro USD, trend Alert" ,SPEECH_ENGLISH);
if(Symbol()=="GBPUSD" )SpeechText("GPB USD ,trend Alert" ,SPEECH_ENGLISH);
if(Symbol()=="USDCHF" )SpeechText("USD CHF, trend Alert" ,SPEECH_ENGLISH);
if(Symbol()=="EURJPY" )SpeechText("euro JPY ,trend Alert" ,SPEECH_ENGLISH);
}
}
return(0);
// }

Last edited by tradezone : 05-09-2006 at 11:29 AM.
Reply With Quote
  #2 (permalink)  
Old 05-10-2006, 04:46 AM
pure forex
 
Posts: n/a
Default

SpeechText() was omitted in Build 188 (12 Jan 2006), so you cannot use it in the expert anymore. However, you can use alternative one from http://www.metatrader.info/node/85

But anyway, download the zip file and extract it to MetaTrader 4 folder ("c:\program files\metatrader 4\"), overwrite files when prompted.

Make sure that when you attach the expert, you set "Allow DLL imports" (as shown below).

Enjoys!
Attached Images
File Type: gif dll_imports.GIF (17.9 KB, 124 views)
Attached Files
File Type: zip adxcross.zip (17.0 KB, 102 views)
Shark EA Ultimate
Actual Profits on Live Account: +975%
Since Jan 2007. View Live Statements.

Last edited by pure forex : 05-10-2006 at 04:51 AM.
Reply With Quote
  #3 (permalink)  
Old 05-10-2006, 06:46 AM
Freshman
 
Join Date: Sep 2005
Posts: 8
Thanks: 3
Thanked 0 Times in 0 Posts
tradezone is on a distinguished road
Talking

Thanks pureforex. Work like charm. :o
Reply With Quote
  #4 (permalink)  
Old 05-26-2007, 11:43 PM
Freshman
 
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
forexstrgedy is on a distinguished road
Default

Hello, Everybody
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
indicator 5_34_5 budhax Indicators 5 07-22-2008 02:48 AM
"3d" indicator. Ravique Indicators 11 08-06-2007 09:07 PM
Request custom indicator scorpion Indicators 1 09-12-2006 12:32 PM
Great indicator, name? ozimacca Indicators 1 04-14-2006 01:40 AM
Need help customize and indicator tradezone MetaTrader and ZeroCode 2 10-19-2005 12:10 PM


All times are GMT. The time now is 10:49 PM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now

Main Menu

Economic Forecast