Inhalte aufrufen

  • Über Facebook anmelden Über Twitter anmelden Über WindowsLive anmelden Log In with Google Anmelden
  • Mitglied werden
Profilbild

.: INDIKATOR :. Recent Candle

- - - - -

  • Du kannst leider keine neuen Themen eröffnen
  • Please log in to reply
8 Antworten zu diesem Thema

  #1
OFFLINE   Divecall

Hier mal ein -wie ich finde- nützlicher Indikator:

Er zeigt in einem Zeitfenster alle weiteren Candlesticks einer Währung der anderen Zeitfenster. Schaut euch das Bild an, dann wißt ihr was ich meine...

Dateianhang


Du möchtest Dich in der Forexfabrik verewigen? Evtl. sogar als ...

gastautor
Zuletzt aktualisiert Datum: 28.02.2015 - 00:49 Uhr

 


  #2
OFFLINE   1822036

wirklich hilfreich dieser indi, danke DC


haste manchmal noch die mq4 , damit man vielleicht paar Kleinigkeiten verändern kann, mir ist die Schrift unterhalb der TFs zu groß verschiebt sich dann ineinander ....:welldone:

  #3
OFFLINE   DaBuschi

Holla,

das nenn ich mal nen nützlichen Indikator:welldone:
Ein erfolgreicher Trader weiß nicht, was passieren wird. Aber er weiß zu jeder Zeit, was er tun muss.

Die Wahrscheinlichkeit, dass sich ein Trend fortsetzt ist größer, als das er bricht.

Die Wahrscheinlichkeit, dass ein Widerstand beim ersten Test hält, ist größer, als das er bricht.

  #4
OFFLINE   Divecall

@1822036:

natürlich nicht. Leider.

Habe es von einem (neuen ?) Programm decompil´en lassen. Ich hoffe, die Demo des Programms hat nicht ein paar Zeilen verschluckt...


// GetMySources: ex4-to-mq4 ver 4.223 on 15.04.2009
// demo license
//  ex4 file id: 689BCB97

// indicator settings
#property indicator_separate_window
#property indicator_buffers 8
#property indicator_minimum -35.0
#property indicator_maximum 120.0
#property indicator_color1 Lime
#property indicator_color2 Red
#property indicator_color3 White
#property indicator_color4 Black
#property indicator_color5 Lime
#property indicator_color6 Red
#property indicator_color7 White
#property indicator_color8 Black
#property indicator_width1 5
#property indicator_width2 5
#property indicator_width3 5
#property indicator_width4 5
#property indicator_width5 1
#property indicator_width6 1
#property indicator_width7 1
#property indicator_width8 1


extern string CurrencyPair = "";
extern string TimeFrames = "M1, M5, M15, M30, H1, H4, D1, W1, MN";
extern int NumCandles = 5;
extern int SpacingBetweenCandles = 1;
extern color CandleUpColor = Lime;
extern color CandleDownColor = Red;
extern color TextColor = White;
extern color BackgroundColor = Black;
extern bool DisplayInfo = true;
extern int RefreshEveryXMins = 0;
string gs1 = "Verdana";
int gi5 = 9;
bool gi12 = true;
double gad1[];
double gad2[];
double gad3[];
double gad4[];
double gad5[];
double gad6[];
double gad7[];
double gad8[];
int gi1, gi2, gi3, gi4, gi6, gi7, gi8, gi9, gi10, gi11;
double gd1, gd2, gd3, gd4, gd5, gd6, gd7, gd8, gd9, gd10, gd11, gd12, gd13;
string gs2, gs3;


int init()
{
int li1, li2, li3, li4, li5, li6, li7;
string ls1, ls2, ls3, ls4;

/* !!! block begin */
if (gi12 == 1)
{
  li1 = FileOpen( "Presets---Recent Candles.TXT", 9, 59 );
  if (li1 > 0)
  {
&nbsp; &nbsp; for (li2 = 1;(( ! FileIsEnding( li1 )) && (li2 <= 11));li2 = li2+1)
&nbsp; &nbsp; {&nbsp; &nbsp; &nbsp; ls2 = FileReadString( li1 );
&nbsp; &nbsp; &nbsp; li3 = StringFind( ls2, "=", 0 );
&nbsp; &nbsp; &nbsp; ls2 = StringSubstr( ls2, (li3 + 1), ((StringFind( ls2, ";", 0 ) - li3) + 1) );
&nbsp; &nbsp; &nbsp; if (((li2 == 1) || (ls2 != "*")) == 1)
&nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; switch(li2)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 1:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ls3 = ls2;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 2:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CurrencyPair = ls2;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 3:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TimeFrames = ls2;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 4:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NumCandles = StrToInteger( ls2 );
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 5:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SpacingBetweenCandles = StrToInteger( ls2 );
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 6:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; gi1 = StrToColor( ls2 );
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 7:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CandleDownColor = StrToColor( ls2 );
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 8:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TextColor = StrToColor( ls2 );
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 9:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; gi4 = StrToColor( ls2 );
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 10:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DisplayInfo = StrToBool( ls2 );
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 11:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RefreshEveryXMins = StrToInteger( ls2 );
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }

&nbsp; &nbsp; &nbsp; }

&nbsp; &nbsp; }
&nbsp; &nbsp; FileClose( li1 );
&nbsp; }

&nbsp; gi12 = 0;
}

