Конвертация 7 функций из кода C++ в MQL5

MQL5 Diğer Dönüştürme C++

İş Gereklilikleri

Необходимо конвертировать функции из кода C++ по этой ссылке в MQL5.

Список функций:

THolder<IBinarizer> MakeBinarizer(const EBorderSelectionType type) {
switch (type) {
case EBorderSelectionType::UniformAndQuantiles:
return MakeHolder<TMedianPlusUniformBinarizer>();
case EBorderSelectionType::GreedyLogSum:
return MakeHolder<TGreedyBinarizer<EPenaltyType::MaxSumLog>>();
case EBorderSelectionType::GreedyMinEntropy:
return MakeHolder<TGreedyBinarizer<EPenaltyType::MinEntropy>>();
case EBorderSelectionType::MaxLogSum:
return MakeHolder<TExactBinarizer<EPenaltyType::MaxSumLog>>();
case EBorderSelectionType::MinEntropy:
return MakeHolder<TExactBinarizer<EPenaltyType::MinEntropy>>();
case EBorderSelectionType::Median:
return MakeHolder<TMedianBinarizer>();
case EBorderSelectionType::Uniform:
return MakeHolder<TUniformBinarizer>();
}

Описание методов можно посмотреть по ссылке.

Результатом работы должны быть такая функция

Mode How splits are chosen
Median Include an approximately equal number of objects in every bucket.
Uniform Generate splits by dividing the [min_feature_value, max_feature_value] segment into subsegments of equal length. Absolute values of the feature are used in this case.
UniformAndQuantiles Combine the splits obtained in the following modes, after first halving the quantization size provided by the starting parameters for each of them:
- Median.
- Uniform.
MaxLogSum Maximize the value of the following expression inside each bucket:
∑ i = 1 n log ⁡ ( w e i g h t ) , w h e r e \sum\limits_{i=1}^{n}\log(weight){ , where} i=1nlog(weight),where
- n n n — The number of distinct objects in the bucket.
- w e i g h t weight weight — The number of times an object in the bucket is repeated.
MinEntropy Minimize the value of the following expression inside each bucket:
∑ i = 1 n w e i g h t ⋅ l o g ( w e i g h t ) , < b r / > w h e r e \sum \limits_{i=1}^{n} weight \cdot log (weight) { ,<br/> where} i=1nweightlog(weight)where
- n n n — The number of distinct objects in the bucket.
- w e i g h t weight weight — The number of times an object in the bucket is repeated.
GreedyLogSum Maximize the greedy approximation of the following expression inside every bucket:
∑ i = 1 n log ⁡ ( w e i g h t ) , w h e r e \sum\limits_{i=1}^{n}\log(weight){ , where} i=1nlog(weight),where
- n n n — The number of distinct objects in the bucket.
- w e i g h t weight weight — The number of times an object in the bucket is repeated.
void Quant (int Type_Quant,int N, double &arr_In[],float &arr_Out[])
{
}


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(50)
Projeler
94
29%
Arabuluculuk
4
25% / 0%
Süresi dolmuş
4
4%
Çalışıyor
2
Geliştirici 2
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Benzer siparişler
Разработка коннектора между TradingView и MetaTrader 5 с Telegram-ботом управления 1. Введение Требуется разработка коннектора между TradingView и несколькими терминалами MetaTrader 5 (MT5), который будет принимать сигналы через Webhook, фильтровать их, распределять между несколькими терминалами MT5 и управлять ими через Telegram-бот. 2. Функциональные требования 2.1. Прием и обработка сигналов Получение сигналов от
Написать советник, который работает с индикатором через функцию iCustom (формат и все данные есть), используя его алерты. Советник: Открывает BUY STOP при пробое сопротивления (ALERT_RESISTANCE_BROKEN) , SL, BE, TP. Открывает SELL STOP при пробое поддержки (ALERT_SUPPORT_BROKEN) , SL, BE, TP. ........ 8 алертов. Использует iCustom() для получения сигналов из индикатора. Параметры и список внешних переменных в

Proje bilgisi

Bütçe
50+ USD
Geliştirici için
45 USD