Author: Yuriy Tokman
Profit factor:
0.38
Price Data Components
Series array that contains open prices of each barSeries array that contains the highest prices of each barSeries array that contains the lowest prices of each bar
Orders Execution
It automatically opens orders when conditions are reached
0 Views
0 Downloads
0 Favorites
TST
//+------------------------------------------------------------------+
//|                                                          TST.mq4 |
//|                                                     Yuriy Tokman |
//|                                            yuriytokman@gmail.com |
//+------------------------------------------------------------------+
#property copyright "Yuriy Tokman"
#property link      "yuriytokman@gmail.com"

extern int    StopLoss         = 500;           // Ðàçìåð ñòîïà â ïóíêòàõ
extern int    TakeProfit       = 100;           // Ðàçìåð òåéêà â ïóíêòàõ
extern double Lots             = 0.1;           // Ðàçìåð ëîòà

extern int timeframe           = 0;             // Âûáîð ÒÔ
extern int pips                = 500;           // Óñòàíîâëåííûé óðîâåíü îòêàòà
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
   double bid  = MarketInfo(Symbol(),MODE_BID);
   double open = iOpen(Symbol(),timeframe,0);
   double high = iHigh(Symbol(),timeframe,0);
   double low  = iLow(Symbol(),timeframe,0);
//----
   if(open-bid>0 && high-bid>pips*Point)
    {
     if(NevBar())
     OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Bid-StopLoss*Point,Ask+TakeProfit*Point,"TST",0,0,Green);
    }
   if(bid-open>0 && bid-low>pips*Point)
    {
     if(NevBar())      
     OrderSend(Symbol(),OP_SELL,Lots,Bid,3,Ask+StopLoss*Point,Bid-TakeProfit*Point,"TST",0,0,Red);
    }
//----
   return(0);
  }
//+----------------------------------------------------------------------------+
// Ôóíêöèÿ êîíòðîëÿ íîâîãî áàðà                                                |
//-----------------------------------------------------------------------------+
 bool NevBar()
  {
   static int PrevTime=0;
   if (PrevTime==Time[0]) return(false);
   PrevTime=Time[0];
   return(true);
  }

Profitability Reports

USD/CAD Oct 2024 - Jan 2025
0.29
Total Trades 10
Won Trades 6
Lost trades 4
Win Rate 60.00 %
Expected payoff -10.35
Gross Profit 42.63
Gross Loss -146.16
Total Net Profit -103.53
-100%
-50%
0%
50%
100%
NZD/USD Oct 2024 - Jan 2025
0.19
Total Trades 4
Won Trades 2
Lost trades 2
Win Rate 50.00 %
Expected payoff -20.85
Gross Profit 20.00
Gross Loss -103.40
Total Net Profit -83.40
-100%
-50%
0%
50%
100%
GBP/USD Oct 2024 - Jan 2025
0.75
Total Trades 29
Won Trades 23
Lost trades 6
Win Rate 79.31 %
Expected payoff -2.68
Gross Profit 230.00
Gross Loss -307.80
Total Net Profit -77.80
-100%
-50%
0%
50%
100%
AUD/USD Oct 2024 - Jan 2025
0.29
Total Trades 5
Won Trades 0
Lost trades 0
Win Rate 0.00 %
Expected payoff -14.68
Gross Profit 30.00
Gross Loss -103.40
Total Net Profit -73.40
-100%
-50%
0%
50%
100%

Comments