trrrrrrrrrr

Profit factor:
1.43

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
6 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/CHF Jan 2025 - Jul 2025
4.15
Total Trades 127
Won Trades 94
Lost trades 33
Win Rate 74.02 %
Expected payoff 4.27
Gross Profit 714.90
Gross Loss -172.38
Total Net Profit 542.52
-100%
-50%
0%
50%
100%
USD/CAD Jan 2025 - Jul 2025
0.90
Total Trades 128
Won Trades 70
Lost trades 58
Win Rate 54.69 %
Expected payoff -0.28
Gross Profit 330.79
Gross Loss -366.70
Total Net Profit -35.91
-100%
-50%
0%
50%
100%
NZD/USD Jan 2025 - Jul 2025
1.04
Total Trades 127
Won Trades 51
Lost trades 76
Win Rate 40.16 %
Expected payoff 0.10
Gross Profit 283.10
Gross Loss -271.00
Total Net Profit 12.10
-100%
-50%
0%
50%
100%
GBP/USD Jan 2025 - Jul 2025
2.84
Total Trades 127
Won Trades 65
Lost trades 62
Win Rate 51.18 %
Expected payoff 3.12
Gross Profit 613.00
Gross Loss -216.20
Total Net Profit 396.80
-100%
-50%
0%
50%
100%
GBP/CAD Jan 2025 - Jul 2025
1.14
Total Trades 128
Won Trades 60
Lost trades 68
Win Rate 46.88 %
Expected payoff 0.48
Gross Profit 516.60
Gross Loss -455.14
Total Net Profit 61.46
-100%
-50%
0%
50%
100%
GBP/AUD Jan 2025 - Jul 2025
2.77
Total Trades 127
Won Trades 84
Lost trades 43
Win Rate 66.14 %
Expected payoff 3.56
Gross Profit 708.28
Gross Loss -255.68
Total Net Profit 452.60
-100%
-50%
0%
50%
100%
EUR/USD Jan 2025 - Jul 2025
0.00
Total Trades 45
Won Trades 15
Lost trades 30
Win Rate 33.33 %
Expected payoff -2155.72
Gross Profit 217.40
Gross Loss -97224.60
Total Net Profit -97007.20
-100%
-50%
0%
50%
100%
AUD/USD Jan 2025 - Jul 2025
1.72
Total Trades 127
Won Trades 63
Lost trades 64
Win Rate 49.61 %
Expected payoff 1.20
Gross Profit 361.20
Gross Loss -209.40
Total Net Profit 151.80
-100%
-50%
0%
50%
100%
USD/CAD Oct 2024 - Jan 2025
2.72
Total Trades 65
Won Trades 35
Lost trades 30
Win Rate 53.85 %
Expected payoff 1.26
Gross Profit 129.55
Gross Loss -47.61
Total Net Profit 81.94
-100%
-50%
0%
50%
100%
NZD/USD Oct 2024 - Jan 2025
0.65
Total Trades 65
Won Trades 19
Lost trades 46
Win Rate 29.23 %
Expected payoff -0.87
Gross Profit 105.10
Gross Loss -161.90
Total Net Profit -56.80
-100%
-50%
0%
50%
100%

Comments