- Painting Bars on Bar Charts
- TheRumpledOne is now coding FREE indicators for MT4
- Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
Is there anyone who could provide their coding skills as mine are pretty limited, I've got as far as it opening at the open of a new bar, but it is not keeping the down ticks red bar, it keeps disappearing, It would be very much appreciated, thankyou.
I would like this histogram at the bottom here to be painted in the chart window as a kind of bar chart, without the actual OHLC bars visible so they dont interfere with the tick bars, and have them start at the open of a new bar, I hope I have made it clear enough, and thankyou again in advance for any help.
I would like this histogram at the bottom here to be painted in the chart window as a kind of bar chart,
Hi Raptor, TickCount seperates the up ticks and the down ticks on the bid price and displays them on the histogram. What I would like is to have it displayed as a bar chart in the chart window. The ticks obviously start at 0, so when its in the chart window it starts counting from 0 and goes up in increments of 1. I have fiddled around with the code and managed to anchor the start of the tick bars to the bid price, but I cant seem to get it to go up in increments of a smaller size and also, because it is anchored to the bid each increment starts from the current bid price and doesnt stay at the open price of the new bar like it does at 0 on the histogram. I fear what I have just said is as clear as mud. Im hoping it is possible to code and as I said before I am willing to pay for it. I hope that answers any questions you have and if it is at all possible, Thankyou for your reply.
MW
I compiled your indicator and understand more about what you want now . . . anchoring the bars at the current bar open is easy . . the scaling is more problematic. If you start the Indicator when the bars are small and the the bars get bigger the Tick Bars will be too big and visa versa. They could be dynamically re-scaled but that would reduce accuracy as the older bars (those bars already drawn) were re-scaled more and more.
Thanks for your help Raptor, Could you make the increments of the tick bars 1 tenth of a pip like OHLC bars, I dont care what the actual price is cause I dont need it for what I want to test. I know what I want it to look like, just having a hard time conveying it to you :-)
Thanks for your help Raptor, Could you make the increments of the tick bars 1 tenth of a pip like OHLC bars, I dont care what the actual price is cause I dont need it for what I want to test. I know what I want it to look like, just having a hard time conveying it to you :-)
Of course you can, that isn't difficult, but if the scaling is too small you won't see much and if it's too big the bars will be off the chart.
Could you have a crack at it ? I would appreciate it so much.
Could you have a crack at it ? I would appreciate it so much.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use