#
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 Scripts
Title: Find Data Holes
Description:
Detects missing historical data
//+------------------------------------------------------------------+ //| Find Data Holes.mq4 | //| Copyright © 2005, Luis Guilherme Damiani | //| http://www.damianifx.com.br | //+------------------------------------------------------------------+ #property copyright "Copyright © 2005, Luis Guilherme Damiani" #property link "http://www.damianifx.com.br" int hole_count=0; int hole_size=2; //+------------------------------------------------------------------+ //| script program start function | //+------------------------------------------------------------------+ int start() { //---- for(int i=0;i
Period()*hole_size*60+30) { if(TimeDayOfWeek(iTime(NULL,0,i+1))==5 && TimeDayOfWeek(iTime(NULL,0,i))== 1) { ObjectCreate("Weekend"+i,OBJ_ARROW,0,Time[i], Low[i]); ObjectSet("Weekend"+i,OBJPROP_COLOR,Lime); } else { ObjectCreate("Hole"+i,OBJ_ARROW,0,Time[i], Low[i]); ObjectSet("Hole"+i,OBJPROP_ARROWCODE,251); hole_count=hole_count+1; } } } Alert(hole_count+" holes were found, of size: "+hole_size+" bars."); //---- return(0); } //+------------------------------------------------------------------+
Author/Source:
Luis Guilherme Damiani
Forex Directory
|
Free Forex Strategies
|
Forex Trading Systems
|
Privacy
|
Disclaimer
|
Contact