Metatrader Forum | Forex Expert-Advisor | Broker & Forex Tools

Metatrader Forum | Forex Expert-Advisor | Broker & Forex Tools (http://www.expert-advisor.com/forum/index.php)
-   Programmierung MQL4 (http://www.expert-advisor.com/forum/forumdisplay.php?f=220)
-   -   Code für EA Kontonummer richtig? (http://www.expert-advisor.com/forum/showthread.php?t=6236)

Steffen123 21.10.18 17:00

Code für EA Kontonummer richtig?
 
Hallo zusammen,
ich habe unten stehenden code in meinen EA verbaut, der soll nur die jeweilige Kontonummer erlauben zu handeln.
Leider bekomme ich immer einen Fehler, da die "int start()" schon in dem script vorhanden ist.
Hat jemand eine Idee. Muß ich das "int start()" umbenennen?

beste Grüße


int start()
{
string char[256]; int i;

for (i = 0; i < 256; i++) char[i] = CharToStr(i);
// Account number, on which expert is allowed to work
int AllowedAccountNo = StrToInteger(/* 49153 */ char[52]+char[57]+char[49]+char[53]+char[51]);
string AllowedServer = /* UWC-Demo.com */ char[85]+char[87]+char[67]+char[45]+char[68]+
char[101]+char[109]+char[111]+char[46]+char[99]+char[111]+char[109];

if (AccountNumber() != AllowedAccountNo || AccountServer() != AllowedServer)
{
Print("You don't have permission to use this script!");
return(1);
}

Print("You can use this script!");
}

Bobs 22.10.18 09:58

Man muss diesen Code in eine vorhandene start () integrieren.


Alle Zeitangaben in WEZ +1. Es ist jetzt 20:05 Uhr.

Powered by vBulletin® Version 3.8.5 (Deutsch)
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.1
Powered by vBCMS® 2.7.0 ©2002 - 2024 vbdesigns.de
Copyright ©2009 - 2023 by Expert-Advisor.com - Das Metatrader Forum