#
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 Indicators
Title: Ultitimate Oscillator
Description:
Ultitimate Oscillator
//+------------------------------------------------------------------+ //| Ultitimate Oscillator.mq4 //| Ramdass - Conversion only //+------------------------------------------------------------------+ #property indicator_separate_window #property indicator_buffers 1 #property indicator_color1 Green extern int CountBars=300; //---- buffers double WUO[]; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { string short_name; //---- indicator line IndicatorBuffers(1); SetIndexStyle(0,DRAW_LINE); SetIndexBuffer(0,WUO); //---- return(0); } //+------------------------------------------------------------------+ //| Ultitimate Oscillator | //+------------------------------------------------------------------+ int start() { if (CountBars>=Bars) CountBars=Bars; SetIndexDrawBegin(0,Bars-CountBars+28+1); int i,counted_bars=IndicatorCounted(); //---- if(Bars<=28) return(0); //---- initial zero if(counted_bars<28) { for(i=1;i<=28;i++) WUO[CountBars-i]=0.0; } //---- i=CountBars-28-1; while(i>=0) { WUO[i]=(iMA(NULL,0,7,0,MODE_LWMA,MODE_CLOSE,i)+ iMA(NULL,0,14,0,MODE_LWMA,MODE_CLOSE,i)+ iMA(NULL,0,28,0,MODE_LWMA,MODE_CLOSE,i)); i--; } return(0); } //+------------------------------------------------------------------+
Author/Source:
Ramdass
Forex Directory
|
Free Forex Strategies
|
Forex Trading Systems
|
Privacy
|
Disclaimer
|
Contact