TimeFrames = StringTrim( StringUpper( TimeFrames ) );
if (TimeFrames == "") TimeFrames = TFToStr( Period() );
if (StringSubstr( TimeFrames, (StringLen( TimeFrames ) - 1), 1 ) != ",") TimeFrames = (TimeFrames + ",");
if (RefreshEveryXMins > 240) RefreshEveryXMins = 240;
if (((RefreshEveryXMins > 60) && (RefreshEveryXMins < 240)) == 1) RefreshEveryXMins = 60;
if (((RefreshEveryXMins > 30) && (RefreshEveryXMins < 60)) == 1) RefreshEveryXMins = 30;
if (((RefreshEveryXMins > 15) && (RefreshEveryXMins < 30)) == 1) RefreshEveryXMins = 15;
if (((RefreshEveryXMins > 5) && (RefreshEveryXMins < 15)) == 1) RefreshEveryXMins = 5;
if (((RefreshEveryXMins > 1) && (RefreshEveryXMins < 5)) == 1) RefreshEveryXMins = 1;
CurrencyPair = StringUpper( CurrencyPair );
gs3 = Symbol();
gs2 = Symbol();
if (CurrencyPair > "") gs2 = CurrencyPair;
gi8 = Period();
gd4 = MarketInfo( gs2, MODE_BID );
gd5 = MarketInfo( gs2, MODE_ASK );
gd2 = MarketInfo( gs2, MODE_POINT );
gi6 = MarketInfo( gs2, MODE_DIGITS );
gd1 = MarketInfo( gs2, MODE_SPREAD );
gd3 = MarketInfo( gs2, MODE_TICKVALUE );
if (((gi6 == 3) || (gi6 == 5)) == 1)
{
&nbsp; gd2 = (gd2 * 10.0);
&nbsp; gd1 = (gd1 / 10.0);
&nbsp; gd3 = (gd3 * 10.0);
}

IndicatorShortName( ("RecCand-" + gs2) );
gi10 = (-9999);
IndicatorDigits( gi6 );
SetIndexStyle( 0, DRAW_HISTOGRAM, STYLE_SOLID, 5, gi1 );
SetIndexStyle( 1, DRAW_HISTOGRAM, STYLE_SOLID, 5, CandleDownColor );
SetIndexStyle( 2, DRAW_HISTOGRAM, STYLE_SOLID, 5, TextColor );
SetIndexStyle( 3, DRAW_HISTOGRAM, STYLE_SOLID, 5, gi4 );
SetIndexStyle( 4, DRAW_HISTOGRAM, STYLE_SOLID, 1, gi1 );
SetIndexStyle( 5, DRAW_HISTOGRAM, STYLE_SOLID, 1, CandleDownColor );
SetIndexStyle( 6, DRAW_HISTOGRAM, STYLE_SOLID, 1, TextColor );
SetIndexStyle( 7, DRAW_HISTOGRAM, STYLE_SOLID, 1, gi4 );
SetIndexBuffer( 0, gad1 );
SetIndexBuffer( 1, gad2 );
SetIndexBuffer( 2, gad3 );
SetIndexBuffer( 3, gad4 );
SetIndexBuffer( 4, gad5 );
SetIndexBuffer( 5, gad6 );
SetIndexBuffer( 6, gad7 );
SetIndexBuffer( 7, gad8 );
del_obj();
plot_obj();
return( 0 );
}

int deinit()
{

// demo limitation, visit

Please Login or Register to see this Hidden Content

to get FULL decompiler version
}

int start()
{

// demo limitation, visit

Please Login or Register to see this Hidden Content

to get FULL decompiler version
}

void del_obj()
{
int li1;
string ls1;

// demo limitation, visit

Please Login or Register to see this Hidden Content

to get FULL decompiler version
}

void plot_obj()
{
int li1, li2, li3, li4, li5, li6, li7;
double ld1, ld2, ld3, ld4, ld5, ld6, ld7;
string ls1, ls2, ls3, ls4, ls5, ls6, ls7;

// demo limitation, visit

Please Login or Register to see this Hidden Content

to get FULL decompiler version
}

double DivZero(double Pd1, double Pd2)
{

// demo limitation, visit

Please Login or Register to see this Hidden Content

to get FULL decompiler version
}

int StrToColor(string Ps1)
{

// demo limitation, visit

Please Login or Register to see this Hidden Content

to get FULL decompiler version
}

int StrToBool(string Ps1)
{

// demo limitation, visit

Please Login or Register to see this Hidden Content

to get FULL decompiler version
}

string StringUpper(string Ps1)
{
int li1, li2;
string ls2, ls3, ls4, ls5;

// demo limitation, visit

Please Login or Register to see this Hidden Content

to get FULL decompiler version
}

string StringTrim(string Ps1)
{
int li1;
string ls2;

// demo limitation, visit

Please Login or Register to see this Hidden Content

to get FULL decompiler version
}

string TFToStr(int Pi1)
{
int li2;

// demo limitation, visit

Please Login or Register to see this Hidden Content

to get FULL decompiler version
}


Dieser decompiler scheint etwas zu taugen...
Wäre nett, wenn Du Deine Veränderungen hier auch veröffentlichen würdest.:welldone:

Du möchtest Dich in der Forexfabrik verewigen? Evtl. sogar als ...

gastautor
Zuletzt aktualisiert Datum: 28.02.2015 - 00:49 Uhr

 


  #5
OFFLINE   1822036

danke, scheinbar doch verschluckt, habe den Fehler noch nicht gefunden


@1822036:

natürlich nicht. Leider.

Habe es von einem (neuen ?) Programm decompil´en lassen. Ich hoffe, die Demo des Programms hat nicht ein paar Zeilen verschluckt...


// GetMySources: ex4-to-mq4 ver 4.223 on 15.04.2009
// demo license
//&nbsp; ex4 file id: 689BCB97

// indicator settings
#property indicator_separate_window
#property indicator_buffers 8
#property indicator_minimum -35.0
#property indicator_maximum 120.0
#property indicator_color1 Lime
#property indicator_color2 Red
#property indicator_color3 White
#property indicator_color4 Black
#property indicator_color5 Lime
#property indicator_color6 Red
#property indicator_color7 White
#property indicator_color8 Black
#property indicator_width1 5
#property indicator_width2 5
#property indicator_width3 5
#property indicator_width4 5
#property indicator_width5 1
#property indicator_width6 1
#property indicator_width7 1
#property indicator_width8 1


