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
373 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

Project Description: Multi-Step Product Customization and Purchase Flow for Squarespace We are seeking a skilled developer/designer to help us create a dynamic and user-friendly multi-step product customization and purchase flow on our Squarespace website. The goal is to replicate a seamless user experience, similar to those seen in flower delivery services, where users can easily customize their orders and proceed to checkout. Project Details: Step-Based Product Customization: Step 1: Users select a product variant (e.g., flower size) using dynamic and responsive UI elements (HTML, CSS, JS). The system automatically transitions to Step 2 upon selection. Dynamic Input Collection: Step 2: Users input the recipient's location, triggering an automatic transition to Step 3. Step 3: Users choose a delivery date. Step 4: Users select a delivery option. Data Flow and Checkout Integration: All user inputs (location, delivery date, delivery option) should seamlessly pass to the Squarespace checkout page via: Hidden fields. Query parameters. API integrations (if applicable). Smooth and Mobile-Friendly UI/UX: Intuitive transitions between steps. Responsiveness to mobile and desktop environments. Deliverables: Fully functional multi-step flow implemented on Squarespace. Clean, maintainable code using HTML, CSS, and JavaScript. Integration of collected data into the Squarespace checkout process. Guidance on how to update/customize this feature in the future. Ideal Candidate: Strong experience with Squarespace customization. Proficiency in JavaScript, HTML, and CSS. Knowledge of integrating user inputs into checkout workflows. A focus on creating seamless, user-friendly, and mobile-responsive designs. If you have experience in similar projects or can suggest creative approaches to improve the flow, we’d love to collaborate with you!
50.0 GBP Technology & Programming peopleperhour Overseas
1 days ago