Download Support and Resistance Barry MT4 Indicator

support-and-resistance-barry-mt4-indicatorSupport and Resistance Barry MT4 Indicator

Support and resistance lines are indispensable part of forex trading. There are many trading systems that rely on support and resistance lines as well as breakouts.

Support and resistance indicator also displays historical zones if you want to test your strategies. You can also switch to any time frame you want to see from a different perspective.

How to Trade With Rainbow Moving Average:

Buy Signal: Wait for the price bar to close above resistance line.


[php]</p><p>//+——————————————————————+<br />//| Support and Resistance |<br />//| Copyright © 2004 Barry Stander |<br />//| |<br />//+——————————————————————+<br />#property copyright “Click here: Barry Stander”<br />#property link “”</p><p>#property indicator_chart_window<br />#property indicator_buffers 2<br />#property indicator_color1 Red<br />#property indicator_color2 Blue<br />//—- buffers<br />double v1[];<br />double v2[];<br />double val1;<br />double val2;<br />int i;<br />//+——————————————————————+<br />//| |<br />//+——————————————————————+ <br />int init()<br /><%%KEEPWHITESPACE%%> {<br />//—- drawing settings<br /><%%KEEPWHITESPACE%%> SetIndexArrow(0, 119);<br /><%%KEEPWHITESPACE%%> SetIndexArrow(1, 119);<br />//—- <br /><%%KEEPWHITESPACE%%> SetIndexStyle(0, DRAW_ARROW, STYLE_DOT, 1);<br /><%%KEEPWHITESPACE%%> SetIndexDrawBegin(0, i-1);<br /><%%KEEPWHITESPACE%%> SetIndexBuffer(0, v1);<br /><%%KEEPWHITESPACE%%> SetIndexLabel(0,”Resistance”);<br />//—- <br /><%%KEEPWHITESPACE%%> SetIndexStyle(1,DRAW_ARROW,STYLE_DOT,1);<br /><%%KEEPWHITESPACE%%> SetIndexDrawBegin(1,i-1);<br /><%%KEEPWHITESPACE%%> SetIndexBuffer(1, v2);<br /><%%KEEPWHITESPACE%%> SetIndexLabel(1,”Support”);<br />//—- <br /><%%KEEPWHITESPACE%%> return(0);<br /><%%KEEPWHITESPACE%%> }<br />//+——————————————————————+<br />//| |<br />//+——————————————————————+<br />int start()<br /><%%KEEPWHITESPACE%%> { <br /><%%KEEPWHITESPACE%%> i = Bars;<br /><%%KEEPWHITESPACE%%> while(i &gt;= 0)<br /><%%KEEPWHITESPACE%%> { <br /><%%KEEPWHITESPACE%%> val1 = iFractals(NULL, 0, MODE_UPPER, i);<br /><%%KEEPWHITESPACE%%> //—-<br /><%%KEEPWHITESPACE%%> if(val1 &gt; 0) <br /><%%KEEPWHITESPACE%%> v1[i] = High[i];<br /><%%KEEPWHITESPACE%%> else<br /><%%KEEPWHITESPACE%%> v1[i] = v1[i+1];<br /><%%KEEPWHITESPACE%%> val2 = iFractals(NULL, 0, MODE_LOWER, i);<br /><%%KEEPWHITESPACE%%> //—-<br /><%%KEEPWHITESPACE%%> if(val2 &gt; 0) <br /><%%KEEPWHITESPACE%%> v2[i] = Low[i];<br /><%%KEEPWHITESPACE%%> else<br /><%%KEEPWHITESPACE%%> v2[i] = v2[i+1];<br /><%%KEEPWHITESPACE%%> i–;<br /><%%KEEPWHITESPACE%%> } <br /><%%KEEPWHITESPACE%%> return(0);<br /><%%KEEPWHITESPACE%%> }<br />//+——————————————————————+</p><p>[/php]

Click Here to Download

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *

5 + 4 =

This site uses Akismet to reduce spam. Learn how your comment data is processed.