I have an indicator which has been adapted and requires two final tweaks :-
1. Maxbars
The indicator requires a working MaxBars function to limit the number of bars drawn on the chart. i.e. MaxBars=
The current version has a problem that needs to be resolved. If you leave the indicator running for a number of bars and then refresh it by changing to another timeframe and then back to the original timeframe the data appears to change although it is not a repainting indicator. After the refresh the data calculation is correct and it appears to be to do with the way the indicator refreshes and finalises the live bar. I suspect the existing Maxbars code is faulty and may be the cause.
I need you to ensure that the indicator correctly calculates the latest bar on each new tick and at the end of the bar so that it plots correctly first time and does not need refreshing or change after a change of timeframe.
2. Row Labels
Each of the 4 rows requires a label to be placed to the right of the most recent cell. The text for each labels comes from user inputs Label1, Label2, Label3 & Label4. The user should be able to change the spacing to the right where the label is drawn and the colour/font and size.
Label1 = (User enters label text)
Label2= (User enters label text)
Label3= (User enters label text)
Label4= (User enters label text)
LabelSpacing = 8 (User can define how far to the right the label appears.
Font =
Colour=
Size=
Finally - I wish to add multiple instances of the same indicator to a chart. Please can you advise whether any changes are required to ensure there are no conflicts between the multiple copies. This would be similar to the Instance ID code used when an indicator draws objects but as no objects are being drawn I am unsure whether it is an issue.
Also by taking on this project you agree to annotate the code so I can see where changes have been made.
Please advise how soon you are able to start. Thank you for taking the time to consider this small project.