Auftrag beendet
Ausführungszeit 2 Minuten
Bewertung des Kunden
very understanding and very fast
Bewertung des Entwicklers
Great customer! thanks for your order!
Spezifikation
//+------------------------------------------------------------------+
//| NSNDHistory.mq4 |
//| Copyright © 2011, MetaQuotes Software Corp. |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2011, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net"
extern int barcount=500;
extern int NSNDcount=10;
string comment[10];
static int prevtime=0;
static int prevfirstbar=0;
static double prevpricemax=0;
#property indicator_chart_window
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------0-----------------------------+
int init()
{
//---- indicators
f_clear();
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
f_clear();
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int counted_bars=IndicatorCounted();
string Bull_or_Bear,obj_nameND;
bool Low_Volume,Pins,Bear_Close_Below,Bull_Close_Above,Bear_Close_Above,Bull_Close_Below;
string label;
double chartheight=WindowPriceMax()-WindowPriceMin();
double addhigh=6.00/100.00*chartheight;
// Comment(WindowFirstVisibleBar()," ",prevfirstbar);
//----
if(WindowFirstVisibleBar()!=prevfirstbar)
{
prevtime=0;
}
if(WindowPriceMax()!=prevpricemax)
{
prevtime=0;
}
// if(Time[0]!=prevtime) // | prevfirstbar!=WindowFirstVisibleBar())// && 11==2)
{
f_clear();
//for(int i=barcount;i>=1;i--)
for(int i=WindowFirstVisibleBar();i>=WindowFirstVisibleBar()-500 && i>=0 ;i--)
{
Bull_or_Bear=f_Bull_or_Bear(i);
Low_Volume=f_Low_Volume(i);
Pins=f_Pins(i,Bull_or_Bear);
// Comment(Bull_or_Bear," Low Volume ",Low_Volume," Pins ",Pins );
Bear_Close_Below=false;
Bear_Close_Above=false;
Bull_Close_Above=false;
Bull_Close_Below=false;
for(int ix=i;ix>i-NSNDcount && ix>=0;ix--)
{
if(Bull_or_Bear=="Bear" && Close[ix]<Low[i] && !Bear_Close_Above)
{
Bear_Close_Below=true;
}
if(Bull_or_Bear=="Bear" && Close[ix]>High[i] && !Bear_Close_Below)
{
Bear_Close_Above=true;
}
if(Bull_or_Bear=="Bull" && Close[ix]>High[i] && !Bear_Close_Below)
{
Bull_Close_Above=true;
}
if(Bull_or_Bear=="Bull" && Close[ix]<Low[i] && !Bear_Close_Above)
{
Bull_Close_Below=true;
}
}//end for ix
label=TimeYear(Time[i])+DoubleToStr(TimeMonth(Time[i]),0)+DoubleToStr(TimeDay(Time[i]),0);
label=label+DoubleToStr(TimeHour(Time[i]),0)+DoubleToStr(TimeMinute(Time[i]),0);
obj_nameND="No Demand - "+i+" - "+label; ObjectDelete(obj_nameND);
if(Bull_or_Bear=="Bull" && Low_Volume && Pins && !Bull_Close_Above && Bull_Close_Below)
{
ObjectCreate(obj_nameND,OBJ_TEXT,0,Time[i],High[i]+(addhigh));//+spread+0.0005);
ObjectSetText(obj_nameND,"v",18,"Arial",Red);
ObjectSet(obj_nameND,OBJPROP_PRICE1,High[i]+(addhigh));
ObjectSet(obj_nameND,OBJPROP_TIME1,Time[i]);
if(High[i]-Close[i]>Open[i]-Low[i])
{
ObjectSetText(obj_nameND,"v",18,"Arial",Red);
}
}
obj_nameND="No Supply - "+i+" - "+label; ObjectDelete(obj_nameND);
if(Bull_or_Bear=="Bear" && Low_Volume && Pins && !Bear_Close_Below && Bear_Close_Above)
{
string obj_nameNS="No Supply - "+i+" - "+label;
ObjectCreate(obj_nameNS,OBJ_TEXT,0,Time[i],Low[i]);//-spread-0.0005);
ObjectSetText(obj_nameNS,"^",22,"Arial",Lime);
ObjectSet(obj_nameNS,OBJPROP_PRICE1,Low[i]);
ObjectSet(obj_nameNS,OBJPROP_TIME1,Time[i]);
if(High[i]-Open[i]<Close[i]-Low[i])
{
ObjectSetText(obj_nameNS,"^",18,"Arial",Lime);
}
}
}//end for i
prevtime=Time[0];
prevfirstbar=WindowFirstVisibleBar();
prevpricemax=WindowPriceMax();
}//endif if prevtime
//----
return(0);
}
string f_Bull_or_Bear(int i)
{
string retvar;
if(Open[i]>Close[i])
{
retvar="Bear";
comment[i]=comment[i]+"Bear ";
}
if(Close[i]>Open[i])
{
retvar="Bull";
comment[i]=comment[i]+"Bull ";
}
return(retvar);
}
bool f_Low_Volume(int i)
{
bool retvar=False;
if(Volume[i]<Volume[i+1] && Volume[i]<Volume[i+2])
{
retvar=True;
comment[i]=comment[i]+"Low Vol ";
}
return(retvar);
}
bool f_Pins(int i,string Bull_or_Bear)
{
bool Pins=false;
double pip=Point*1;
bool retval;
if(Bull_or_Bear=="Bear" && High[i]>Open[i]+pip && Low[i]<Close[i]-pip)
{
retval=true;
comment[i]=comment[i]+" Pins";
}
if(Bull_or_Bear=="Bull" && High[i]>Close[i]+pip && Low[i]<Open[i]-pip)
{
retval=true;
comment[i]=comment[i]+" Pins";
}
return(retval);
}
void f_clear()
{
for (int i=ObjectsTotal(); i>0; i--)
{
if(StringSubstr(ObjectName(i),0,2)=="No")
{
ObjectDelete(ObjectName(i));
}
}
for (i=ObjectsTotal(); i>0; i--)
{
if(StringSubstr(ObjectName(i),0,2)=="No")
{
ObjectDelete(ObjectName(i));
}
}
}
//+------------------------------------------------------------------+
Bewerbungen
1
Bewertung
Projekte
124
40%
Schlichtung
17
47%
/
53%
Frist nicht eingehalten
31
25%
Beschäftigt
2
Bewertung
Projekte
22
23%
Schlichtung
5
40%
/
60%
Frist nicht eingehalten
2
9%
Arbeitet
3
Bewertung
Projekte
624
54%
Schlichtung
30
53%
/
23%
Frist nicht eingehalten
6
1%
Überlastet
4
Bewertung
Projekte
165
44%
Schlichtung
3
67%
/
0%
Frist nicht eingehalten
5
3%
Arbeitet
Veröffentlicht: 1 Beispiel
5
Bewertung
Projekte
228
80%
Schlichtung
22
27%
/
50%
Frist nicht eingehalten
11
5%
Frei
Veröffentlicht: 24 Artikel, 1882 Beispiele
6
Bewertung
Projekte
624
33%
Schlichtung
39
36%
/
49%
Frist nicht eingehalten
11
2%
Überlastet
7
Bewertung
Projekte
35
46%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Veröffentlicht: 3 Beispiele
8
Bewertung
Projekte
1
0%
Schlichtung
1
0%
/
100%
Frist nicht eingehalten
0
Frei
9
Bewertung
Projekte
596
35%
Schlichtung
64
20%
/
58%
Frist nicht eingehalten
147
25%
Arbeitet
Veröffentlicht: 1 Artikel, 22 Beispiele
10
Bewertung
Projekte
66
12%
Schlichtung
12
58%
/
42%
Frist nicht eingehalten
1
2%
Frei
11
Bewertung
Projekte
2
0%
Schlichtung
5
0%
/
80%
Frist nicht eingehalten
1
50%
Frei
12
Bewertung
Projekte
105
60%
Schlichtung
0
Frist nicht eingehalten
0
Frei
13
Bewertung
Projekte
35
20%
Schlichtung
5
40%
/
40%
Frist nicht eingehalten
0
Frei
Veröffentlicht: 1 Beispiel
14
Bewertung
Projekte
6
17%
Schlichtung
0
Frist nicht eingehalten
3
50%
Frei
15
Bewertung
Projekte
18
6%
Schlichtung
8
38%
/
38%
Frist nicht eingehalten
2
11%
Beschäftigt
16
Bewertung
Projekte
333
35%
Schlichtung
66
12%
/
58%
Frist nicht eingehalten
87
26%
Frei
17
Bewertung
Projekte
476
69%
Schlichtung
6
67%
/
0%
Frist nicht eingehalten
2
0%
Arbeitet
18
Bewertung
Projekte
308
69%
Schlichtung
2
100%
/
0%
Frist nicht eingehalten
0
Frei
Veröffentlicht: 1 Beispiel
19
Bewertung
Projekte
642
40%
Schlichtung
2
100%
/
0%
Frist nicht eingehalten
1
0%
Frei
Veröffentlicht: 9 Beispiele
20
Bewertung
Projekte
471
39%
Schlichtung
102
40%
/
24%
Frist nicht eingehalten
78
17%
Überlastet
Veröffentlicht: 2 Beispiele
21
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Projektdetails
Budget
30+ USD
Ausführungsfristen
von 1 bis 2 Tag(e)