This indicator show possible beginning and end of a ‘flat trend’ (ranging market), based on ADX (with DI plus and DI minus) and Parabolic SAR indicator position according to the current price Close.
Converted from MT4 indicator by a request in the indicator’s forum.
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 |
//PRC_FlatTrend | indicator //26.03.2018 //Nicolas @ www.prorealcode.com //Sharing ProRealTime knowledge PADX=DIplus[14](close) NADX=DIminus[14](close) PSAR = SAR[0.02,0.02,0.2] ExtMapBuffer1=0 ExtMapBuffer2=0 ExtMapBuffer3=0 ExtMapBuffer4=0 if (Psar < Close AND PADX > NADX) then ExtMapBuffer2=1 endif if (Psar < Close AND NADX > PADX) then ExtMapBuffer4=1 endif if (Psar > Close AND NADX > PADX) then ExtMapBuffer1=1 endif if (Psar > Close AND PADX > NADX) then ExtMapBuffer3=1 endif return ExtMapBuffer1 coloured(255,0,0) style(histogram,2), ExtMapBuffer2 coloured(50,205,50) style(histogram,2), ExtMapBuffer3 coloured(250,128,114) style(histogram), ExtMapBuffer4 coloured(144,238,144) style(histogram) |
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 :
Filename : download the ITF files
How to import ITF files into ProRealTime platform?
PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
Merci Nicolas.
J’ai un bug d’affichage quand j’utilise ton indicateur. La bougie en cours ne s’affiche pas…Ni la barre ne cours de Flat trend…Elle ne s’adffiche qu’en switchant sur un autre graphe et en y revenant.
Peux-tu vérifier?
Merci
nicolas, can you somehome make this to be in the background of the price chart?
none did that yet right?
You can ask for a code modification on forums, please open a new topic with your request.