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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
//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 |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
salve
io faccio spread trading e volevo sapere come impostare un profitto da chiudere in automatico in proreal time
grazie
Per favore non fare domande generali, non correlate al post. Usa invece il forum.
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