Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 371
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Greetings to all forum members.
I do not know what to do nextPlease help me get the indicator to work with a specific symbol, regardless of which chart it is set to.
I know that an external parameter is used to change the symbol
I am attaching the indicator
Can you please tell me how to reset the buffer when a new bar appears, but so that the previous data is not erased, but displayed on the chart. For some reason I can't reset the buffer to zero and whena new barappears, new data is overlaid on the old accumulated data. What am I wrong in my code? Thanks for the clarification.
That's the way it is
any other solution to the problem? I would like to see it in the compile, but I wanted to have an easier solution.
It is necessary to write this parameter in calls Higest, Lowest - they are obsolete, better iHigest, iLowest and praised notorious Fisher immediately agreed to a draw (V.Vysotsky)
I have a question with the code, it turns out that the unclosed current one-hour candle has the Close time and until the candle closes, the indicator draws the price closure of the period the indicator stands on, the red area on the screen is not supposed to be drawn because the one-hour candle is not closed , that's the moment of compilation and then after compilation comes the drawing of each closed candlestick, of course you can solve another way by finding the hour bars but I wanted an easier way, I wrote earlier so
Is there another solution to the problem? Thank you.
If I understand you correctly, you want to mark the hourly Close on the chart?
// (только для TF меньше часа) для всех свечей внутри часа поставить HourCloseBuff=цена закрытия часа
// предполагается что close индексирован как тайм-серия
for(int back=i+1;back<=limit && TimeHour(time[back]==TimeHour(time[i+1]);back++) {
HourCloseBuff[back]=close[i+1];
}
We should write this parameter into the Higest, Lowest calls - they are obsolete, better iHigest, iLowest and the praised notorious Fischer immediately agreed to a draw (V.Vysotsky)
High and Low use the current symbol.
If I understand you correctly, you want to mark the hourly Close on the chart?
// (только для TF меньше часа) для всех свечей внутри часа поставить HourCloseBuff=цена закрытия часа
// предполагается что close индексирован как тайм-серия
for(int back=i+1;back<=limit && TimeHour(time[back]==TimeHour(time[i+1]);back++) {
HourCloseBuff[back]=close[i+1];
}
Maxim, good day! Thanks for the variant, mine is almost the same, it also works, butAlekseu Fedotov suggested it and I wrote that there is an idea of how to correct it?
Can you please tell me how to reset the buffer when a new bar appears, but so that the previous data is not erased and is displayed on the chart. For some reason I can't reset the buffer to zero and whena new barappears, new data is overlaid on the old accumulated data. What am I wrong in my code? Thanks for the clarification.
Can no one help me?
Good day to you all! How do I switch to the right chart window?
I have many windows of different pairs open, each with an EA, a trade signal appears, but the currencies are up to the motherfucker, and I need to quickly activate the exact chart on which the signal came.
I know Symbol() command, but I don't know how to activate window with a specified currency pair. Maybe, who has faced with this task?