Author: Maximus_genuine
Orders Execution
Checks for the total of open ordersIt automatically opens orders when conditions are reached
Indicators Used
Moving average indicator
0 Views
0 Downloads
0 Favorites

Profitability Reports

AUD/USD Oct 2024 - Jan 2025
110.00 %
Total Trades 14
Won Trades 0
Lost trades 0
Win Rate 0.00 %
Expected payoff 4.84
Gross Profit 720.00
Gross Loss -652.20
Total Net Profit 67.80
-100%
-50%
0%
50%
100%
GBP/USD Oct 2024 - Jan 2025
85.00 %
Total Trades 28
Won Trades 10
Lost trades 18
Win Rate 0.36 %
Expected payoff -8.54
Gross Profit 1307.90
Gross Loss -1547.00
Total Net Profit -239.10
-100%
-50%
0%
50%
100%
Poker_SHOW
//+------------------------------------------------------------------+
//|                                                   Poker_SHOW.mq4 |
//|                                                  Maximus_genuine |
//|                                              gladmxm@bigmir.net  |
//+------------------------------------------------------------------+
#property copyright "Maximus_genuine"
#property link      "gladmxm@bigmir.net "

//---- input parameters

//..........................................................................

extern int       Royal=8; // ----¹ ïîêåðíîé êîìáèíàöèè 
extern int       SL =89; // óðîâåíü ñòîï-ëîññà â ïóíêòàõ 
//..........................................................................
extern bool      In_BUY   =true;    //---âõîä â ëîíã
extern bool      In_SELL   =true;   //---âõîä â øîðò   

 
//..........................................................................

 
 
//---- other parameters
   static int  prevtime=0;
          int    ticket=0;
          int         x=1;
          int level=16422;
          int    TP=   20;
       //-------------------------
          int Magic_BUY  =123;
          int Magic_SELL =321;
         
 
//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//--------------------------------
      if(Digits == 5) x=10;
      
      MathSrand(TimeCurrent());
//--------------------------------
    if (SL< 20) SL=20; TP=MathRound(1.618*SL);
//--------------------------------
    if (Royal==0) level=2;
    if (Royal==1) level=9;
    if (Royal==2) level=49;
    if (Royal==3) level=66;
    if (Royal==4) level=130;
    if (Royal==5) level=699;
    if (Royal==6) level=1562;
    if (Royal==7) level=13846;
 // if (Royal==8) level=16422;
//--------------------------------
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
//..........................................................................
    if (Time[0] == prevtime) return(0); 
                             prevtime = Time[0];
    if (!IsTradeAllowed()) {
     prevtime=Time[1]; Sleep(30000 + MathRand());  //--- ôîðìèðîâêà áàðà---
                           }
//..........................................................................
 
 
 My_Play( Magic_BUY, In_BUY, level,Ask,iMA(NULL,0,89,5,MODE_EMA,PRICE_OPEN,0));    //---òîðãîâëÿ ïî ëîíãàì
   
   
 My_Play(Magic_SELL,In_SELL,level,iMA(NULL,0,89,5,MODE_EMA,PRICE_OPEN,0),Bid);  //---òîðãîâëÿ  ïî øîðòàì
   
   
//..........................................................................
   return(0);//-----------âûõîä èç ñòàðòîâîé ôóíêöèè------------
  }
//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
void  My_Play(int mn,bool flag,int level,double a1,double a2) { 
 
         int total=OrdersTotal();
         
    for (int i = 0; i < total; i++) { OrderSelect(i, SELECT_BY_POS, MODE_TRADES);//---ïðîõîä ïî îðäåðàì--
    
    
                if (OrderSymbol() == Symbol() && OrderMagicNumber() == mn) { 
                
            
                
                return(0);
                                                                           } 
                                    }
 
//..........................................................................
      ticket = -1;  int Rand=MathRand();  
      
   
 
  if (  flag                          &&  // ---ôëàã îòêðûòèÿ îðäåðà
  
        a1>a2                         &&  // --- ïðîâåðêà ôèëüòðóþùåé ýâðèñòèêè
  
        level >   Rand                &&  //---- ïîêåð-ØÎÓ ---
      
      
           IsTradeAllowed()) { 
           
           if (mn<200)      {
  
 ticket= OrderSend(Symbol(), OP_BUY,lot(),Ask,5*x,Bid-x*SL*Point,Ask+x*TP*Point,DoubleToStr(mn,0),mn,0,Blue);
                         
    
                            }
                         
                         
                         else {
                         
 ticket= OrderSend(Symbol(),OP_SELL,lot(),Bid,5*x,Ask+x*SL*Point,Bid-x*TP*Point,DoubleToStr(mn,0),mn,0, Red);
                        
                              }
        
   
                 RefreshRates();   
      
              if ( ticket < 0) { Sleep(30000);   prevtime = Time[1]; } 
                                           
                                           } //-- Exit ---
 
       return(0); } 
       
 
//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxXXXXXXXXXXXXXXXXXXXX
double lot() {  return(0.1);    } 
//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


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