Hello, could you please tell me if it is possible to use the values in the report generated when testing strategies in the script. For example, the profit that is displayed in the report tab.
For 3-5 min you can also store it in variables. you can count each minute as an average of the max-min, and then store it in a remeasured average of 1min or in an array.
T-G: For 3-5 min you can also do it in variables. count each minute as an average of the max-min, and then store it in an over-measured average of 1min or in an array.
This has been around for a long time. And it was on the forum
#property indicator_chart_window // Индик. рисуется в основном окне#property indicator_buffers 1// Количество буферов#property indicator_color1 Blue // Цвет первой линииdouble Buf_0[]; // Открытие индикаторных массивов//--------------------------------------------------------------------int init() // Специальная функция init()
{
//--------------------------------------------------------------------SetIndexBuffer(0,Buf_0); // Назначение массива буферуSetIndexStyle (0,DRAW_LINE,STYLE_SOLID,2);// Стиль линии//--------------------------------------------------------------------return; // Выход из спец. ф-ии init()
}
//--------------------------------------------------------------------int start() // Специальная функция start()
{
int i, // Индекс бара
Counted_bars; // Количество просчитанных баров double Arr_1[9999], temp_A;
//--------------------------------------------------------------------
Counted_bars=IndicatorCounted(); // Количество просчитанных баров
i=Bars-Counted_bars-1; // Индекс первого непосчитанногоwhile(i>=0) // Цикл по непосчитанным барам
{
Buf_0[i]=High[i]; // Значение 0 буфера на i-ом баре
Arr_1[i]=Close[i]-Open[i];
Alert(Arr_1[i]);
i--; // Расчёт индекса следующего бара
}
ArraySort(Arr_1,WHOLE_ARRAY,0,MODE_DESCEND);
temp_A=Arr_1[0];
Comment(DoubleToStr("temp_A",8)," - ", Counted_bars);
//--------------------------------------------------------------------return; // Выход из спец. ф-ии start()
}
//--------------------------------------------------------------------
Why does temp_A in Comment() output as 0.00000000, but Alert(Arr_1[i]) in the loop outputs as it should ?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Here, I think I've done everything as it should be.
и
Pro help.
Need a function to calculate the average spread, e.g. 1 minute ago, 3 minutes ago and 5 minutes ago. thanks.
Pro help.
Need a function to calculate the average spread, e.g. 1 minute ago, 3 minutes ago and 5 minutes ago. thanks.
In order to count it, it needs to be stored as well.
In order to count it, it must also be stored.
For 3-5 min you can also do it in variables. count each minute as an average of the max-min, and then store it in an over-measured average of 1min or in an array.
This has been around for a long time. And it was on the forum
It's been around for a long time. It's been on the forum too.
Good afternoon.
A word of advice to a newbie.
There is such a script:
Why does temp_A in Comment() output as 0.00000000, but Alert(Arr_1[i]) in the loop outputs as it should ?
How do I programmatically request a schedule download/update?