template <typename T>
T Func()
{
T Res;
return(Res);
}
template <typename T>
void Func( T& Value )
{
T Res = (MqlTick)Value;
}
voidOnStart()
{
Func<string>(); // без этой строки компилируетсяMqlTick Tick;
Func(Tick);
}
Hi all, I'm a newbie! Can you please advise whether it is possible in mql4/5 to display a large text (100-200 words) in the object description on a chart (trend line/level)? I want to keep a diary.
Dear developers, how do you get rid of Warnings in this situation?
template <typename T>
T GetValue()
{
T Res; // possible use of uninitialized variable 'Res'return(Res);
}
voidOnStart()
{
MqlTick Tick = GetValue<MqlTick>();
int i = GetValue<int>();
}
How can I get the number of the current pass in the same form as it is displayed in the optimizer results tab, for example, "27, 366" or "18, 442" written in the first column in MQL5, for example? The FrameNext function allows you to get the pass number as ulong. How to get from this number what is displayed to the user? I need to display information by passageways in a special report, and keep the same designation of passageways as in the terminal.
What happened to IndicatorDelete() in MQL5? The compiler doesn't recognize it.
It never was. You are confused with IndicatorRelease
It never was. You are confused with IndicatorRelease.
The compiler tries for some reason to create
It is clear that the code is incorrect, but why this particular error?
We will check everything in detail on Monday.
I can't answer right now without tests.
How can I get the number of the current pass in the same form as it is displayed in the optimizer results tab, for example, "27, 366" or "18, 442" written in the first column in MQL5, for example? The FrameNext function allows you to get the pass number as ulong. How to get from this number what is displayed to the user? I need to display information by passageways in a special report, and keep the same designation of passageways as in the terminal.
Forum on trading, automated trading systems and strategy testing
Do I need global terminal variables of type string?
fxsaber, 2017.04.10 18:25