Hi all,
I started this thread as a place to post my indicators, or indicators that someone else made and I improved, (and mainly) to post bug fixes/ improvements to the ones I've shared. When I shared my improvements to m-candles, I mentioned that there might need to be a correction later for the quarterly and yearly candles, since I hadn't had it a whole year, and hadn't been able to check. This is a fix that correcs how the yearly and quarterly candles are shown. (There was, indeed a bug with calculation of the mid for the previous years and with the display of the quarterly candles when the current quarter is Q1. There might still be a bug with the display of the quarterly candles when the current quarter is Q2, but I think I've had it since Q2 of the previous year, so I hope not)
Anyway here is the fix. Yearly candles are timeframe -2 for the TFbar setting on the monthly and quarterly candles are -1 on the monthly, and they only work on the monthly chart.
The indie also shows other higher tf candles on lower tf charts, with mids and quarters if desired. You can set the tfBar param either in absolute terms or relative terms (i.e 60 will show hourly candles on a 30 chart and a 15 min chart , and -1 - one timeframe up - will show hourly candles on a 30 minute chart and 15 minute candles on a 5 minute chart). You can also have multiple instances of the indicator on the same chart.
The screenshot is quarterly candles superimposed on yearly (by adding the indie twice to the chart, once with tf -2 and once with tf -1).
I started this thread as a place to post my indicators, or indicators that someone else made and I improved, (and mainly) to post bug fixes/ improvements to the ones I've shared. When I shared my improvements to m-candles, I mentioned that there might need to be a correction later for the quarterly and yearly candles, since I hadn't had it a whole year, and hadn't been able to check. This is a fix that correcs how the yearly and quarterly candles are shown. (There was, indeed a bug with calculation of the mid for the previous years and with the display of the quarterly candles when the current quarter is Q1. There might still be a bug with the display of the quarterly candles when the current quarter is Q2, but I think I've had it since Q2 of the previous year, so I hope not)
Anyway here is the fix. Yearly candles are timeframe -2 for the TFbar setting on the monthly and quarterly candles are -1 on the monthly, and they only work on the monthly chart.
The indie also shows other higher tf candles on lower tf charts, with mids and quarters if desired. You can set the tfBar param either in absolute terms or relative terms (i.e 60 will show hourly candles on a 30 chart and a 15 min chart , and -1 - one timeframe up - will show hourly candles on a 30 minute chart and 15 minute candles on a 5 minute chart). You can also have multiple instances of the indicator on the same chart.
The screenshot is quarterly candles superimposed on yearly (by adding the indie twice to the chart, once with tf -2 and once with tf -1).
Attached File(s)
m-CandleswithYearlyv19.mq4
35 KB
|
510 downloads
m-CandleswithYearlyv19.ex4
48 KB
|
402 downloads