#
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
Home
Forex Forum
+ Add Script
Metastock
Expert Advisors
Explorations
Indicators
Trading Systems
Metatrader
MQL Experts
MQL Indicators
MQ4 Experts
MQ4 Indicators
MQ4 Scripts
Tradestation
Functions
Indicators
PaintBars
ShowMe
Trading Systems
Amibroker
Commentaries
Explorations
Functions
Indicators
Trading Systems
Contact us
Newsletter
Group: Metatrader MQ4 Experts
Title: ADX TREND TALK
Description:
META4 Speaks! example of code here
//+------------------------------------------------------------------+ //| 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); // }
Author/Source:
Perky_z@yahoo.com
Forex Directory
|
Free Forex Strategies
|
Forex Trading Systems
|
Privacy
|
Disclaimer
|
Contact