Step Line Chart MT5
- Indicadores
- Nopphawin Inthaphong
- Versão: 1.0
Step Line Chart
I created this indicator because I couldn't find a built-in step line chart in MT5, and I was tired of switching back and forth to TradingView just to see one. This is my very first indicator, originally made for my own personal use, and I am sharing it for anyone who might have the same need.
What it does:
-
Transforms the standard MT5 Line Chart into a clean Step Line chart based on Close prices.
-
When attached, it automatically switches the chart mode to "Line Chart" and hides the default MT5 line.
-
If you switch back to Candlesticks or Bar charts, the step lines will automatically hide themselves to keep your chart clean.
-
The code is simple, lightweight, and very fast.
💡 Styling Tip:
-
Due to MT5 system limitations: If you want to use Dashed or Dotted line styles, you must set the line thickness (Width) to 1. If the width is set to 2 or more, the line will always appear as a Solid line.
Parameters:
-
InpMaxBars: Number of historical bars to display (Default: 3000).
-
InpStepColor: Customize your line color.
-
InpStepWidth: Adjust the thickness of the line.
-
InpStepStyle: Choose the line style (Solid, Dashed, Dotted, etc.).
