Need your help to add custom code in EA Builder

 

Hi Friends, your help is seriously needed and appreciated. I tried to add few codes just to display EA parameters as well as draw three lines. But it was failed.

 

There is a custom code function to add special function which was not built in their standard functions. I would like to use this custom code function to add two tasks:

 

1.     Display few parameters of EA on chart

int Trade1_On = 1 (could be 0 or 1)

int Next_Open_Hours = 0 (could be 0-24)

double BE_Start = 20

double Lock_SL_buffer = 30

 

2.     Draw three lines on chart

double Price_H = 1.0622 (price to limit highest buy or sell (red line)

double Price_L = 1.0372 (price to limit lowest buy or sell (blue line)

double Lock_start_price = 1.0754 (price to place reversal lock orders (yellow line)



***part of auto generated codes of EA as below:




//+------------------------------------------------------------------+
//|                                         Strategy: RXSELL-A3A.mq4 |
//|                                       Created with EABuilder.com |
//|                                        https://www.eabuilder.com |
//+------------------------------------------------------------------+
#property copyright "Created with EABuilder.com"
#property link      "https://www.eabuilder.com"
#property version   "1.00"
#property description "Magic # 2204"
#property description "based on RXSELL-A3"
#property description "* add Next Trade limiter"
#property description "* fix bug of 2nd order not filter by >= start lock price"

#include <stdlib.mqh>
#include <stderror.mqh>

extern double Lot_Size = 0.01;
extern double Price_H = 1.0622;
extern double Price_L = 1.0372;
extern double TP_money1 = 1;
extern double TP_money2 = 1.5;
extern int SR_Bars = 4;
extern int Max_order = 4;
extern int Grid2_K = 100;
extern double Grid2_step = 30;
extern int Grid3_K = 100;
extern double Grid3_step = 50;
extern int Grid4_K = 300;
extern double Grid4_step = 80;
extern int Trade1_On = 1;
extern int Trade2_On = 1;
extern int MG_No = 2204;
extern double Lock_Bar_size = 1.5;
extern double Lock_start_price = 1.0754;
extern int Next_Open_Hours = 0;
extern int Trail_MultiOrder = 0;
extern int Manual_K = 100;
extern double BE_Start = 20;
extern double Lock_SL_buffer = 30;
int LotDigits; //initialized in OnInit
int MagicNumber = 2204;
int NextOpenTradeAfterHours = 0; //next open trade after time
double TradeSize = 0.1;
int MaxSlippage = 3; //slippage, adjusted in OnInit
bool crossed[2]; //initialized to true, used in function Cross
int MaxOpenTrades = 1000;
int MaxLongTrades = 1000;
int MaxShortTrades = 1000;
int MaxPendingOrders = 1000;
int MaxLongPendingOrders = 1000;
int MaxShortPendingOrders = 1000;
bool Hedging = true;
int OrderRetry = 5; //# of retries if sending order returns error
int OrderWait = 5; //# of seconds to wait if sending order returns error
double myPoint; //initialized in OnInit

//--- Custom functions ----------------------------------------------- 


//--- End of custom functions ----------------------------------------
 

Given that you are using an EA builder (which produces very bad code, by the way), then we can assume you don't know how to code. So, how will you be able to integrate the code, if you don't know how to do it?

The forum is mainly to help those that want to learn to code in MQL and need some advice, not to code things for them. So, I would suggest you use the Freelance jobs section to hire someone to code it for you.

Trading applications for MetaTrader 5 to order
Trading applications for MetaTrader 5 to order
  • 2022.05.21
  • www.mql5.com
The largest freelance service with MQL5 application developers
 

EA builder, EA Builder Pro, EATree, Etasoft forex generator, Forex Strategy Builder, ForexEAdvisor STRATEGY BUILDER, ForexRobotAcademy.com, FX EA Builder, fxDreema, Forex Generator, FxPro, Molanis, Octa-FX Meta Editor, Online Forex Expert Advisor Generator, Strategy Builder FX, Strategy Quant, Visual Trader Studio, MQL5 Wizard, etc., are all the same. You will get something quick, but then you will spend a much longer time trying to get it right, than if you learned the language up front, and then just wrote it.

  1. Since you haven't learned MQL4/5, therefor there is no common language for us to communicate.
    If we tell you what you need, you can't code it.
    If we give you the code, you don't know how to integrate it into yours.
    We are willing to HELP you when you post your attempt (using Code button) and state the nature of your problem, but we are not going to debug your hundreds of lines of code. You are essentially going to be on your own.

  2. EA builder makes bad code counting up while closing multiple orders.
    EA builder makes bad code Bars is unreliable (Max bars in chart), volume is unreliable (miss ticks.) Always use time.
    EA builder makes bad code, not adjusting for 4/5 digit brokers, TP/SL and slippage.
    EA builder makes bad code, not adjusting for ECN brokers. pre-Build 500)
    EA builder makes bad code, not checking return codes.

  3. EATree uses objects on chart to save values — not persistent storage (files or GV+Flush.) No recovery (crash/power failure.)

  4. FX EA Builder makes bad code, not checking return codes.
    FX EA Builder makes bad code, loosing open tickets on terminal restart. No recovery (crash/power failure.)
    FX EA Builder makes bad code, not adjusting stops for the spread.
    FX EA Builder makes bad code, using OrdersTotal directly.

  5. FOREXEADVISOR STRATEGY BUILDER makes bad code, non-updateing global variables.
    FOREXEADVISOR STRATEGY BUILDER makes bad code, compilation errors.
    FOREXEADVISOR STRATEGY BUILDER makes bad code, not checking return codes.

Learn to code it, or pay someone (Freelance) someone to code it.
          Hiring to write script - General - MQL5 programming forum #1 (2019)

Reason: