Balance Graph Dashboard
- 지표
- 버전: 1.0
- 활성화: 5
Key Features:📊 Interactive Visual Dashboard
· Symbol + Strategy: Combine both filters for granular analysis
🎨 Fully Customizable
· Font size controls for labels and metrics
🖱️Interactive
· Chart remains fully functional (mouse scroll enabled while not dragging)
INPUTS:
Here is every input explained in full detail:
thickness. Values between 1 and 2 (like 1.5) produce intermediate sizes. Going below 1 makes the canvas smaller than the base size, and going above 2makes it very large. Everything throughout, so nothing gets cut off or misaligned when you change this — it all resizes proportionally.
CurveType — this is the most important input. It controls which deals from your account history are included in the balance curve, P/L, win rate, drawdown, and all other metrics. Four options:
If you have trades on EURUSD, GBPUSD, gold, and indices all mixed together, they all count. This shows your overall account performance as a whole.
SYMBOL_ONLY — filters to only deals where DEAL_SYMBOL matches the symbol the indicator is currently attached to (_Symbol). So if you attach the indicator to a EURUSD chart, only everything else is ignored entirely. The magic number of the EA that placed the trade is irrelevant here; any EA's EURUSD trades count. Useful for evaluating how a particular instrument has performed across all strategies trading it.
of which symbol those trades were on. So if your EA uses magic number 101 and trades both EURUSD and GBPUSD, both show up. Trades from other EAs with different magic numbers are excluded even if they're on the same symbol. Useful for seeing the isolated performance of one specific EA across all the pairs it trades.
excluded. Useful when one EA trades multiple pairs and you want to isolate its performance on just one of them.
strtMagic_No — the magic number used as the filter value for STRATEGY_ONLY and SYMBOL_SPECIFIC_STRATEGY curve types. Has no effect at all when CurveType is PORTFOLIO or SYMBOL_ONLY. Set this to match the magic number your EA assigns to its orders via trade.SetExpertMagicNumber() or OrderSend(). Default is 101. If your EA uses a different magic number and you leave this at 101, those two filtered curve types will show an empty curve since no deals will match.
mode).
BalanceCurveFactor — controls how far back in time the history window starts. The exact formula in the code is: start = iTime(_Symbol, BalanceCurvePeriod, 0) - PeriodSeconds(BalanceCurvePeriod) * BalanceCurveFactor. Breaking that down: iTime(_Symbol, BalanceCurvePeriod, 0) is the open time of the current period's bar (e.g. the start of this month if BalanceCurvePeriod = PERIOD_MN1). PeriodSeconds(BalanceCurvePeriod) * BalanceCurveFactor subtracts that many period- Any negative value (default -1) — bypasses this formula entirely and calls HistorySelect(0, TimeCurrent()) instead, which means the entire available account history from the very beginning. This is the "show everything" mode. 0 — start is the open of the current period with no subtraction, so only deals from the current period onward are shown (e.g. this month only if on MN1). 1 — goes back one period before the current one (e.g. last month + this month). 3 on PERIOD_MN1 — shows the last 3 months. On PERIOD_W1 — last 3 weeks. On PERIOD_D1 — last 3 days. So BalanceCurvePeriod is the unit and BalanceCurveFactor is how many of those units to go back.
CanvasOpacity — controls the transparency of the canvas background and certain overlay elements. It's the alpha value passed to label box backgrounds on the High/Low markers, and the current-balance label box. Range is 0 (fully transparent, canvas invisible) to 255 (fully opaque, solid). Default is 200, which is slightly transparent — at this level you can faintly see the chart price bars behind the canvas if they're close to the canvas edge. Going lower makes the background more see-through; going to 255 makes it a solid opaque block.
line itself, passed directly as the width parameter to ExtCanvas.LineThick(). Nothing to do with fonts. Default is 5px. Higher values make the curve line thicker and more prominent; lower values make it thinner. At 1 it's a single- pixel line. Also applies to the start-balance dashed horizontal line.
TextFontSize — controls the font size of the four metric labels in the header band (P/L, Win Rate, so it stays proportional when you resize the canvas. Default is 30, which at CanvasFactor=1 renders as 30pt. The marker labels (current balance tag, High/Low tags) use their own hardcoded sizes scaled independently and are not affected by this input.
to render since the entire gradient fill loop is skipped entirely.
InpLineProfitColor — the color of the balance curve line and its gradient fill for any segment where the cumulative P/L is zero or above (i.e. dot, line, and label box border when the curve is in profit. Default is clrLime (bright green).
InpLineLossColor — the color of the balance curve line and gradient fill for any segment where the cumulative P/L is negative (below the zero start line). Also colors the current-balance marker, and the Low marker dot, line, and label box border when in drawdown. Default is clrCrimson (dark red). The curve can switch between these two colors mid-chart wherever the running P/L crosses zero in either direction.
InpBgColor — the fill color of the canvas background, applied via ExtCanvas.Erase() at the start of every redraw. Also used as the fill color inside the High/Low marker label boxes and the current-balance label box — this is what creates the "background behind the text" effect that makes the labels readable over the curve. Default is clrBlack.
InpTxtColor — the color used for the Win Rate drawdown (Max DD, Current DD) text labels in the header. The P/L text uses its own color logic (green or red based on whether P/L is positive or negative) so InpTxtColor doesn't apply to it.
InpBordLineColor — used in three places: the rectangular border drawn around the entire canvas perimeter, the filled header rectangle at the top of the canvas, and the anti-aliased outline rings on the current-balance marker circles (CircleAA() calls). Default is clrWhite. Changing this changes both the outer canvas frame and the marker ring outline simultaneously.
