Indicators: Second Bars

 

Second Bars:

The indicator draws an arbitrary second timeframe on the chart.

Second Bars

Author: Aleksandr Slavskii

 
Hi. Thank you, but how can I make it not replace the open chart, but be for example in the indicator window below?
 
aaaaaaa1a open chart, but be, for example, in the indicator window below?

Only this way, alt + D, no other way.

 
How do I download it?
 
Денис #:
How to download it ?
There is a link in the title post:
Second Bars
Second Bars
Second Bars
  • 2024.04.01
  • www.mql5.com
Индикатор рисует на графике произвольный секундный таймфрейм.
 
An excellent indicator. Occasionally, a non-market spike appears. The AI (Claude, not the built-in one :) ) suggests correcting the line“for(int j = MathMin( size, rates_total) - 1; j >= 0; j--) // let’s shift all the arrays back by 1 index” – change -1 to -2
 
Viktor Gukov MathMin( size, rates_total) - 1; j >= 0; j--) // let’s shift all the arrays back by 1 index” – change -1 to -2

Well then, the AI suggested it – did you do it? If you did, please let me know whether it helped get rid of the spikes or not.

I’ve never used this indicator; I wrote it simply because it was interesting. It’s easier to work with user-defined symbols, as you can plot a chart and test it in the simulator.

By the way, these aren’t market spikes, are they? They only ever go down on this indicator, don’t they?

 
Aleksandr Slavskii #:

Right then, the AI suggested it – did you give it a go? If you did, please let us know whether it helped get rid of the pins or not.

I’ve never actually used this indicator; I wrote it simply because I thought it was interesting. It’s easier to work with user-defined symbols on a one-second timeframe – you can plot a chart there and test it in the simulator.

By the way, those aren’t market spikes, are they? They only ever go down on this indicator, don’t they?

I’ve done that, but unfortunately it didn’t help. The problem is most likely down to ‘broken’ ticks, which MT filters out when plotting charts, but which the indicator doesn’t filter out. I’ll try to fix it. If I manage it, I’ll let you know.“It’s easier to work with seconds using custom symbols; you can plot a chart there and test it in the simulator” – what does that mean? If it’s not too much trouble, could you explain?
Files:
XAUUSDM5.png  18 kb
 
Viktor Gukov #:
I’ve tried it, but unfortunately it didn’t help. The problem is most likely down to ‘corrupted’ ticks, which MT filters out when plotting charts, but which aren’t filtered out in the indicator. I’ll try to fix it. If I manage it, I’ll let you know.“It’s easier to work with seconds using custom symbols; you can plot a chart there and test it in the simulator” – what’s that about? If it’s not too much trouble, could you explain?
I gave you a detailed reply, but the moderator deleted it. I can’t be bothered to type all that out again. Sorry.