extern string CurrencyPair = "";
extern string TimeFrames = "M1, M5, M15, M30, H1, H4, D1, W1, MN";
extern int NumCandles = 5;
extern int SpacingBetweenCandles = 1;
extern color CandleUpColor = Lime;
extern color CandleDownColor = Red;
extern color TextColor = White;
extern color BackgroundColor = Black;
extern bool DisplayInfo = true;
extern int RefreshEveryXMins = 0;
string gs1 = "Verdana";
int gi5 = 9;
bool gi12 = true;
double gad1[];
double gad2[];
double gad3[];
double gad4[];
double gad5[];
double gad6[];
double gad7[];
double gad8[];
int gi1, gi2, gi3, gi4, gi6, gi7, gi8, gi9, gi10, gi11;
double gd1, gd2, gd3, gd4, gd5, gd6, gd7, gd8, gd9, gd10, gd11, gd12, gd13;
string gs2, gs3;


int init()
{
int li1, li2, li3, li4, li5, li6, li7;
string ls1, ls2, ls3, ls4;

/* !!! block begin */
if (gi12 == 1)
{
&nbsp; li1 = FileOpen( "Presets---Recent Candles.TXT", 9, 59 );
&nbsp; if (li1 > 0)
&nbsp; {
&nbsp; &nbsp; for (li2 = 1;(( ! FileIsEnding( li1 )) && (li2 <= 11));li2 = li2+1)
&nbsp; &nbsp; {&nbsp; &nbsp; &nbsp; ls2 = FileReadString( li1 );
&nbsp; &nbsp; &nbsp; li3 = StringFind( ls2, "=", 0 );
&nbsp; &nbsp; &nbsp; ls2 = StringSubstr( ls2, (li3 + 1), ((StringFind( ls2, ";", 0 ) - li3) + 1) );
&nbsp; &nbsp; &nbsp; if (((li2 == 1) || (ls2 != "*")) == 1)
&nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; switch(li2)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 1:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ls3 = ls2;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 2:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CurrencyPair = ls2;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 3:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TimeFrames = ls2;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 4:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NumCandles = StrToInteger( ls2 );
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 5:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SpacingBetweenCandles = StrToInteger( ls2 );
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 6:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; gi1 = StrToColor( ls2 );
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 7:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CandleDownColor = StrToColor( ls2 );
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 8:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TextColor = StrToColor( ls2 );
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 9:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; gi4 = StrToColor( ls2 );
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 10:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DisplayInfo = StrToBool( ls2 );
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 11:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RefreshEveryXMins = StrToInteger( ls2 );
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }

&nbsp; &nbsp; &nbsp; }

&nbsp; &nbsp; }
&nbsp; &nbsp; FileClose( li1 );
&nbsp; }

&nbsp; gi12 = 0;
}

TimeFrames = StringTrim( StringUpper( TimeFrames ) );
if (TimeFrames == "") TimeFrames = TFToStr( Period() );
if (StringSubstr( TimeFrames, (StringLen( TimeFrames ) - 1), 1 ) != ",") TimeFrames = (TimeFrames + ",");
if (RefreshEveryXMins > 240) RefreshEveryXMins = 240;
if (((RefreshEveryXMins > 60) && (RefreshEveryXMins < 240)) == 1) RefreshEveryXMins = 60;
if (((RefreshEveryXMins > 30) && (RefreshEveryXMins < 60)) == 1) RefreshEveryXMins = 30;
if (((RefreshEveryXMins > 15) && (RefreshEveryXMins < 30)) == 1) RefreshEveryXMins = 15;
if (((RefreshEveryXMins > 5) && (RefreshEveryXMins < 15)) == 1) RefreshEveryXMins = 5;
if (((RefreshEveryXMins > 1) && (RefreshEveryXMins < 5)) == 1) RefreshEveryXMins = 1;
CurrencyPair = StringUpper( CurrencyPair );
gs3 = Symbol();
gs2 = Symbol();
if (CurrencyPair > "") gs2 = CurrencyPair;
gi8 = Period();
gd4 = MarketInfo( gs2, MODE_BID );
gd5 = MarketInfo( gs2, MODE_ASK );
gd2 = MarketInfo( gs2, MODE_POINT );
gi6 = MarketInfo( gs2, MODE_DIGITS );
gd1 = MarketInfo( gs2, MODE_SPREAD );
gd3 = MarketInfo( gs2, MODE_TICKVALUE );
if (((gi6 == 3) || (gi6 == 5)) == 1)
{
&nbsp; gd2 = (gd2 * 10.0);
&nbsp; gd1 = (gd1 / 10.0);
&nbsp; gd3 = (gd3 * 10.0);
}

IndicatorShortName( ("RecCand-" + gs2) );
gi10 = (-9999);
IndicatorDigits( gi6 );
SetIndexStyle( 0, DRAW_HISTOGRAM, STYLE_SOLID, 5, gi1 );
SetIndexStyle( 1, DRAW_HISTOGRAM, STYLE_SOLID, 5, CandleDownColor );
SetIndexStyle( 2, DRAW_HISTOGRAM, STYLE_SOLID, 5, TextColor );
SetIndexStyle( 3, DRAW_HISTOGRAM, STYLE_SOLID, 5, gi4 );
SetIndexStyle( 4, DRAW_HISTOGRAM, STYLE_SOLID, 1, gi1 );
SetIndexStyle( 5, DRAW_HISTOGRAM, STYLE_SOLID, 1, CandleDownColor );
SetIndexStyle( 6, DRAW_HISTOGRAM, STYLE_SOLID, 1, TextColor );
SetIndexStyle( 7, DRAW_HISTOGRAM, STYLE_SOLID, 1, gi4 );
SetIndexBuffer( 0, gad1 );
SetIndexBuffer( 1, gad2 );
SetIndexBuffer( 2, gad3 );
SetIndexBuffer( 3, gad4 );
SetIndexBuffer( 4, gad5 );
SetIndexBuffer( 5, gad6 );
SetIndexBuffer( 6, gad7 );
SetIndexBuffer( 7, gad8 );
del_obj();
plot_obj();
return( 0 );
}

