Author: Billionaire prod.
Orders Execution
Checks for the total of open ordersIt automatically opens orders when conditions are reached
0 Views
0 Downloads
0 Favorites

Profitability Reports

AUD/USD Oct 2024 - Jan 2025
0.00 %
Total Trades 1
Won Trades 0
Lost trades 0
Win Rate 0.00 %
Expected payoff -656.90
Gross Profit 0.00
Gross Loss -656.90
Total Net Profit -656.90
-100%
-50%
0%
50%
100%
GBP/USD Oct 2024 - Jan 2025
0.00 %
Total Trades 0
Won Trades 0
Lost trades 0
Win Rate 0.0 %
Expected payoff 0.00
Gross Profit 0.00
Gross Loss 0.00
Total Net Profit 0.00
-100%
-50%
0%
50%
100%
NZD/USD Oct 2024 - Jan 2025
0.00 %
Total Trades 1
Won Trades 0
Lost trades 1
Win Rate 0.00 %
Expected payoff -631.60
Gross Profit 0.00
Gross Loss -631.60
Total Net Profit -631.60
-100%
-50%
0%
50%
100%
Doubler
//+------------------------------------------------------------------+
//|                                                      Doubler.mq4 |
//|                                                Billionaire prod. |
//|                                                                  |
//+------------------------------------------------------------------+
#property copyright "Billionaire prod."
#property link      "ulanenko@mail.ru"

extern int    StopLoss       = 100;
extern int    TakeProfit     = 50;
int    magicnumber    = 777;
extern double lots = 0.1;
extern int Ext1 = 1;
extern int Ext2 = 1;
extern bool AutoLotChanging = false;
//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
//----
int total = OrdersTotal();   
int SLB = Bid-(StopLoss*Point);
int TPB = Ask+(TakeProfit*Point);
int balance=AccountBalance()/500;
double lot=balance*0.1;
//----

              if (total == 0)
              {
              if (AutoLotChanging == true)
   {   
              OrderSend(Symbol(),OP_BUY,lot,Ask,3,SLB,TPB,"Doubler BUY",magicnumber,0,Green);
              OrderSend(Symbol(),OP_SELL,lot,Ask,3,TPB+(Ext1*Point),SLB-(Ext2*Point),"Doubler SELL",magicnumber,0,Green);
   }
   else
              OrderSend(Symbol(),OP_BUY,lots,Ask,3,SLB,TPB,"Doubler BUY",magicnumber,0,Green);
              OrderSend(Symbol(),OP_SELL,lots,Ask,3,TPB+(Ext1*Point),SLB-(Ext2*Point),"Doubler SELL",magicnumber,0,Green);

   }
   
   
   
   
   
   
   
   
   
//----
   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 ---