CoinflipwithMM

Orders Execution
It automatically opens orders when conditions are reached
0 Views
0 Downloads
0 Favorites

Profitability Reports

GBP/USD Oct 2024 - Jan 2025
56.00 %
Total Trades 8623
Won Trades 0
Lost trades 0
Win Rate 0.00 %
Expected payoff -1.16
Gross Profit 12706.50
Gross Loss -22669.10
Total Net Profit -9962.60
-100%
-50%
0%
50%
100%
NZD/USD Oct 2024 - Jan 2025
8.00 %
Total Trades 2930
Won Trades 209
Lost trades 2721
Win Rate 0.07 %
Expected payoff -3.41
Gross Profit 898.70
Gross Loss -10883.40
Total Net Profit -9984.70
-100%
-50%
0%
50%
100%
CoinflipwithMM
//+------------------------------------------------------------------+
//|                                          CoinflipwithMM          |
//|                                                                  |
//+------------------------------------------------------------------+

//+------------------------------------------------------------------+
//|              External Variables                                  |
//+------------------------------------------------------------------+
   
extern int StopLoss             =   40;
extern int TakeProfit           =   43;
extern int    Slippage          =   3;
extern double Lots              =   0.1;





double MinLots, MaxLots, UseLots,BuyLots, SellLots;

int    NumBuys, NumSells;

int start()
{
  NumBuys  = 0;
  NumSells = 0;
  
  BuyLots  = 0.00;
  SellLots = 0.00;


  {
    OrderSelect(SELECT_BY_POS,MODE_TRADES);

    if (OrderSymbol() == Symbol()) 
    
    {
      if (OrderType() == OP_BUY)  NumBuys++;    
      if (OrderType() == OP_SELL) NumSells++;     
    }   
  }

   UseLots = Lots;
     
   if(MathMod(TimeCurrent()/60, 2)==0 && NumSells <1 && NumBuys <1) 
    {
      OrderSend(Symbol(),OP_BUY,UseLots,Ask,Slippage,Ask-StopLoss*Point,Ask+TakeProfit*Point,"CoinflipwithMM ",0,0,White);
      Print ("Errors opening BUY order = ",GetLastError());
      return(0);
    }
 
 
if ( NumBuys <1 && NumSells <1)
 
    {
      OrderSend(Symbol(),OP_SELL,UseLots,Bid,Slippage,Bid+StopLoss*Point,Bid-TakeProfit*Point,"CoinflipwithMM ",0,0,Red);
      Print ("Errors opening SELL order = ",GetLastError());
      return(0);
    }
   
 
//Screen comments         
  Comment("Balance: ", AccountBalance(), ", Equity: ", AccountEquity(), ", Lots: ",UseLots,
        
        "\nNum Buys: ", NumBuys, ", Num Sells: ", NumSells, ", BuyLots:", BuyLots, ", SellLots:", SellLots);
        

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