Author: favoritefx
Profit factor:
0.22
Orders Execution
Checks for the total of open ordersIt automatically opens orders when conditions are reached
1 Views
0 Downloads
0 Favorites
e-fisher
//+------------------------------------------------------------------+
//|                                                       fisher.mq4 |
//|                                                       favoritefx |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "favoritefx"
#property link      "http://www.metaquotes.net"

//---- input parameters

extern int    TakeProfit=50;
extern int    StopLoss=30;
extern double Lots=0.1;



//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+


int init()
  {
//----

//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----

//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
//----
  double price;
  double stop;
  double profit;
  double RSI;
  double MARSI_Fast;
  double MARSI_Slow;

   if (AccountFreeMargin() < 1200 * Lots)
      return (0);

   //----
   if (( (OrdersTotal() == 0)))
   {
      RSI = iCustom(Symbol(),0,"TrendRSI_v1",13,8,55,0,1); //0 áóôåð

      MARSI_Fast = iCustom(Symbol(),0,"TrendRSI_v1",13,8,55,1,1); //1 áóôåð

      MARSI_Slow = iCustom(Symbol(),0,"TrendRSI_v1",13,8,55,2,1); //2 áóôåð


      if (RSI<MARSI_Slow )
      {

         stop   = NormalizeDouble(Ask - StopLoss   * Point, Digits);
         profit = NormalizeDouble(Ask + TakeProfit * Point, Digits);
         OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, stop, profit, NULL, 0, 0, Green);
      }
        if (RSI>MARSI_Slow)
      {

         stop   = NormalizeDouble(Bid + StopLoss   * Point, Digits);
         profit = NormalizeDouble(Bid - TakeProfit * Point, Digits);
         OrderSend(Symbol(),OP_SELL,Lots,Bid,3,stop,profit,NULL,0,0,Green);
         //Print(AccountBalance());
      }
   }
//----
   return(0);
  }
//+------------------------------------------------------------------+

Profitability Reports

USD/CAD Oct 2024 - Jan 2025
0.27
Total Trades 7224
Won Trades 996
Lost trades 6228
Win Rate 13.79 %
Expected payoff -1.37
Gross Profit 3589.96
Gross Loss -13471.84
Total Net Profit -9881.88
-100%
-50%
0%
50%
100%
GBP/USD Oct 2024 - Jan 2025
0.35
Total Trades 6075
Won Trades 1043
Lost trades 5032
Win Rate 17.17 %
Expected payoff -1.63
Gross Profit 5215.00
Gross Loss -15096.00
Total Net Profit -9881.00
-100%
-50%
0%
50%
100%
AUD/USD Oct 2024 - Jan 2025
0.05
Total Trades 3545
Won Trades 0
Lost trades 0
Win Rate 0.00 %
Expected payoff -2.79
Gross Profit 470.00
Gross Loss -10353.00
Total Net Profit -9883.00
-100%
-50%
0%
50%
100%

Comments