trrrrrrrrrr

Profit factor:
1.76

Okay, here's a breakdown of what the script appears to be doing, explained in plain language for someone who doesn't code.

The script is designed to automate trading based on time-of-day and, potentially, price channel indicators. Let's break down the process step-by-step:

  1. Configuration Settings: The script begins by establishing a few settings that control how it operates. Think of it like setting the knobs and dials on a trading machine. These include:

    • PriceChannel_ChannelPeriod: This tells the script how many past time periods (likely candlesticks on a price chart) to consider when calculating the price channel. A larger number smooths the channel, while a smaller one makes it more sensitive to price fluctuations.
    • PriceChannel_Risk: This affects how tightly the price channel narrows or widens. It probably influences the sensitivity of the channel to price movement.
    • ������_��_�����_�����: This is probably the number of points (a small unit of price movement) to offset the stop-loss order from a calculated point.
    • TP: This likely refers to "Take Profit" and represents the number of points the script aims to gain on a trade before automatically closing it.
  2. Calculating Price Channel (Potentially Incomplete): The script attempts to retrieve price channel values from a custom indicator named "PriceChannel_Stop_v6." It's trying to get both the upper and lower boundaries (the "channel") from this indicator. The script then prints to the log.

    Note: There is an issue here because if the script can't get the price channels then it will not trade correctly, and the price channel calculations seem incomplete. Also, I do not know what time period the Price Channel indicator is being calculated on.

  3. Time-Based Trading Logic: The core of the script's logic is based on the time of day:

    • Evening Sell Order (at 23:45): If the current hour is 23 (11 PM) and the minute is after 45, and if there are no open orders, the script will attempt to place a "Sell" order. This essentially bets that the price of the traded asset will decrease.
    • Midnight Close Order (at 00:00): If the current hour is 0 (midnight), the script will attempt to close any existing open orders. It tries to close the oldest order. This closes all existing orders.

In essence, the script is designed to automatically sell near the end of the day (23:45) and close the order at midnight. The price channel parameters might be used for calculations of trade parameters, but the calculation logic is currently commented out.

Orders Execution
It automatically opens orders when conditions are reachedChecks for the total of open ordersIt Closes Orders by itself
10 Views
0 Downloads
0 Favorites
trrrrrrrrrr
extern string Ìåòêà1="-= Ïàðàìåòðû PriceChannel_Stop_v6 =-";
extern int PriceChannel_ChannelPeriod=26;   //Price Channel Period
extern double PriceChannel_Risk=0.1;      //channel narrowing factor (0...0,5)  
extern string Ìåòêà2="-= Ïàðàìåòðû ñàìîãî ýêñïåðòà =-";
extern int Îòñòóï_îò_òî÷êè_ñòîïà=20;
extern int TP=200;

double PCSU,PCSD,PCst;
int cbar=0;
int start()
{ 
 RefreshRates();
/* PCSU=iCustom(Symbol(),PERIOD_M15,"PriceChannel_Stop_v6",PriceChannel_ChannelPeriod, PriceChannel_Risk, 1, 0, 0, 0, 1000, 0, 1);
 if (PCSU==0) PCSU=iCustom(Symbol(),PERIOD_M15,"PriceChannel_Stop_v6",PriceChannel_ChannelPeriod, PriceChannel_Risk, 1, 0, 0, 0, 1000, 2, 1);
 PCSD=iCustom(Symbol(),PERIOD_M15,"PriceChannel_Stop_v6",PriceChannel_ChannelPeriod, PriceChannel_Risk, 1, 0, 0, 0, 1000, 1, 1);
 if (PCSD==0) PCSD=iCustom(Symbol(),PERIOD_M15,"PriceChannel_Stop_v6",PriceChannel_ChannelPeriod, PriceChannel_Risk, 1, 0, 0, 0, 1000, 3, 1);
 Print(" Íèæíÿÿ=",PCSU," Âåðõíÿÿ=",PCSD);*/
 if (Hour()==23 && Minute()>45){
  Print("inter");
  if (OrdersTotal()<1) OrderSend(Symbol(),OP_SELL,0.1,Bid,2,0,0,"-",0,0,Yellow);}
 if (Hour()==0) 
  {
   OrderSelect(0,SELECT_BY_POS,MODE_TRADES);
   OrderClose(OrderTicket(),OrderLots(),Ask,2,Orange);
  }
}

Profitability Reports

USD/JPY Jul 2025 - Sep 2025
2.01
Total Trades 58
Won Trades 37
Lost trades 21
Win Rate 63.79 %
Expected payoff 1.75
Gross Profit 202.66
Gross Loss -100.96
Total Net Profit 101.70
-100%
-50%
0%
50%
100%
USD/CHF Jul 2025 - Sep 2025
5.63
Total Trades 58
Won Trades 38
Lost trades 20
Win Rate 65.52 %
Expected payoff 3.87
Gross Profit 272.73
Gross Loss -48.47
Total Net Profit 224.26
-100%
-50%
0%
50%
100%
USD/CAD Jul 2025 - Sep 2025
0.75
Total Trades 58
Won Trades 20
Lost trades 38
Win Rate 34.48 %
Expected payoff -0.33
Gross Profit 58.32
Gross Loss -77.68
Total Net Profit -19.36
-100%
-50%
0%
50%
100%
NZD/USD Jul 2025 - Sep 2025
1.02
Total Trades 58
Won Trades 25
Lost trades 33
Win Rate 43.10 %
Expected payoff 0.02
Gross Profit 63.60
Gross Loss -62.20
Total Net Profit 1.40
-100%
-50%
0%
50%
100%
GBP/USD Jul 2025 - Sep 2025
2.97
Total Trades 58
Won Trades 28
Lost trades 30
Win Rate 48.28 %
Expected payoff 1.79
Gross Profit 156.70
Gross Loss -52.80
Total Net Profit 103.90
-100%
-50%
0%
50%
100%
GBP/CAD Jul 2025 - Sep 2025
2.08
Total Trades 58
Won Trades 31
Lost trades 27
Win Rate 53.45 %
Expected payoff 2.01
Gross Profit 223.66
Gross Loss -107.29
Total Net Profit 116.37
-100%
-50%
0%
50%
100%
GBP/AUD Jul 2025 - Sep 2025
1.51
Total Trades 57
Won Trades 38
Lost trades 19
Win Rate 66.67 %
Expected payoff 1.59
Gross Profit 267.67
Gross Loss -177.22
Total Net Profit 90.45
-100%
-50%
0%
50%
100%
EUR/USD Jul 2025 - Sep 2025
0.00
Total Trades 7
Won Trades 2
Lost trades 5
Win Rate 28.57 %
Expected payoff -15065.66
Gross Profit 2.50
Gross Loss -105462.10
Total Net Profit -105459.60
-100%
-50%
0%
50%
100%
AUD/USD Jul 2025 - Sep 2025
1.00
Total Trades 58
Won Trades 28
Lost trades 30
Win Rate 48.28 %
Expected payoff -0.01
Gross Profit 66.20
Gross Loss -66.50
Total Net Profit -0.30
-100%
-50%
0%
50%
100%
USD/JPY Jan 2025 - Jul 2025
2.50
Total Trades 128
Won Trades 76
Lost trades 52
Win Rate 59.38 %
Expected payoff 2.57
Gross Profit 549.89
Gross Loss -220.34
Total Net Profit 329.55
-100%
-50%
0%
50%
100%

Comments