0. File - New Chart
1. Add your 60min data series to the chart (shown as Panel 1)
2. Add the second data series for the same instrument (days to load for 2. must be >200 in order to print SMA-200 values later); shown as Panel 2
3. Add the SMA indicator to the chart
4. Modify SMA indicator properties to: Period: 200; Input: [your instrument] DAILY; Panel: 1
5. Switch COBC to false if you want the current 60min periods to show with SMA (COBC = true will end yesterday)
The result should e.g. look like the attachment for the YM.
P.S.: More sophisticated solutions need Ninjascript/C# coding ...
The following user says Thank You to choke35 for this post:
Make sure that you use a proper session template with a single session per day.
Then add the VisualSMA, set the "Bar Period" to 1440 and the "Period" to 200.
VisualSMA plotting a daily SMA(200): The SMA is calculated from the closing price (full session) of the last 200 business days for which the exchange was open.
SMA(200) applied to a daily chart: The SMA is calculated from the settlement prices (depends on the datafeed) of the last 200 business days for which a settlement price has been determined.
The difference between the two values can be explained as follows:
The VisualSMA(200) uses the last traded price and not the settlement price
The daily SMA(200) does not use the values from Independence Day, Labor Day and Thanksgiving (no settlement price available) and therefore takes an additional three days from June to finish with 200 values.
This explains that the value comes out a few points lower.
The following 5 users say Thank You to Fat Tails for this post: