This version of the Guppy multiple moving average indicator is dynamic. Thanks to the different parameters that I have integrated, you can choose the first and the last period of moving averages that you want to draw on the graph.
The variable “periodstep” allows to choose the step between each period of moving average. For example, using a “minperiod” of 20 and a “maxperiod” of 100, with a step of 5, you will have (100-20) / 5 = 16 moving averages displayed.
The transparency of moving averages is adjustable with the variable “alpha”.
The colors of the MA are divided into 3: the shortest, the median periods and the longest periods, in order to better visualize the behavior of the market.
//PRC_PRC_Fishnet MA with step | indicator
//26.06.2018
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge
//--- settings
minperiod = 20
maxperiod = 200
stepperiod = 5
MAtype = 0
alpha = 50
//--- end of settings
segment = (maxperiod-minperiod)/3
r=255
g=81
b=38
for i = minperiod to maxperiod do
avg = average[i,MAtype](customclose)
if(i>segment) then
r=38
g=167
b=255
endif
if(i>segment*2) then
r=178
g=58
b=238
endif
drawtext(".",barindex,avg,Dialog,Bold,20) coloured(r,g,b,alpha)
i = i+stepperiod
next
RETURN
You must be logged in to post a comment.
salve io faccio spread trading e volevo sapere come impostare un profitto da chiudere in automatico in proreal time grazie
Incredible, that is the clearest depiction of the trend I've ever seen Nicolas. (I just changed the "." for "-" and used purple, yellow and blue and shortest length as 3 and longest as 60). S+P 500: https://www.dropbox.com/s/bit2lxxqj8mxn76/S%2BP500a.png?dl=0 https://www.dropbox.com/s/w0tzckea6vqnoij/S%2BP500b.png?dl=0