DoubleSpread

Author: Copyright � 2006, GallantFX
Profit factor:
0.05
Orders Execution
It automatically opens orders when conditions are reached
0 Views
0 Downloads
0 Favorites
DoubleSpread
//+------------------------------------------------------------------+
//|                                                 Double Spred.mq4 |
//|                                    Copyright © 2006,  GallantFX  |
//|                                         http://www.gallantfx.com |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2006,  GallantFX "
#property link      "http://www.gallantfx.com"


//---- input parameters
extern double    Lots_all=2.0;
extern double    slippage_all=2.0;
extern double    stoploss_all=0;
extern double    takeprofit_all=6.0;

//+------------------------------------------------------------------+
//| script program start function                                    |
//+------------------------------------------------------------------+
int start()
  {
//----
  int ticket_buy;
  ticket_buy=OrderSend(Symbol(),OP_BUY,Lots_all,Ask,slippage_all,0,Ask+takeprofit_all*Point,"BUY & Take Profit",10000,0,Blue);
  if(ticket_buy<0)
    {
     Print("OrderSend failed with error #",GetLastError());
     return(0);
    }

  int ticket_sell;
  ticket_sell=OrderSend(Symbol(),OP_SELL,Lots_all,Bid,slippage_all,0,Bid-takeprofit_all*Point,"SELL & Take Profit",10001,0,Red);
  if(ticket_sell<0)
    {
     Print("OrderSend failed with error #",GetLastError());
     return(0);
    }



//----
   return(0);
  }
//+------------------------------------------------------------------+

Profitability Reports

USD/CAD Oct 2024 - Jan 2025
0.06
Total Trades 17
Won Trades 8
Lost trades 9
Win Rate 47.06 %
Expected payoff -61.02
Gross Profit 71.12
Gross Loss -1108.39
Total Net Profit -1037.27
-100%
-50%
0%
50%
100%
NZD/USD Oct 2024 - Jan 2025
0.02
Total Trades 43
Won Trades 7
Lost trades 36
Win Rate 16.28 %
Expected payoff -70.09
Gross Profit 62.00
Gross Loss -3076.00
Total Net Profit -3014.00
-100%
-50%
0%
50%
100%
GBP/USD Oct 2024 - Jan 2025
0.10
Total Trades 28
Won Trades 10
Lost trades 18
Win Rate 35.71 %
Expected payoff -36.00
Gross Profit 110.00
Gross Loss -1118.00
Total Net Profit -1008.00
-100%
-50%
0%
50%
100%
AUD/USD Oct 2024 - Jan 2025
0.01
Total Trades 43
Won Trades 0
Lost trades 0
Win Rate 0.00 %
Expected payoff -54.09
Gross Profit 12.00
Gross Loss -2338.00
Total Net Profit -2326.00
-100%
-50%
0%
50%
100%

Comments