int deinit()
{

// demo limitation, visit

Please Login or Register to see this Hidden Content

to get FULL decompiler version
}

int start()
{

// demo limitation, visit

Please Login or Register to see this Hidden Content

to get FULL decompiler version
}

void del_obj()
{
int li1;
string ls1;

// demo limitation, visit

Please Login or Register to see this Hidden Content

to get FULL decompiler version
}

void plot_obj()
{
int li1, li2, li3, li4, li5, li6, li7;
double ld1, ld2, ld3, ld4, ld5, ld6, ld7;
string ls1, ls2, ls3, ls4, ls5, ls6, ls7;

// demo limitation, visit

Please Login or Register to see this Hidden Content

to get FULL decompiler version
}

double DivZero(double Pd1, double Pd2)
{

// demo limitation, visit

Please Login or Register to see this Hidden Content

to get FULL decompiler version
}

int StrToColor(string Ps1)
{

// demo limitation, visit

Please Login or Register to see this Hidden Content

to get FULL decompiler version
}

int StrToBool(string Ps1)
{

// demo limitation, visit

Please Login or Register to see this Hidden Content

to get FULL decompiler version
}

string StringUpper(string Ps1)
{
int li1, li2;
string ls2, ls3, ls4, ls5;

// demo limitation, visit

Please Login or Register to see this Hidden Content

to get FULL decompiler version
}

string StringTrim(string Ps1)
{
int li1;
string ls2;

// demo limitation, visit

Please Login or Register to see this Hidden Content

to get FULL decompiler version
}

string TFToStr(int Pi1)
{
int li2;

// demo limitation, visit

Please Login or Register to see this Hidden Content

to get FULL decompiler version
}


Dieser decompiler scheint etwas zu taugen...
Wäre nett, wenn Du Deine Veränderungen hier auch veröffentlichen würdest.&nbsp; :welldone:



  #6
amando

hab da was gefunden, war auch wirklich nicht schwer
vielleicht könnte da noch jemand basteln dass das auch besser aussieht ;-)

Dateianhang



  #7
OFFLINE   matsf

Vielleicht könntest das auch selber machen und uns dann zur Verfügung stellen???
Lebe nicht um zu arbeiten, sondern arbeite um zu leben.

  #8
OFFLINE   ZIGANI

Vielleicht könntest das auch selber machen und uns dann zur Verfügung stellen???


RecentCandles_time

Eingefügtes Bild

Please Login or Register to see this Hidden Content



  #9
OFFLINE   Divecall

Hier nun der vollständig decompilierte "Recent candle" Indikator.

(Falls jemand etwas decompiliert haben möchte möchte, bitte eine PN an mich)

#property indicator_separate_window
#property indicator_minimum -35.0
#property indicator_maximum 120.0
#property indicator_buffers 8
#property indicator_color1 Lime
#property indicator_color2 Red
#property indicator_color3 White
#property indicator_color4 Black
#property indicator_color5 Lime
#property indicator_color6 Red
#property indicator_color7 White
#property indicator_color8 Black

extern string CurrencyPair = "";
extern string TimeFrames = "M1, M5, M15, M30, H1, H4, D1, W1, MN";
extern int NumCandles = 5;
extern int SpacingBetweenCandles = 1;
extern color CandleUpColor = Lime;
extern color CandleDownColor = Red;
extern color TextColor = White;
extern color BackgroundColor = Black;
extern bool DisplayInfo = TRUE;
extern int RefreshEveryXMins = 0;
string gs_verdana_124 = "Verdana";
int g_fontsize_132 = 9;
double g_ibuf_136[];
double g_ibuf_140[];
double g_ibuf_144[];
double g_ibuf_148[];
double g_ibuf_152[];
double g_ibuf_156[];
double g_ibuf_160[];
double g_ibuf_164[];
string g_symbol_168;
string g_symbol_176;
int gi_184;
int g_timeframe_188;
int g_timeframe_192;
int g_window_196;
double gd_200;
double gd_208;
double gd_216;
double g_bid_224;
double g_ask_232;
double g_swaplong_240;
double g_swapshort_248;
double gd_256;
double gd_264;
double g_iopen_272;
double g_ihigh_280;
double g_ilow_288;
double g_iclose_296;
int g_datetime_304;
datetime g_time_308;
bool gi_312 = TRUE;

