directional frequency is a very simple indicator, which visually shows when the price is in a bullish or bearish trend, comparing its position with the average of the close high and low calculated over the past period. It is possible to adjust the period parameter as desired to adapt it to your trading needs. In fact, it is set by default to 14, like the RSI, exclusively by convention.
Happy trading everyone!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
period=14 ///////highest close & lowest close calculation//////// hi=highest[period](close) lo=lowest[period](close) o=(hi+lo)/2 ///////Signal/////// if close>o then r=0 g=255 b=0 endif if close<o then r=255 g=0 b=0 endif ////print green and red candles if bullish or bearish/// DRAWCANDLE(open, high, low, close) coloured (r,g,b) return hi as "hi", lo as "lo", o as "o" |
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
Bonjour,
J’ai une question etes vous trader?
Je m’explique , j’ai téléchargé tous les indicateurs proposés sur la bibliothèque depuis un certain temps et le votre est le seul qui apporte vraiment quelque chose, simple et efficace à l’inverse de tous les autres .
C’était également vrai avec ceux de Nicolas.
Je ne veux pas être méchant mais tout le reste n’est rien d’autre que de l’apparat qui ne sert a rien en trading journalier mis a part peut être le gaussian channel mais pas exploitable en l’état.
cdlt