//+------------------------------------------------------------------+ //| Def.mqh | //| Copyright 2026, Niquel Mendoza. | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2026, Niquel Mendoza." #property link "https://www.mql5.com" #property strict #ifndef MQLARTICLES_INDICATORSCTS_IMP_INTERNLA_DEF_MQH #define MQLARTICLES_INDICATORSCTS_IMP_INTERNLA_DEF_MQH //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ #include #include //--- #include //--- #include #include #include //--- file #include #include // ::GetLastErr #include // CloseHandle //--- #resource "res\\line.mqh" as const uchar g_res_line[]; #resource "res\\linew.mqh" as const uchar g_res_linew[]; #resource "res\\block.mqh" as const uchar g_res_block[]; #resource "res\\hide_s.mqh" as const uchar g_res_hide_s[]; #resource "res\\body_ee.mqh" as const uchar g_res_body_ee[]; #resource "res\\ret_i_final.mqh" as const uchar g_res_ret_i_final[]; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ //--- namespace TSN { MQLARTICLES_STRUCTBYTES_CRE(10) } //--- #define SCRIPT_ADD_ONE_LINE(RAW, RAW_S) RAW_S+=ArrayCopy(RAW,g_res_line,RAW_S,0); #define SCRIPT_ADD_ONE_BLOCK(RAW, RAW_S) RAW_S+=ArrayCopy(RAW,g_res_block,RAW_S,0); //--- #define SCRIPT_LINEW_PURESIZE (ArraySize(g_res_linew) - (2 + 2 + 2 + 2)) //--- #define SCRIPT_RESERVE_ARR(ARR, SIZE, RESERVE, NEED) \ if((SIZE)+(NEED)>=(RESERVE)) \ { \ RESERVE+=((RESERVE)>>1)+(NEED)+(8); \ ArrayResize(ARR, RESERVE, RESERVE); \ } //--- const uchar g_res_prop[10] = { '#', 'p', 'r', 'o', 'p', 'e', 'r', 't', 'y', ' ' }; //--- #define SCRIPT_PROP_COPYRIGHT (0) #define SCRIPT_PROP_LINK (1) #define SCRIPT_PROP_STRICT (2) //--- const TSN::CStringFixed g_res_props_namews[3] = { {{'c', 'o', 'p', 'y', 'r', 'i', 'g', 'h', 't', ' '}, 10}, {{'l', 'i', 'n', 'k', ' ', ' ', ' ', ' ', ' ', ' '}, 10}, {{'s', 't', 'r', 'i', 'c', 't'}, 6}, }; //--- #define SCRIPT_ADD_PROP(PROP, RAW, RAW_S) \ RAW_S += ArrayCopy(RAW, g_res_prop, RAW_S, 0); \ RAW_S += ArrayCopy(RAW, g_res_props_namews[PROP].raw, RAW_S, 0, g_res_props_namews[PROP].len); //--- #define SCRIPT_ADD_LINETERMINATOR(RAW, RAW_S) \ RAW[RAW_S++] = '\r'; \ RAW[RAW_S++] = '\n'; //--- #define SCRIPT_CTX(RAW, RAW_S, CH) \ RAW[RAW_S++] = ' '; \ RAW[RAW_S++] = CH; \ SCRIPT_ADD_LINETERMINATOR(RAW, RAW_S) //--- #define SCRIPT_CTX_WCLOSE(RAW, RAW_S) \ RAW[RAW_S++] = ' '; \ RAW[RAW_S++] = '}'; \ RAW[RAW_S++] = ';'; \ SCRIPT_ADD_LINETERMINATOR(RAW, RAW_S) //--- #define RES_CLASS_START_OFF_PUBLIC (2) #define RES_CLASS_START_L_PUBLIC (6) #define RES_CLASS_START_OFF_CIINSIMPLE (9) //--- const uchar g_res_class_start[] = { ' ', ':', 'p', 'u', 'b', 'l', 'i', 'c', ' ' }; //--- const uchar g_res_class_p[] = { 'C', 'i', 'I', 'n', 'd', 'i', 'c', 'a', 't', 'o', 'r', 'S', 'i', 'm', 'p', 'l', 'e', '<', 'M', 'Q', 'L', 'A', '_', 'B', '(' }; //--- const uchar g_res_contructor_start[] = { ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', }; //--- const uchar g_res_create_func[] = { ' ', ' ', 'b', 'o', 'o', 'l', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' }; const uchar g_res_initial_firm[] = { 'C', 'r', 'e', 'a', 't', 'e', '(', 'E', 'N', 'U', 'M', '_', 'T', 'I', 'M', 'E', 'F', 'R', 'A', 'M', 'E', 'S', ' ', 't', 'i', 'm', 'e', 'f', 'r', 'a', 'm', 'e', ',', ' ', 's', 't', 'r', 'i', 'n', 'g', ' ', 's', 'y', 'm', 'b', 'o', 'l', ',', ' ', 'b', 'o', 'o', 'l', ' ', 's', 'e', 'r', 'i', 'e', 's', ',', ' ', 'b', 'o', 'o', 'l', ' ', 'h', 'i', 'd', 'e' }; //--- const uchar g_res_h_assing[] = { ' ', ' ', 'c', 'o', 'n', 's', 't', ' ', 'i', 'n', 't', ' ', 'h', ' ', '=', ' ', ':', ':' }; //--- const uchar g_res_return[] = { ' ', ' ', 'r', 'e', 't', 'u', 'r', 'n', ' ' }; //--- const uchar g_res_create_h_ini[] = { '(', 's', 'y', 'm', 'b', 'o', 'l', ',', ' ', 't', 'i', 'm', 'e', 'f', 'r', 'a', 'm', 'e', ',', ' ' }; //--- const uchar g_res_fina_b[] = { ')', ' ', '{', '}', '\r', '\n' }; //--- #endif // MQLARTICLES_INDICATORSCTS_IMP_INTERNLA_DEF_MQH