TradingView
forexpirate
Jul 24, 2016 1:27 PM

SMA for each time period 

BRITISH POUND / JAPANESE YENICE

Description

This script will plot a different SMA based on the time frame of the chart. I coded different SMAs for 1, 2, 15 mins, 1HR, and 1 Day. On the 1HR and 1Day time frame it plots a yellow SMA for the quarter of a year. I took the year to be 252 trading days per year and a quarter being 63 trading days.

* The blue and yellow bars are from two different scripts. The blue bars show when I am not available to trade. The yellow bars indicate Monday morning EST. I use them in considering trading ideas.
Comments
CompoundTraders
Hello
How would one change this for SMA 200 ? Could this work on 15 ad 30 second charts?
More