Forum

convert string number into integer and place it on array

hello, i've been facing issues on how to read file and convert it into usable data for calculation. i've read and convert the file into integer but when i'm trying to place it in a array and try to do alert function it does not show anything. the code below is working properly as intended but i

Selecting CSV column for walk forward optimization

hello, I'm new on reading files through mql5 and i don't think my code is working as intended. my purpose on why I need to read csv file is that I'm trying to walk forward test my system without optimization. gathering multiple csv and comparing them to get the optimal parameters that I will use for

selecting all forex major symbol

hello, I'm trying to code multi currency EA. this code below works properly when I test it but my question is, is there any way of selecting All of the Major Pairs in Forex without making my code too long and if I try to change broker I don't want to start over again changing the symbol manually

different point() for multi currency

hi im trying to code a multi symbol expert and i'm almost done but i have a problem on converting points to place trades but when i try combining 5 digit currency and 3 digits currency. the 3 digit currency always place the stoploss at the wrong place. but when i trade them on separate backtest they

any idea for custom walk forward optimization

does anyone know what are the steps on coding an EA that can do walk forward testing optimization just like this one I've read article on mql5.com and I found 2 articles but both of them are too complicated for me to understand and the library is expensive but the general idea is pick the starting

Select different indicators individually or combined on backtesting

hi, I just coded a function for testing my EA by combining different indicators to give me results but my problem is I cannot select individual indicators or combine different indicators to give me results that i want. this function only works on this sequence "ENABLE C1, ENABLE C2, ENABLE BASELINE

how to remove decimal in price and indicator data to use as stoploss

hello, how do i remove decimal on price and indicator data so that i can calculate it in points ask=1.35627 indicator data = 1.35500 my plan is that once i remove the decimal on both price and indicator i can subtract them and get the points that i need for the stoploss newask=135627

how to get daily profit of the day using AccountEquity()

hello, is this code right? I'm trying to use percentage on my Profit so when the AccountEquity() >= DailyProfitTarget it will close all of the trades I'm not sure on how to code the DailyProfitTarget tnx for the help void OnTick () double

close specific trade using orderticket()

hello, how do i close specific order using OrderClose(). i did get the value of the OrderTicket() but i cannot close it. i think i have problem on my code void CloseProfit() { double MAXprofit= 0 ; int TicketOrder= 0 ; for ( int i= OrdersTotal ()- 1 ;

Close the highest Specific Open Order

hello, I just wondering if there is a way that i can close the highest open position using OrderProfit() function because my strategy is once i maxed out the max trade out of my ea. the ea will close the highest profit order and open new order and it will repeat the process