coding

  1. shanmugapradeep

    [MQL4 CODING] Function to close Losing trade when it reached X distance

    Hello, I am making a code, If Buy Order reach above 30 Point from Entry price, close Sell Order If Sell Order reach below 30 Point from Entry Price, Close Buy Order. int gRangeClosing_Automatic = 30; if((LastOrderPrice(OP_SELL, gSellMagic) - Ask) / Point > gRangeClosing_Automatic) {...
  2. shanmugapradeep

    [MQL4 CODING] Target Revenue in Percentage using Account Balance and Equity

    Hello, I am adding new feature in my EA, which close trade automatically when it fulfilled defined earning set by user and than it redefine with value again with new Account balance. Example : Account Balance = $1000 Target Percentage = 10% (10% of 1000$ = $100) When Account...
  3. shanmugapradeep

    [MQL4 Coding Help] How to write If-else sequence in MQL4

    Hello, What is correct way to add if else statement. TYPE 1 : If else sequence separately : if (condition1) { //Condition 1 task } else { if (condition2) { //condition2 task } else { if(condition3) { //condition3 task } else { //condition else task } TYPE 2 : Else if statement sequence...
  4. richardmai

    I will code your EAs and Indicators for no charge

    hi, guys I'm Richard , a software programmer with 15 years coding experience, for interact all best trading ideas , I'd like to code your EA(MT4,MT5) or indicator for free. Please leave a comment about your trading idea , for example : At 15 minutes chart, sell EUR/USD when touching...
  5. ezraluandre

    load input parameter from ini file

    Hi, I want to set an input parameter using INI file. For a single symbol it works find but I want to use it for multi-currency purpose. Here's the code that I use, input string InpSettingsFile = "Lybra/Test/external file.ini"; //input file name, blank = not used int StoplossPoint...
  6. ezraluandre

    efficiency in 2 different scenario of code structure

    Hi I have EA with code structure like this, void OnTick() { resetCounterVar(); //there's for loop CloseOrders(); //there's for loop UpdateAllOpenOrders(); //there's for loop SetSLTP(); //there's for loop CheckPendOrder(); //there's for loop if(IsNewCandle() &&...
  7. Jixo man

    Need favour understanding how to loop through candles - how cycles work in MQL4

    Good morning mql4 programers . Please I have read mql4 documentation on custom indicator and the use conditional operator: "for".... I understand that , we initialise the counter and if a condition is true a set of code is run. But I don't still don't understand. Please help.
  8. A

    Expert Advisor Shows Error!

    Greetings to all! Lately I've been trying to create an Expert Advisor for myself. However while coding for the same; I've been receiving errors which i have failed to understand and rectify as i lack expertise in the language .I've attached the screenshots for the same below.Although I...
  9. W

    small problem with computing daily movement (divide problem)

    Hi folks, I have a small but really frustrating problem with dividing. The Indi has many-many arrays and works well, but now I wanted to change the base of the arrays. The old one was the RSI, now i want to change into Daily % change ( or candle, because I want to see it on every TF). So, I...
  10. J

    Looking for a CTrader/CAlgo coder in Johannesburg, South Africa

    Hi guys, As you can tell I'm new to the forum. I am looking for someone with extensive knowledge in CTrader/CAlgo who also trades themselves and uses their own CBots so they have a good understanding of the markets and my coding requirements. This person needs to be in the Johannesburg...
  11. OBASUYI OSAGIE

    I need a programmer.

    I have an indicator with no alert. I need a programmer that can help me make sure it gives alert whenever the color changes. https://telegram.me/OsagieOfGod
  12. R

    Forex VPS Cloud - EA Coding Service

    Today Forex VPS Cloud are proud to present our new Service called "EA Coding". If you are interest in getting your rules and strategy in an EA contact us through comercial@forexvpscloud.com asking for a quote! Hope that help you!