int init() {
string l_name_0;
int l_file_8;
string ls_16;
int li_24;
int li_28;
string ls_36;
if (gi_312) {
 l_name_0 = "Presets---Recent Candles.TXT";
 l_file_8 = FileOpen(l_name_0, FILE_CSV|FILE_READ, ';');
 if (l_file_8 > 0) {
for (int li_12 = 1; !FileIsEnding(l_file_8) && li_12 <= 11; li_12++) {
 ls_16 = FileReadString(l_file_8);
 li_24 = StringFind(ls_16, "=", 0);
 li_28 = StringFind(ls_16, ";", 0);
 ls_16 = StringSubstr(ls_16, li_24 + 1, li_28 - li_24 + 1);
 if (li_12 == 1 || ls_16 != "*") {
switch (li_12) {
case 1:
 ls_36 = ls_16;
 break;
case 2:
 CurrencyPair = ls_16;
 break;
case 3:
 TimeFrames = ls_16;
 break;
case 4:
 NumCandles = StrToInteger(ls_16);
 break;
case 5:
 SpacingBetweenCandles = StrToInteger(ls_16);
 break;
case 6:
 CandleUpColor = StrToColor(ls_16);
 break;
case 7:
 CandleDownColor = StrToColor(ls_16);
 break;
case 8:
 TextColor = StrToColor(ls_16);
 break;
case 9:
 BackgroundColor = StrToColor(ls_16);
 break;
case 10:
 DisplayInfo = StrToBool(ls_16);
 break;
case 11:
 RefreshEveryXMins = StrToInteger(ls_16);
}
 }
 if (ls_36 != "true") break;
 ls_16 = FileReadString(l_file_8);
}
FileClose(l_file_8);
 }
 gi_312 = FALSE;
}
TimeFrames = StringTrim(StringUpper(TimeFrames));
if (TimeFrames == "") TimeFrames = TFToStr(Period());
if (StringSubstr(TimeFrames, StringLen(TimeFrames) - 1, 1) != ",") TimeFrames = TimeFrames + ",";
if (RefreshEveryXMins > PERIOD_H4) RefreshEveryXMins = 240;
if (RefreshEveryXMins > PERIOD_H1 && RefreshEveryXMins < PERIOD_H4) RefreshEveryXMins = 60;
if (RefreshEveryXMins > PERIOD_M30 && RefreshEveryXMins < PERIOD_H1) RefreshEveryXMins = 30;
if (RefreshEveryXMins > PERIOD_M15 && RefreshEveryXMins < PERIOD_M30) RefreshEveryXMins = 15;
if (RefreshEveryXMins > PERIOD_M5 && RefreshEveryXMins < PERIOD_M15) RefreshEveryXMins = 5;
if (RefreshEveryXMins > PERIOD_M1 && RefreshEveryXMins < PERIOD_M5) RefreshEveryXMins = 1;
CurrencyPair = StringUpper(CurrencyPair);
g_symbol_176 = Symbol();
g_symbol_168 = Symbol();
if (CurrencyPair > "") g_symbol_168 = CurrencyPair;
g_timeframe_192 = Period();
g_bid_224 = MarketInfo(g_symbol_168, MODE_BID);
g_ask_232 = MarketInfo(g_symbol_168, MODE_ASK);
gd_208 = MarketInfo(g_symbol_168, MODE_POINT);
gi_184 = MarketInfo(g_symbol_168, MODE_DIGITS);
gd_200 = MarketInfo(g_symbol_168, MODE_SPREAD);
gd_216 = MarketInfo(g_symbol_168, MODE_TICKVALUE);
if (gi_184 == 3 || gi_184 == 5) {
 gd_208 = 10.0 * gd_208;
 gd_200 /= 10.0;
 gd_216 = 10.0 * gd_216;
}
IndicatorShortName("RecCand-" + g_symbol_168);
g_datetime_304 = -9999;
IndicatorDigits(gi_184);
SetIndexStyle(0, DRAW_HISTOGRAM, STYLE_SOLID, 5, CandleUpColor);
SetIndexStyle(1, DRAW_HISTOGRAM, STYLE_SOLID, 5, CandleDownColor);
SetIndexStyle(2, DRAW_HISTOGRAM, STYLE_SOLID, 5, TextColor);
SetIndexStyle(3, DRAW_HISTOGRAM, STYLE_SOLID, 5, BackgroundColor);
SetIndexStyle(4, DRAW_HISTOGRAM, STYLE_SOLID, 1, CandleUpColor);
SetIndexStyle(5, DRAW_HISTOGRAM, STYLE_SOLID, 1, CandleDownColor);
SetIndexStyle(6, DRAW_HISTOGRAM, STYLE_SOLID, 1, TextColor);
SetIndexStyle(7, DRAW_HISTOGRAM, STYLE_SOLID, 1, BackgroundColor);
SetIndexBuffer(0, g_ibuf_136);
SetIndexBuffer(1, g_ibuf_140);
SetIndexBuffer(2, g_ibuf_144);
SetIndexBuffer(3, g_ibuf_148);
SetIndexBuffer(4, g_ibuf_152);
SetIndexBuffer(5, g_ibuf_156);
SetIndexBuffer(6, g_ibuf_160);
SetIndexBuffer(7, g_ibuf_164);
del_obj();
plot_obj();
return (0);
}

int deinit() {
del_obj();
return (0);
}

int start() {
if (RefreshEveryXMins == 0) {
 del_obj();
 plot_obj();
} else {
 if (g_datetime_304 != iTime(g_symbol_168, RefreshEveryXMins, 0)) {
del_obj();
plot_obj();
g_datetime_304 = iTime(g_symbol_168, RefreshEveryXMins, 0);
 }
}
return (0);
}

void del_obj() {
string l_name_4;
int li_0 = 0;
while (li_0 < ObjectsTotal()) {
 l_name_4 = ObjectName(li_0);
 if (StringSubstr(l_name_4, 0, 10) == "#RC-" + g_symbol_168) ObjectDelete(l_name_4);
 else li_0++;
}
}

