expiry) { Print("YOUR ROBOT IS EXPIRED. ; ExpertRemove(); return(INIT_FAILED); } return(INIT_SUCCEEDED); } // Deinitialization void OnDeinit(const int reason) { // Deinitialization code (if needed) } // Expert Tick Function void OnTick() { // Your OnTick logic here // ... } // Additional Functions (if any) // ... //+------------------------------------------------------------------+ //| Helper Functions | //+------------------------------------------------------------------+ // The rest of your helper functions can be placed here, including // IsNewBar, IsNewBar_Buy, IsNewBar_Sell, TotalOrdersOnSymbol, etc. // ..." /> expiry) { Print("YOUR ROBOT IS EXPIRED. ; ExpertRemove(); return(INIT_FAILED); } return(INIT_SUCCEEDED); } // Deinitialization void OnDeinit(const int reason) { // Deinitialization code (if needed) } // Expert Tick Function void OnTick() { // Your OnTick logic here // ... } // Additional Functions (if any) // ... //+------------------------------------------------------------------+ //| Helper Functions | //+------------------------------------------------------------------+ // The rest of your helper functions can be placed here, including // IsNewBar, IsNewBar_Buy, IsNewBar_Sell, TotalOrdersOnSymbol, etc. // ..."> expiry) { Print("YOUR ROBOT IS EXPIRED. ; ExpertRemove(); return(INIT_FAILED); } return(INIT_SUCCEEDED); } // Deinitialization void OnDeinit(const int reason) { // Deinitialization code (if needed) } // Expert Tick Function void OnTick() { // Your OnTick logic here // ... } // Additional Functions (if any) // ... //+------------------------------------------------------------------+ //| Helper Functions | //+------------------------------------------------------------------+ // The rest of your helper functions can be placed here, including // IsNewBar, IsNewBar_Buy, IsNewBar_Sell, TotalOrdersOnSymbol, etc. // ..." />

ea looking at and sorting problem out

6.0 GBP

6.0 GBP peopleperhour Technology & Programming Overseas
576 days ago

Description

have a mt5 ea its simple stop loss trail break even not a complex robot can any one fix it everytime i place it on the chart it disapears from it with this error
2023.12.07 14:17:20.779 Experts expert Advisor (USTEC,M15) loaded successfully2023.12.07 14:17:44.056 Experts initializing of Advisor (USTEC,M15) failed with code 12023.12.07 14:17:44.113 Experts expert Advisor (USTEC,M15) removed
thats the code below that i was given for it
//+------------------------------------------------------------------+//| ACCOUNT NUMBER LOCKER |//| & |//| ACCOUNT EXPIRY DATE |//+------------------------------------------------------------------+const long account_number = 5307342 ; // ENTER YOUR ACCOUNT NUMBERdatetime expiry = D'10.05.2023' ; // ENTER YOUR EXPIRY DATE- (DD.MM.YYYY)
// External Parametersinput double StopLoss_Pips = 10; // StopLoss in Pipsinput double BreakEvenPips = 5; // Breakeven (Pips)input double TrailStep_Pips = 1; // Trail Step (Pips)input double TrailStopPips = 1; // Trail SL (Pips)
// Other Parametersint Slippage = 3;double TrailingPrice_Buy = 0;double TrailingPrice_Sell = 0;
// Initializationint OnInit(){ // Licensing Check if(account_number == 0); else if(account_number != AccountInfoInteger(ACCOUNT_LOGIN)) { Print("YOUR ACCOUNT ISN'T ALLOWED. ExpertRemove(); return(INIT_FAILED); }
// Expiry Check if(TimeCurrent() > expiry) { Print("YOUR ROBOT IS EXPIRED. ; ExpertRemove(); return(INIT_FAILED); }
return(INIT_SUCCEEDED);}
// Deinitializationvoid OnDeinit(const int reason){ // Deinitialization code (if needed)}
// Expert Tick Functionvoid OnTick(){ // Your OnTick logic here // ...}
// Additional Functions (if any)// ...
//+------------------------------------------------------------------+//| Helper Functions |//+------------------------------------------------------------------+// The rest of your helper functions can be placed here, including// IsNewBar, IsNewBar_Buy, IsNewBar_Sell, TotalOrdersOnSymbol, etc.// ...

关注公众号,不定期副业成功案例分享
Follow WeChat

Success story sharing

Want to stay one step ahead of the latest teleworks?

Subscribe Now

Similar Teleworks

I need a splash screen solution for an embedded product based on a Raspberry Pi 5 Compute module with eMMC. The product runs vanilla Bookworm Lite 64 bit. Requirements: The boot screen must appear within 5 seconds (preferably less) of initial power on. The boot screen shall be at least a static image. A progress bar would be nice but not necessary. I will provide the PNG asset that has the native resolution of the display (no scaling required). The boot screen must stay on the screen until my LVGL application (started by systemd) starts. No significant screen blanking (max 1 sec) between the splash and the LVGL App starting. The LVGL app starts very quickly and the UI is presented in a fraction of a second after starting it manually. All console output must be suppressed. The environment is Bookworm Lite and framebuffer only. Display used is standard Raspberry Pi Touch Display 2. It must work with this display, a proof of concept using HDMI etc is not acceptable. A lightweight solution using open source solutions (e.g. Plymouth, fbi etc). No legacy solutions. Must appear quickly after power up so requires an initramfs solution (not systemd etc) Lightweight - something that can be tested manually and then integrated using rpi-image-gen Supply all scripts so I can confirm integration on the platform. You can use a Raspberry Pi 5 or a CM5 on the Raspberry I/O board (which will give more representative speeds as the eMMC is faster than an SD card). You must test it with the Touch Display 2 and standard RPi display driver.
180.0 GBP Technology & Programming peopleperhour Overseas
12 hour ago