In the examples with CopyBuffer(...) it's written that thearray indexing order should be set as in MQL4 usingArraySetAsSeries(..., true) . Could you tell me, is it necessary to perform the same array indexing for CopyHigh(...), CopyLow(...) and the like?
In the examples with CopyBuffer(...) it's written that thearray indexing order should be set as in MQL4 usingArraySetAsSeries(..., true) . Could you tell me, is it necessary to perform the same array indexing for CopyHigh(...), CopyLow(...) and the like?
As far as I remember, yes. If memory serves me correctly I did it once at initialization.
voidOnStart()
{ string no = "NewChart";
ObjectCreate(0, no, OBJ_CHART,0,0,0);
ObjectSetInteger(0, no, OBJPROP_CORNER, 0);
ObjectSetInteger(0, no, OBJPROP_XDISTANCE, 0);
ObjectSetInteger(0, no, OBJPROP_YDISTANCE, 0);
ObjectSetInteger(0, no, OBJPROP_XSIZE, 500);
ObjectSetInteger(0, no, OBJPROP_YSIZE, 200);
ObjectSetInteger(0, no, OBJPROP_PERIOD, PERIOD_H8);
ObjectSetString(0, no, OBJPROP_SYMBOL, "GBPUSD");
//--- переменные для идентификаторов графиковlong currChart,prevChart=ChartFirst();
int i=0,limit=100;
Print("ChartFirst = ",ChartSymbol(prevChart)," ID = ",prevChart);
while(i<limit)// у нас наверняка не больше 100 открытых графиков
{
currChart=ChartNext(prevChart); // на основании предыдущего получим новый графикif(currChart<0) break; // достигли конца списка графиковPrint(i,ChartSymbol(currChart)," ID =",currChart);
prevChart=currChart;// запомним идентификатор текущего графика для ChartNext()
i++;// не забудем увеличить счетчик
}
Print(prevChart);
int handle_ind_h8 =iMACD(ChartSymbol(prevChart),ChartPeriod(prevChart),12,26,9,PRICE_CLOSE);
Print("Хендл=",handle_ind_h8);
bool f1 = ChartIndicatorAdd(prevChart,1, handle_ind_h8);
Print("Добавили?=",f1);
Print(GetLastError());ResetLastError();
}
What is meant by trades in the tester report (% of winners)? Are these trades or orders? When calculating the profitability factor, are trades or orders used?
What is meant by trades in the tester report (% of winners)? Are these trades or orders? When calculating the profitability factor, are trades or orders used?
Oh, eh! Long time hesitate to ask. Also when calculating MAE, MFE, etc.
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.
In the examples with CopyBuffer(...) it's written that the array indexing order should be set as in MQL4 usingArraySetAsSeries(..., true) . Could you tell me, is it necessary to perform the same array indexing for CopyHigh(...), CopyLow(...) and the like?
does not draw:(
I think the problem is with the ChartID.Does the CHART object have one of its own.And how to get it then.
In the examples with CopyBuffer(...) it's written that the array indexing order should be set as in MQL4 usingArraySetAsSeries(..., true) . Could you tell me, is it necessary to perform the same array indexing for CopyHigh(...), CopyLow(...) and the like?
via ObjectGetInteger
Thank you. It didn't come out last night.
Got it. Based on the documentation code.
What is meant by trades in the tester report (% of winners)? Are these trades or orders? When calculating the profitability factor, are trades or orders used?
What is meant by trades in the tester report (% of winners)? Are these trades or orders? When calculating the profitability factor, are trades or orders used?
Oh, eh! Long time hesitate to ask. Also when calculating MAE, MFE, etc.
Shouldn't our documentation department send unrealistic praise?
Try pressing F1.
Shouldn't our documentation department send an unrealistic message of respect?