This one is based on "Generic 8x MA Plotter" indicator, by @LazyBear.
It will plot three Moving Averages based on current time interval and seven based on chosen periods by hour, day, week and month. You will be able to see where is, for example, a 50 days SMA when using a 5 minutes time interval chart. I find it very useful to analyze, in a snap, possible price...
today I was browsing through intraday Charts looking at some moving averages. Basically what I wanted to see was whether the currency pair was trading below or above the moving average of the day/week/month. For a better understanding: The daily MA on a 15 minute Forex Chart would be the 96 MA.
I encountered the problem that i always had to change the...
It turned out not to be that easy to plot the close of the previous week in hourly or daily charts. In my first experiments things went wrong on Friday or intraday if you simply use the security function. So here is the thing with an algorithm that guaranties the correct value.
This indicator will allow you to compare Daily bars with Intraday insight.
Indicator draws the sum of high-low intraday bars on EOD timeframe.
The purpose is to compare TR or ATR with intraday data, because high-low on 1 daily bar says little about intraday bars inside.
You can replace the function (cum(high - low)) with whatever you need to calculate on intraday bars.
I am still learning pinescript, and part of this was created using the Pine Script language reference manual. This includes looking at the time series, a fixed length, and the default intraday_loss variables. This also includes the basic fixed lengths for an swma (Symmetrically weighted moving average) and the script to start creating a strategy. All in all this...