Forum

Can any One Help, I need a Function that can close Profit with Lose Trades

Hello coders :) I am seeking help :) PLEASE , I am using a Grid EA , I need To solve this situation : I have 100 Buy Open Order (30 Profit and 70 Order in Lose) and I have 50 Sell Order Sell all of them is in Profit the Total Profit for the 30 Buy Order is 300 USD the Total Profit for the 50 Sell

Strange Error "Testing pass stopped due to a critical error in the EA"

double p2p; //+------------------------------------------------------------------+ //| Expert initialization function | //+------------------------------------------------------------------+ int OnInit () { //--- if ( Digits == 3 || Digits == 5 ) p2p= 10 ; else

FIBO time zone end Date and Time

Hello Mates I Need to Get the Date and Time of the Fibo Time Zone vertical line NO 4 as shown on the Attached photo I am Using the Blow Code to the Get the Time and date for the first and 2nd vertical Line datetime Time&Date () { datetime end_Time1; datetime end_Time2; datetime end_Time4;

Problem in trailing Stop function

can anyone tell me what is wrong in my trailing function it works with Buy only !!!!! //+------------------------------------------------------------------+ //| (My)Trailing Stop |

get last closed order lot size

Hello every one the Below Function is to get the Last order lot size and multiply it by 2 it is is lose trade but it is not working properly , can you help double fLotSize() { double fnewlot=Lot_size; int i = OrdersHistoryTotal (); for (i;i>= 0 ;i--) { if ( OrderSelect (i, SELECT_BY_POS