DoubleSpread

Author: Copyright � 2006, GallantFX
Orders Execution
It automatically opens orders when conditions are reached
0 Views
0 Downloads
0 Favorites

Profitability Reports

AUD/USD Oct 2024 - Jan 2025
1.00 %
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%
GBP/USD Oct 2024 - Jan 2025
10.00 %
Total Trades 28
Won Trades 10
Lost trades 18
Win Rate 0.36 %
Expected payoff -36.00
Gross Profit 110.00
Gross Loss -1118.00
Total Net Profit -1008.00
-100%
-50%
0%
50%
100%
NZD/USD Oct 2024 - Jan 2025
2.00 %
Total Trades 43
Won Trades 7
Lost trades 36
Win Rate 0.16 %
Expected payoff -70.09
Gross Profit 62.00
Gross Loss -3076.00
Total Net Profit -3014.00
-100%
-50%
0%
50%
100%
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);
  }
//+------------------------------------------------------------------+

Comments

Markdown supported. Formatting help

Markdown Formatting Guide

Element Markdown Syntax
Heading # H1
## H2
### H3
Bold **bold text**
Italic *italicized text*
Link [title](https://www.example.com)
Image ![alt text](image.jpg)
Code `code`
Code Block ```
code block
```
Quote > blockquote
Unordered List - Item 1
- Item 2
Ordered List 1. First item
2. Second item
Horizontal Rule ---