void plot_obj() {
int li_0;
string l_text_4;
string l_text_20;
double ld_32;
double ld_40;
double ld_48;
double ld_56;
string l_name_64;
string l_name_72;
string l_text_80;
string l_name_88;
int l_count_96;
double ld_100;
g_swaplong_240 = MarketInfo(g_symbol_168, MODE_SWAPLONG);
g_swapshort_248 = MarketInfo(g_symbol_168, MODE_SWAPSHORT);
g_time_308 = MarketInfo(g_symbol_168, MODE_TIME);
g_bid_224 = MarketInfo(g_symbol_168, MODE_BID);
g_ask_232 = MarketInfo(g_symbol_168, MODE_ASK);
gd_200 = MarketInfo(g_symbol_168, MODE_SPREAD);
gd_216 = MarketInfo(g_symbol_168, MODE_TICKVALUE);
if (gi_184 == 3 || gi_184 == 5) {
 gd_200 /= 10.0;
 gd_216 = 10.0 * gd_216;
}
g_window_196 = WindowFind("RecCand-" + g_symbol_168);
if (g_window_196 >= 0) {
 ArrayInitialize(g_ibuf_136, EMPTY_VALUE);
 ArrayInitialize(g_ibuf_140, EMPTY_VALUE);
 ArrayInitialize(g_ibuf_144, EMPTY_VALUE);
 ArrayInitialize(g_ibuf_148, EMPTY_VALUE);
 ArrayInitialize(g_ibuf_152, EMPTY_VALUE);
 ArrayInitialize(g_ibuf_156, EMPTY_VALUE);
 ArrayInitialize(g_ibuf_160, EMPTY_VALUE);
 ArrayInitialize(g_ibuf_164, EMPTY_VALUE);
 li_0 = 0;
 for (int li_12 = 9; li_12 >= 1; li_12--) {
switch (li_12) {
case 1:
 g_timeframe_188 = 1;
 l_text_4 = "M1";
 break;
case 2:
 g_timeframe_188 = 5;
 l_text_4 = "M5";
 break;
case 3:
 g_timeframe_188 = 15;
 l_text_4 = "M15";
 break;
case 4:
 g_timeframe_188 = 30;
 l_text_4 = "M30";
 break;
case 5:
 g_timeframe_188 = 60;
 l_text_4 = "H1";
 break;
case 6:
 g_timeframe_188 = 240;
 l_text_4 = "H4";
 break;
case 7:
 g_timeframe_188 = 1440;
 l_text_4 = "D1";
 break;
case 8:
 g_timeframe_188 = 10080;
 l_text_4 = "W1";
 break;
case 9:
 g_timeframe_188 = 43200;
 l_text_4 = "MN";
}
if (li_12 >= 1 && li_12 <= 8 && StringFind(TimeFrames, l_text_4 + ",", 0) < 0) continue;
if (li_12 == 9 && StringFind(TimeFrames, "MN", 0) < 0) continue;
l_text_20 = g_symbol_168 + "," + l_text_4;
gd_256 = 0;
gd_264 = 999999;
for (int li_28 = 0; li_28 <= NumCandles; li_28++) {
 gd_256 = MathMax(gd_256, iHigh(g_symbol_168, g_timeframe_188, li_28));
 gd_264 = MathMin(gd_264, iLow(g_symbol_168, g_timeframe_188, li_28));
}
for (li_28 = 0; li_28 <= NumCandles; li_28++) {
 g_iopen_272 = iOpen(g_symbol_168, g_timeframe_188, li_28);
 g_ihigh_280 = iHigh(g_symbol_168, g_timeframe_188, li_28);
 g_ilow_288 = iLow(g_symbol_168, g_timeframe_188, li_28);
 g_iclose_296 = iClose(g_symbol_168, g_timeframe_188, li_28);
 ld_32 = DivZero(100.0 * (g_iopen_272 - gd_264), gd_256 - gd_264);
 ld_40 = DivZero(100.0 * (g_ihigh_280 - gd_264), gd_256 - gd_264);
 ld_48 = DivZero(100.0 * (g_ilow_288 - gd_264), gd_256 - gd_264);
 ld_56 = DivZero(100.0 * (g_iclose_296 - gd_264), gd_256 - gd_264);
 if (ld_32 < ld_56) {
g_ibuf_136[li_0] = ld_56;
g_ibuf_140[li_0] = EMPTY_VALUE;
g_ibuf_144[li_0] = EMPTY_VALUE;
g_ibuf_148[li_0] = ld_32;
g_ibuf_152[li_0] = ld_40;
g_ibuf_156[li_0] = EMPTY_VALUE;
g_ibuf_160[li_0] = EMPTY_VALUE;
g_ibuf_164[li_0] = ld_48;
 } else {
if (ld_32 > ld_56) {
 g_ibuf_136[li_0] = EMPTY_VALUE;
 g_ibuf_140[li_0] = ld_32;
 g_ibuf_144[li_0] = EMPTY_VALUE;
 g_ibuf_148[li_0] = ld_56;
 g_ibuf_152[li_0] = EMPTY_VALUE;
 g_ibuf_156[li_0] = ld_40;
 g_ibuf_160[li_0] = EMPTY_VALUE;
 g_ibuf_164[li_0] = ld_48;
} else {
 g_ibuf_136[li_0] = EMPTY_VALUE;
 g_ibuf_140[li_0] = EMPTY_VALUE;
 g_ibuf_144[li_0] = ld_32;
 g_ibuf_148[li_0] = ld_32 - 1.0;
 g_ibuf_152[li_0] = EMPTY_VALUE;
 g_ibuf_156[li_0] = EMPTY_VALUE;
 if (ld_40 == ld_48) {
g_ibuf_160[li_0] = EMPTY_VALUE;
g_ibuf_164[li_0] = EMPTY_VALUE;
 } else {
g_ibuf_160[li_0] = ld_40;
g_ibuf_164[li_0] = ld_48;
 }
}
 }
 li_0 += SpacingBetweenCandles;
}
l_name_64 = "#RC-" + l_text_20 + "-s";
ObjectCreate(l_name_64, OBJ_TREND, g_window_196, iTime(g_symbol_176, g_timeframe_192, li_0), 120, iTime(g_symbol_176, g_timeframe_192, li_0), -20);
ObjectSet(l_name_64, OBJPROP_COLOR, TextColor);
l_name_72 = "#RC-" + l_text_20 + "-t";
ObjectCreate(l_name_72, OBJ_TEXT, g_window_196, iTime(g_symbol_176, g_timeframe_192, li_0 - SpacingBetweenCandles * (NumCandles + 2) / 2), -10);
if (NumCandles < 3) ObjectSetText(l_name_72, l_text_4, g_fontsize_132, gs_verdana_124, TextColor);
else ObjectSetText(l_name_72, l_text_20, g_fontsize_132, gs_verdana_124, TextColor);
li_0 += SpacingBetweenCandles;
 }
 if (DisplayInfo) {
l_text_80 = g_symbol_168 + " = " + DoubleToStr(g_bid_224, gi_184) + " / " + DoubleToStr(g_ask_232, gi_184);
l_name_88 = "#RC-" + g_symbol_168 + "-i1";
ObjectCreate(l_name_88, OBJ_TEXT, g_window_196, iTime(g_symbol_176, g_timeframe_192, li_0 + 13 * SpacingBetweenCandles / 2), 98);
ObjectSetText(l_name_88, l_text_80, g_fontsize_132, gs_verdana_124, TextColor);
l_text_80 = "  Last Tick = " + TimeToStr(g_time_308, TIME_SECONDS);
l_name_88 = "#RC-" + g_symbol_168 + "-i2";
ObjectCreate(l_name_88, OBJ_TEXT, g_window_196, iTime(g_symbol_176, g_timeframe_192, li_0 + 13 * SpacingBetweenCandles / 2), 73);
ObjectSetText(l_name_88, l_text_80, g_fontsize_132, gs_verdana_124, TextColor);
l_text_80 = "  Swap = " + DoubleToStr(g_swaplong_240, 2) + " / " + DoubleToStr(g_swapshort_248, 2);
l_name_88 = "#RC-" + g_symbol_168 + "-i3";
ObjectCreate(l_name_88, OBJ_TEXT, g_window_196, iTime(g_symbol_176, g_timeframe_192, li_0 + 13 * SpacingBetweenCandles / 2), 48);
ObjectSetText(l_name_88, l_text_80, g_fontsize_132, gs_verdana_124, TextColor);
l_count_96 = 0;
ld_100 = 0;
for (li_28 = 1; li_28 <= 10; li_28++) {
 if (TimeDayOfWeek(iTime(g_symbol_168, PERIOD_D1, li_28)) > 0) {
l_count_96++;
ld_100 += (iHigh(g_symbol_168, PERIOD_D1, li_28) - iLow(g_symbol_168, PERIOD_D1, li_28)) / gd_208;
 }
}
ld_100 /= l_count_96;
l_text_80 = "  Spread = " + DoubleToStr(gd_200, 1) + "  (" + DoubleToStr(100.0 * gd_200 / ld_100, 2) + "%)";
l_name_88 = "#RC-" + g_symbol_168 + "-i4";
ObjectCreate(l_name_88, OBJ_TEXT, g_window_196, iTime(g_symbol_176, g_timeframe_192, li_0 + 13 * SpacingBetweenCandles / 2), 23);
ObjectSetText(l_name_88, l_text_80, g_fontsize_132, gs_verdana_124, TextColor);
l_text_80 = "  Pip Value = " + DoubleToStr(gd_216, 3);
l_name_88 = "#RC-" + g_symbol_168 + "-i5";
ObjectCreate(l_name_88, OBJ_TEXT, g_window_196, iTime(g_symbol_176, g_timeframe_192, li_0 + 13 * SpacingBetweenCandles / 2), -2);
ObjectSetText(l_name_88, l_text_80, g_fontsize_132, gs_verdana_124, TextColor);
 }
}
}

