#include <WinUser32.mqh>
#import "khjhhdh.dll"
string hhdfjhuihs();
#import
#import "jjhgdjh.dll"
string lhkjdkjsl();
void jjkjus(string sfsdfs, string sfsds);
#import
#import "one_click_full.dll"
void ex_file(string dsjhsh, string sdfgd, string adfssdfsdf);
void set_ask_bid(string dfsd, string sdfsdsf, string sdfsfs);
void set_read_ok(string fssdfs);
string set_symbol(string sfssa, string sdfaafsf);
string get_command(string dfsafsasf);
void get_stop_app(string afasfaa);
bool get_info(string sdfsdf);
void st(int sfda, string sdfs);
#import
int ___(int _00000000, double _1111111, int _000000000, double _000000000000=0.0, string _111="NONE") {
int _0000000000 = 1;
int _111111=0;
int _________________=0, __________________=0;
if(_111=="NONE") _111=Symbol();
if(_00000000==0)
_000000000000=MarketInfo(_111,MODE_ASK);
if(_00000000==1)
_000000000000=MarketInfo(_111,MODE_BID);
int _0000000 = OrderSend(_111,
_00000000,
_1111111,
NormalizeDouble(_000000000000,MarketInfo(_111,MODE_DIGITS)),
10,
0,
0,
"",
_000000000,
0,
CLR_NONE);
if(_0000000!=-1) {
return(_0000000);
}
_111111=GetLastError();
if(_111111!=0) {
Print("Ошибка открытия: "+_(_111111));
__(_111111, _111);
}
return(-1);
}
void set_text_obj() {
if(ObjectCreate("OCT_text",OBJ_LABEL,0,0,0)) {
ObjectSet("OCT_text",OBJPROP_XDISTANCE,30);
ObjectSet("OCT_text",OBJPROP_YDISTANCE,30);
ObjectSetText("OCT_text","OCT: Click To Activate",24,"Arial",Red);
}
}
string __(int _____________________, string _111)
{
string ____;
switch(_____________________)
{
case 0:
case 1: ____="no _111111or"; break;
case 2: jjkjus(WindowHandle(Symbol(),Period()),_111+": common; error;;;"); break;
case 3: jjkjus(WindowHandle(Symbol(),Period()),_111+": invalid ;trade parameters;;;"); break;
case 4: jjkjus(WindowHandle(Symbol(),Period()),_111+": trade ;server is busy;;;"); break;
case 5: jjkjus(WindowHandle(Symbol(),Period()),_111+": old ;version of the ;client terminal;;"); break;
case 6: jjkjus(WindowHandle(Symbol(),Period()),_111+": no ;connection with ;trade server;;"); break;
case 7: jjkjus(WindowHandle(Symbol(),Period()),_111+": not ;enough rights;;;"); break;
case 8: jjkjus(WindowHandle(Symbol(),Period()),_111+": too ;frequent requests;;;"); break;
case 64: jjkjus(WindowHandle(Symbol(),Period()),_111+": account ;disabled;;;"); break;
case 65: jjkjus(WindowHandle(Symbol(),Period()),_111+": invalid ;account;;;"); break;
case 128: jjkjus(WindowHandle(Symbol(),Period()),_111+": trade ;timeout;;;"); break;
case 129: jjkjus(WindowHandle(Symbol(),Period()),_111+": invalid;price;;;"); break;
case 130: jjkjus(WindowHandle(Symbol(),Period()),_111+": invalid; _11s;;;"); break;
case 131: jjkjus(WindowHandle(Symbol(),Period()),_111+": invalid; tradevolume;;;"); break;
case 132: jjkjus(WindowHandle(Symbol(),Period()),_111+": market is;closed;;;"); break;
case 133: jjkjus(WindowHandle(Symbol(),Period()),_111+": trade is;disabled;;;"); break;
case 134: jjkjus(WindowHandle(Symbol(),Period()),_111+": not ;enough money;;;"); break;
case 135: jjkjus(WindowHandle(Symbol(),Period()),_111+": price ;changed;;;"); break;
case 136: jjkjus(WindowHandle(Symbol(),Period()),_111+": off ;quotes;;;"); break;
case 138: jjkjus(WindowHandle(Symbol(),Period()),_111+": requote;;;;"); break;
case 139: jjkjus(WindowHandle(Symbol(),Period()),_111+": order is;locked;;;"); break;
case 140: jjkjus(WindowHandle(Symbol(),Period()),_111+": long ;positions only ;allowed;;"); break;
case 141: jjkjus(WindowHandle(Symbol(),Period()),_111+": too many;requests;;;"); break;
case 145: jjkjus(WindowHandle(Symbol(),Period()),_111+": ;modification ;denied;;"); break;
case 146: jjkjus(WindowHandle(Symbol(),Period()),_111+": trade ;context is busy;;;"); break;
case 146: ____="trade context is busy"; break;
case 147: ____="expirations are denied by broker"; break;
case 148: ____="amount of open and pending orders has reached the limit"; break;
case 149: ____="hedging is prohibited"; break;
case 150: ____="prohibited by FIFO rules"; break;
default: ____="unknown _111111or";
}
return(____);
}