Author: FORTRADER.RU
Profit factor:
0.01
Price Data Components
Series array that contains the highest prices of each barSeries array that contains the lowest prices of each bar
Orders Execution
Checks for the total of open ordersIt automatically opens orders when conditions are reached
2 Views
0 Downloads
0 Favorites
VLT_TRADER
//+------------------------------------------------------------------+
//|                                                   VLT_TRADER.mq4 |
//|                                                     FORTRADER.RU |
//|                                          http://www.fortrader.ru |
//+------------------------------------------------------------------+
#property copyright "FORTRADER.RU"
#property link      "http://www.fortrader.ru"

extern int profit = 10;
extern int stop = 10;
double BUYLIMIT,SELLLIMIT,bar,sup,sup1;
int okbuy,oksell,onepossell,oneposbuy,i;
double value=100;

int start()
  {
  double VLT,VSE,ULTRA;

  
  
  VLT=MathAbs(iHigh(NULL,0,1)-iLow(NULL,0,1));

  
  for(int i=2;i<10;i++)
  {
  
  if (MathAbs(iHigh(NULL,0,i)-iLow(NULL,0,i))<value && MathAbs(iHigh(NULL,0,i)-iLow(NULL,0,i))>0){value=MathAbs(iHigh(NULL,0,i)-iLow(NULL,0,i));}
  }  
  
  
  okbuy=0;oksell=0;
  for(int cnt=0;cnt<OrdersTotal();cnt++)
     {
      OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
       
         if(OrderType()==OP_BUY || OrderType()==OP_BUYSTOP)
         {
         okbuy=1;
         }
        
         if(OrderType()==OP_SELL || OrderType()==OP_SELLSTOP)
         {
         oksell=1;
         }
      }
    
  

  if(VLT<value && okbuy==0)
  {
  double OpenPrice=High[1]+10*Point;
  double Profit=OpenPrice+profit*Point;
  double Stop=OpenPrice-stop*Point;
  OrderSend(Symbol(),OP_BUYSTOP,0.1,OpenPrice,3,Stop,Profit,"My order #",16384,0,Green);
  okbuy=1;
  }
  
      if(VLT<value && oksell==0)
  {
   OpenPrice=Low[1]-10*Point;
   Profit=OpenPrice-profit*Point;
   Stop=OpenPrice+stop*Point;
  OrderSend(Symbol(),OP_SELLSTOP,0.1,OpenPrice,3,Stop,Profit,"My order #",16384,0,Green);
  oksell=1;
  }


 

  
value=100;
   return(0);
  }

Profitability Reports

NZD/USD Oct 2024 - Jan 2025
0.01
Total Trades 1778
Won Trades 9
Lost trades 1769
Win Rate 0.51 %
Expected payoff -0.99
Gross Profit 9.00
Gross Loss -1769.00
Total Net Profit -1760.00
-100%
-50%
0%
50%
100%
GBP/USD Oct 2024 - Jan 2025
0.02
Total Trades 892
Won Trades 20
Lost trades 872
Win Rate 2.24 %
Expected payoff -0.96
Gross Profit 20.00
Gross Loss -872.00
Total Net Profit -852.00
-100%
-50%
0%
50%
100%
GBP/CAD Oct 2024 - Jan 2025
0.00
Total Trades 386
Won Trades 0
Lost trades 0
Win Rate 0.00 %
Expected payoff -0.72
Gross Profit 0.00
Gross Loss -279.80
Total Net Profit -279.80
-100%
-50%
0%
50%
100%
AUD/USD Oct 2024 - Jan 2025
0.01
Total Trades 1513
Won Trades 0
Lost trades 0
Win Rate 0.00 %
Expected payoff -0.99
Gross Profit 8.00
Gross Loss -1505.00
Total Net Profit -1497.00
-100%
-50%
0%
50%
100%

Comments