double DivZero(double ad_0, double ad_8) {
if (ad_8 == 0.0) return (0);
return (ad_0 / ad_8);
}

int StrToColor(string as_0) {
if (as_0 == "AliceBlue") return (16775408);
if (as_0 == "AntiqueWhite") return (14150650);
if (as_0 == "Aqua") return (16776960);
if (as_0 == "Aquamarine") return (13959039);
if (as_0 == "Beige") return (14480885);
if (as_0 == "Bisque") return (12903679);
if (as_0 == "Black") return (0);
if (as_0 == "BlanchedAlmond") return (13495295);
if (as_0 == "Blue") return (16711680);
if (as_0 == "BlueViolet") return (14822282);
if (as_0 == "Brown") return (2763429);
if (as_0 == "BurlyWood") return (8894686);
if (as_0 == "CadetBlue") return (10526303);
if (as_0 == "Chartreuse") return (65407);
if (as_0 == "Chocolate") return (1993170);
if (as_0 == "Coral") return (5275647);
if (as_0 == "CornflowerBlue") return (15570276);
if (as_0 == "Cornsilk") return (14481663);
if (as_0 == "Crimson") return (3937500);
if (as_0 == "DarkBlue") return (9109504);
if (as_0 == "DarkGoldenrod") return (755384);
if (as_0 == "DarkGray") return (11119017);
if (as_0 == "DarkGreen") return (25600);
if (as_0 == "DarkKhaki") return (7059389);
if (as_0 == "DarkOliveGreen") return (3107669);
if (as_0 == "DarkOrange") return (36095);
if (as_0 == "DarkOrchid") return (13382297);
if (as_0 == "DarkSalmon") return (8034025);
if (as_0 == "DarkSeaGreen") return (9157775);
if (as_0 == "DarkSlateBlue") return (9125192);
if (as_0 == "DarkSlateGray") return (5197615);
if (as_0 == "DarkTurquoise") return (13749760);
if (as_0 == "DarkViolet") return (13828244);
if (as_0 == "DeepPink") return (9639167);
if (as_0 == "DeepSkyBlue") return (16760576);
if (as_0 == "DimGray") return (6908265);
if (as_0 == "DodgerBlue") return (16748574);
if (as_0 == "FireBrick") return (2237106);
if (as_0 == "ForestGreen") return (2263842);
if (as_0 == "Gainsboro") return (14474460);
if (as_0 == "Gold") return (55295);
if (as_0 == "Goldenrod") return (2139610);
if (as_0 == "Gray") return (8421504);
if (as_0 == "Green") return (32768);
if (as_0 == "GreenYellow") return (3145645);
if (as_0 == "Honeydew") return (15794160);
if (as_0 == "HotPink") return (11823615);
if (as_0 == "IndianRed") return (6053069);
if (as_0 == "Indigo") return (8519755);
if (as_0 == "Ivory") return (15794175);
if (as_0 == "Khaki") return (9234160);
if (as_0 == "Lavender") return (16443110);
if (as_0 == "LavenderBlush") return (16118015);
if (as_0 == "LawnGreen") return (64636);
if (as_0 == "LemonChiffon") return (13499135);
if (as_0 == "LightBlue") return (15128749);
if (as_0 == "LightCoral") return (8421616);
if (as_0 == "LightCyan") return (16777184);
if (as_0 == "LightGoldenrod") return (13826810);
if (as_0 == "LightGray") return (13882323);
if (as_0 == "LightGreen") return (9498256);
if (as_0 == "LightPink") return (12695295);
if (as_0 == "LightSalmon") return (8036607);
if (as_0 == "LightSeaGreen") return (11186720);
if (as_0 == "LightSkyBlue") return (16436871);
if (as_0 == "LightSlateGray") return (10061943);
if (as_0 == "LightSteelBlue") return (14599344);
if (as_0 == "LightYellow") return (14745599);
if (as_0 == "Lime") return (65280);
if (as_0 == "LimeGreen") return (3329330);
if (as_0 == "Linen") return (15134970);
if (as_0 == "Magenta") return (16711935);
if (as_0 == "Maroon") return (128);
if (as_0 == "MediumAquamarine") return (11193702);
if (as_0 == "MediumBlue") return (13434880);
if (as_0 == "MediumOrchid") return (13850042);
if (as_0 == "MediumPurple") return (14381203);
if (as_0 == "MediumSeaGreen") return (7451452);
if (as_0 == "MediumSlateBlue") return (15624315);
if (as_0 == "MediumSpringGreen") return (10156544);
if (as_0 == "MediumTurquoise") return (13422920);
if (as_0 == "MediumVioletRed") return (8721863);
if (as_0 == "MidnightBlue") return (7346457);
if (as_0 == "MintCream") return (16449525);
if (as_0 == "MistyRose") return (14804223);
if (as_0 == "Moccasin") return (11920639);
if (as_0 == "NavajoWhite") return (11394815);
if (as_0 == "Navy") return (8388608);
if (as_0 == "None") return (0);
if (as_0 == "OldLace") return (15136253);
if (as_0 == "Olive") return (32896);
if (as_0 == "OliveDrab") return (2330219);
if (as_0 == "Orange") return (42495);
if (as_0 == "OrangeRed") return (17919);
if (as_0 == "Orchid") return (14053594);
if (as_0 == "PaleGoldenrod") return (11200750);
if (as_0 == "PaleGreen") return (10025880);
if (as_0 == "PaleTurquoise") return (15658671);
if (as_0 == "PaleVioletRed") return (9662683);
if (as_0 == "PapayaWhip") return (14020607);
if (as_0 == "PeachPuff") return (12180223);
if (as_0 == "Peru") return (4163021);
if (as_0 == "Pink") return (13353215);
if (as_0 == "Plum") return (14524637);
if (as_0 == "PowderBlue") return (15130800);
if (as_0 == "Purple") return (8388736);
if (as_0 == "Red") return (255);
if (as_0 == "RosyBrown") return (9408444);
if (as_0 == "RoyalBlue") return (14772545);
if (as_0 == "SaddleBrown") return (1262987);
if (as_0 == "Salmon") return (7504122);
if (as_0 == "SandyBrown") return (6333684);
if (as_0 == "SeaGreen") return (5737262);
if (as_0 == "Seashell") return (15660543);
if (as_0 == "Sienna") return (2970272);
if (as_0 == "Silver") return (12632256);
if (as_0 == "SkyBlue") return (15453831);
if (as_0 == "SlateBlue") return (13458026);
if (as_0 == "SlateGray") return (9470064);
if (as_0 == "Snow") return (16448255);
if (as_0 == "SpringGreen") return (8388352);
if (as_0 == "SteelBlue") return (11829830);
if (as_0 == "Tan") return (9221330);
if (as_0 == "Teal") return (8421376);
if (as_0 == "Thistle") return (14204888);
if (as_0 == "Tomato") return (4678655);
if (as_0 == "Turquoise") return (13688896);
if (as_0 == "Violet") return (15631086);
if (as_0 == "Wheat") return (11788021);
if (as_0 == "White") return (16777215);
if (as_0 == "WhiteSmoke") return (16119285);
if (as_0 == "Yellow") return (65535);
if (as_0 == "YellowGreen") return (3329434);
return (0);
}

