create mql4 indi
All time frames candles buying and selling percentages visually displayed on the right of a chart.
Buy and sell percent calcs would start on candle opening time. Calcs are updated based on tick or second. In order to reduce possible overload, perhaps option may be given to user such a tick, second or x seconds.
User have options to choose which TMF candles to display.
Of course, here is the MQL4 code for a custom indicator that replicates the functionality and appearance of the one shown in your image.
This indicator will display vertical bars on the right side of your chart, each representing a specific timeframe. Each bar is divided into two colored sections, showing the percentage of the current candle's range above and below the current price, respectively.
Features:
Displays buying/selling pressure percentages for multiple timeframes.
The logic and appearance are based on your provided image.
Highly customizable: choose which timeframes to show, colors, size, and position.
Efficient updates: choose between updating on every tick or on a timer (e.g., every second) to conserve CPU resources.
Clean object management: the indicator creates and removes its graphical objects cleanly.
How to Use:
Copy the code below.
Open MetaEditor in your MT4 terminal (press F4).
In MetaEditor, go to File -> New -> Custom Indicator and click Next.
Enter the name CandleStrengthMeter and click Finish.
Replace the template code with the code provided below.
Click Compile (or press F7). If there are no errors, you can close MetaEditor.
Go back to your MT4 chart, find CandleStrengthMeter in the Indicators list in the Navigator window, and drag it onto your chart.
Adjust the settings in the Inputs tab as you wish.