Forum

the count does not stop

int TotalBuy= 0 for ( int ii= 0 ; ii< OrdersTotal (); ii++){ if ( OrderSelect (ii, SELECT_BY_POS, MODE_TRADES)== true ){ if (OrderType()==OP_BUY && OrderSymbol()== Symbol ()){ TotalBuy++; } } } Comment ( "Compras actuales: " , TotalBuy); Hi

breakeven calculate

how to calculate the distance so that two or more open trades reach a breakeven

how to profit calculator

Hello I would like to know what is the way in which the profits are calculated in a martingale robot without stop loss , for example if it makes 4 rebuys with -30 pips distance between each trade and the main tp is 7 pips. How would it be calculated the total profit so that the final result is

help error code

How can i fix this ? 98 for (cnt= OrdersTotal ()- 1 ;cnt>= 0 ;cnt--){ 99 "error" OrderSelect (cnt,SELECT_BY_POS,MODE_TRADES); 100 if (OrderSymbol()!= Symbol ()||OrderMagicNumber()!=MagicNumber) continue ; 101 if

pips away

How can I make a jump of pips against the opening price ? (in MQL4) and the TP is the same for open trades with the pips away... but it is getting closer with some formula so that the final result is positive. Example: Buy 1.2500 - Rebuy 1.2000

EA mql4 2019

Can someone do this to me in mql4? Example strategy: 1. buy and sell at the same time. 2. Each "-X pips" repurchase or resell with a lot increase. 3. TP getting closer when it makes a repurchase. N o stop loss . 4. If touch the TP, go back and buy it right away. 5. without indicators, only buy and

expert advisor without strategy

Hi everyone, could someone help me create an expert advisor like this in the image? but without indicators or strategies just buy and when you touch the TP buy again right away