int StrToBool(string as_0) {
if (as_0 == "true") return (1);
return (0);
}

string StringUpper(string as_0) {
int li_36;
string ls_ret_8 = "";
string ls_16 = "abcdefghijklmnopqrstuvwxyz";
string ls_24 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
for (int li_32 = 0; li_32 < StringLen(as_0); li_32++) {
 li_36 = StringFind(ls_16, StringSubstr(as_0, li_32, 1), 0);
 if (li_36 >= 0) ls_ret_8 = ls_ret_8 + StringSubstr(ls_24, li_36, 1);
 else ls_ret_8 = ls_ret_8 + StringSubstr(as_0, li_32, 1);
}
return (ls_ret_8);
}

string StringTrim(string as_0) {
string ls_ret_8 = "";
for (int li_16 = 0; li_16 < StringLen(as_0); li_16++)
 if (StringSubstr(as_0, li_16, 1) != " ") ls_ret_8 = ls_ret_8 + StringSubstr(as_0, li_16, 1);
return (ls_ret_8);
}

string TFToStr(int ai_0) {
switch (ai_0) {
case 1:
 return ("M1");
case 5:
 return ("M5");
case 15:
 return ("M15");
case 30:
 return ("M30");
case 60:
 return ("H1");
case 240:
 return ("H4");
case 1440:
 return ("D1");
case 10080:
 return ("W1");
case 43200:
 return ("MN");
}
return (-1);
}


Falls jemand etwas decompiliert haben möchte, bitte eine PN an mich.
  • Rainbowtrader gefällt das

Du möchtest Dich in der Forexfabrik verewigen? Evtl. sogar als ...

gastautor
Zuletzt aktualisiert Datum: 28.02.2015 - 00:49 Uhr

 




Similar Topics

  Thema Eröffnet von Statistik Letzter Beitrag




0 Benutzer lesen gerade dieses Thema

0 Mitglieder, 0 Gäste, 0 anonyme Nutzer