Forum

Cannot Get 2nd OrderOpenPrice(), Please Help

Hi coders, I need your help for my learning process. I'm using a Multi-Symbol EA which it can run sizeable pairs and it was written by someone else. My Mission :- 1) To get the 1st OrderOpenPrice 2) To get the 2nd OrderOpenPrice 3) Finally, get the difference MathAbs( 1 - 2 ) I have written the

Arrays for OrderOpenPrice(), Please Help

Hi coders, I'm trying to learn 2D Array to store the OrderOpenPrice() for each symbol. Existingly, I have 3 symbols that with open orders :- 1) AUDNZD : 10 BUY open orders 2) EURUSD : 8 SELL open orders 3) XAUUSD : 12 BUY open orders and 3 SELL open orders The following are my codes :- string

ChartOpen + ChartApplyTemplate + ChartClose to Work Together

Hi coders, hope you can help a non-programmer myself ... I have 2 strategies written in 2 EAs. Currently, I load the 2 EAs into 2 different charts but with different coded conditions (same magic), in other words, at any point of time, only one EA is trading and the other EA is in dormant state (both

How to Extract those Symbols Without Any Open Trades ?

Hi coders, good day to you. Let's say :- I've 4 Symbols with Open Trades now :- string opSym[]={ "AUDCHF" , "CADCHF" , "EURUSD" , "GBPJPY" }; My EA has a total of 12 trading symbols readily for trading (set up in user input variable) :- string trSym[]={ "AUDCAD" , "AUDCHF" , "AUDJPY" , "CADCHF"

How to Mandatory Close if Breakeven Price Level (BEPx) is Met ? (MT4)

Hi coders, my EA has 4 arrays in the Exit function :- string bSym[]; double bSymBEPx[]; string sSym[]; double sSymBEPx[]; My mission is to close a bundle of open trades (BUY and/or SELL) for a symbol if emergency conditions are met. If a symbol with only 1 single open trade, the exit can close

How to sort symbols (string) ?

Hi coders, I have an EA when I write an instruction such as :- Print (symbol); The symbols with open orders will be printed out in the Expert tab. I noticed that at the moment any new order comes in or existing order is closed, the sequence of the symbols will be changed. I tried to use ArraySort

Loop to get Lowest NPL values for Arrays (MT4)

Hi, I tried to get the BUY and SELL's Lowest Net Profit or Loss (LLNPL) for each symbol in my EA, but I cannot get the correct answers ... My codes are as follows :- string arTrSym[ 8 ]={ "AUDCAD" , "AUDCHF" , "AUDJPY" , "AUDNZD" , "AUDUSD" , "CADCHF" , "CADJPY" , "CHFJPY" }; double bLLNPL[]

How to index the Open Trades symbols (in a Buffer) ? (MT4)

Hi coders, I'm learning coding now. Pertaining to this post that quoted by "nicholish en" : https://www.mql5.com/en/forum/305424#comment_10829666 for ( int i= 0 ; i<symbols.Total(); i++) Print (symbols[i]); From my understanding, the "symbols" is a buffer to store all the open trades symbols. Let's

MT4 Chart Cannot Show Arrows

Hi everybody, I'm using "broker" account and I downloaded "broker" setup.exe from "broker" website. After installed a MT4 terminal, I loaded the Fractals indicator (the built-in indicator in MT4) onto my charts, but I cannot see the arrow signs, instead all with box signs. Anyone has the solution to

Need Help : To Get Shifts of a Fractals Structure

Hi coders, I need your help. I need to get a set of codes that to detect the shifts of a fractals structure with the following conditions (kindly look at my picture to have a better understanding) :- Sf = Shift Px = Fractals Price Level - - - - - - - - Fractals structure 1 :- FrL1Sf < FrH1Sf &&