Candlestick Plot MTF

Plots the live non-repainting candles for a higher time interval than the chart interval.


  • Configuration of the look and feel of the MTF candles.
  • Live candles update as the price action evolves for the session.
  • Historical candles can be toggled on/off.
  • Includes a moving average ribbon that is also MTF, matching the interval chosen.

Please watch this video to understand more:

Release Notes:
  • Improved gap logic.
Release Notes:
  • Added Heikin Ashi Candles.
Release Notes:
  • Fixed issues with heikin ashi plot.
Remove from Favorite Scripts Add to Favorite Scripts


Truly original work—and very gracious of you to make source available. Congrats on both.
+3 Reply
@LucF, idem
Very good job mate and even open-sourced you are a legend.
+2 Reply
mortdiggiddy QuantTherapy
@QuantTherapy, ty, updates added
+1 Reply
Thanks you truly rock. One question on the mt4 m candle indicator it has the range of the higher TF candle posted. Is there anyway to add the range in pips that the higher TF candle is ? Thanks for checking
+1 Reply
mortdiggiddy Eddie7232
@Eddie7232, sure
Eddie7232 mortdiggiddy
@mortdiggiddy, awesome. Thanks glad to find ya, really are one of the real ones out there
Great script!!! Very nicely done! Gr, JD.
+1 Reply
thank you so much
Hello, can you tell me how to fix the issue for 5 minute candle ? after update i think this suddenly occured. error message occurs 5 minute or younger candle . errow shows PINE CANNOT DETERMINE THE REFERENCING LENGH OF SERIES. TRY USING MAX_BARS_BACK IN THE STUDY OR STRATEGY FUNCTION . is there anyway you can tell me how to fix this ? i really like your script for five , 3, 1 min chart
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out