Language

This page is an English translation of the Hungarian content. Charts, videos, code and downloadable source documents retain their original language. Original Hungarian text →

AI & TŐZSDE / MARKET TOOLS

Stock chart

Choose a company; the daily chart loads automatically.

CHART / DAILY VIEW

Which company shall we look at?

TradingView · D1
Open full view ↗

The chart loads automatically. Search for another instrument in the top left corner of the chart.

Connecting to TradingView…

Is the chart still blank? Use the full-view button to open it separately. TradingView identifies the price source and any delay; the external chart interface is in English.

An annotated educational example of the moving average and both channel edges.An annotated educational example of the moving average and both channel edges.An annotated educational example of the moving average and both channel edges.

MA CHANNEL OPTIMIZER / ILLUSTRATED GUIDE

What does the indicator show?

Centre line, channel edges and price position: an annotated example and a detailed explanation for sound interpretation.

How the indicator works →
Use your custom indicator in TradingView

MA Channel Optimizer

Set up your custom channel indicator in the full TradingView Pine Editor. The free website embed does not run custom Pine code.

  1. Copy the code and open the full TradingView chart.
  2. In Pine Editor, create a new indicator, paste the full code, then select Save and Add to chart.
  3. For a daily view, select the 1D timeframe. The original period is 50; set it to 95 for MA95.

Compilation in TradingView has not yet been verified; the file is currently a port awaiting verification.

View source code

By default, it uses closed candles. The channel is refitted to the latest window, so its past lines can also change; it cannot be used for a backtest that assumes unchanged historical signals. Different price sources can produce different results.

Investor decision centre

How is this calculated?

What does it show?

Data, changes and classifications of the indicators above. The rules below explain how this view operates.

Formula and rule

distance=pivot−MA(pivot); tolerance=0.20×SMA(TR,14); max(distance)−min(distance)≤2×tolerance; offset=mean(selected distances); channel=MA+offset

Inputs and notation

The downloadable TradingView version fits a channel to the latest window. Defaults are SMA50, 300 bars, pivots with 5 bars on each side, and at least 3 touches. Here ATR is a simple average of 14 True Ranges, not Wilder smoothing. The mean of the sorted distance window containing the most pivots gives the offset; ties retain the first, smaller offset. Tolerance and minimum touches are user parameters. Not every selected point must fall within mean offset ±tolerance. New data can refit historical lines; this is not a historical backtest. The embedded chart uses the external provider’s own data and method.

Data and original source

Hypothetical inputs entered in the fields; original methodological sources are in the page source list.

Detailed explanation and sources on this page

Horizon, observation date and refresh

The horizon, cutoff and parameters on the original page apply. This description or historical example does not automatically update with later market data. An external chart’s own observation date is read separately.

Units

Field and result labels specify units. Percentage inputs use a scale of one hundred; /100 converts them to a fraction. A percentage-point difference × 100 gives basis points. Monetary amounts use the same currency and scale.

Fixed illustrative example

Illustrative numerical example; not current market data.

TR mean=10 ⇒ tolerance=2; distances=[5,6,8] ⇒ width=3≤4; offset=19/3≈6.3333

Interpretation and limitations

Observed data and editorial interpretation must be read separately. A classification follows the stated conditions; it does not by itself establish causality or future price direction. Further limitations in the original methodology also apply.

Missing and revised data

An empty or invalid input has no valid result; missing data must not be replaced with zero. A ratio is undefined when its denominator is invalid. The example does not update from market releases or overwrite historical snapshots.

Full calculation index →