Download Kolier Super Trend MT4 Indicator

kolier-super-trend-mt4-indicatorKolier Super Trend MT4 Indicator –

Kolier Super Trend indicator is an improved version of the original super trend indicator. It consumes less resource since the code is rewritten. This new code also brings a new logic to measure the trend and its strength.

How to Trade With Kolier Super Trend:

Buy Signal: Wait for price bar to close above the Kolier line (Kolier line turns to green).

Sell Signal: Wait for price bar to close below the Kolier line (Kolier line turns to red).







[php]<br /><br />//+------------------------------------------------------------------+<br />//| Kolier_SuperTrend_Indi.mq4 |<br />//| Copyright 2010, KoliEr Li. |<br />//| http://kolier.li |<br />//+------------------------------------------------------------------+<br />/*<br /><%%KEEPWHITESPACE%%> * I here get paid to program for you. Just $15 for all scripts.<br /><%%KEEPWHITESPACE%%> *<br /><%%KEEPWHITESPACE%%> * I am a bachelor major in Financial-Mathematics.<br /><%%KEEPWHITESPACE%%> * I am good at programming in MQL for Meta Trader 4 platform. Senior Level. Have done hundreds of scripts.<br /><%%KEEPWHITESPACE%%> * No matter what it is, create or modify any indicators, expert advisors and scripts.<br /><%%KEEPWHITESPACE%%> * I will ask these jobs which are not too large, price from $15, surely refundable if you are not appreciate mine.<br /><%%KEEPWHITESPACE%%> * All products will deliver in 3 days.<br /><%%KEEPWHITESPACE%%> * Also, I am providing EA, Indicator and Trade System Improvement Consultant services, contact me for the detail.<br /><%%KEEPWHITESPACE%%> * If you need to have it done, don't hesitate to contact me at: [email protected]<br /><%%KEEPWHITESPACE%%> */<br /><br />//+------------------------------------------------------------------+<br />//| Indicator Properties |<br />//+------------------------------------------------------------------+<br />#property copyright "Copyright 2010, KoliEr Li."<br />#property link "http://kolier.li"<br />// Client:<br />// Tags: SuperTrend, ATR<br />// Revision: 1<br /><br />/* Change Logs */<br />/*<br />*/<br /><br />#property indicator_chart_window<br />#property indicator_buffers 2<br />#property indicator_color1 Lime<br />#property indicator_color2 Red<br />#property indicator_width1 2<br />#property indicator_width2 2<br /><br />//+------------------------------------------------------------------+<br />//| Universal Constants |<br />//+------------------------------------------------------------------+<br />#define PHASE_NONE 0<br />#define PHASE_BUY 1<br />#define PHASE_SELL -1<br /><br />//+------------------------------------------------------------------+<br />//| User input variables |<br />//+------------------------------------------------------------------+<br />extern string AdvisorName = "Kolier_SuperTrend_Indi";<br />extern string AdvisorVersion = "1.0.1"; // The version number of this script<br />extern string ProjectPage = "http://kolier.li/project/kolier-supertrend-indi"; // The project landing page<br />extern int BarsToCount = 0; // Set to 0 to count all bars, if &gt;0, set more to calculate more bars<br />extern int TrendMode = 0; // 0=Show line same as SuperTrend.mq4, 1=New way to show trend line<br />// iATR<br />extern string ATR_Indicator = "http://kolier.li/example/mt4-iatr-system-average-true-range";<br />extern int ATR_Period = 10;<br />extern double ATR_Multiplier = 3.0;<br /><br />//+------------------------------------------------------------------+<br />//| Universal variables |<br />//+------------------------------------------------------------------+<br />double buffer_line_up[], buffer_line_down[];<br />double atr, band_upper, band_lower;<br />int phase=PHASE_NONE;<br /><br />//+------------------------------------------------------------------+<br />//| Custom indicator initialization function |<br />//+------------------------------------------------------------------+<br />int init()<br /><%%KEEPWHITESPACE%%> {<br /><%%KEEPWHITESPACE%%> IndicatorShortName(AdvisorName);<br /><%%KEEPWHITESPACE%%> IndicatorDigits(MarketInfo(Symbol(), MODE_DIGITS));<br /><br /><%%KEEPWHITESPACE%%> SetIndexBuffer(0, buffer_line_up);<br /><%%KEEPWHITESPACE%%> SetIndexLabel(0, "Up Trend");<br /><%%KEEPWHITESPACE%%> SetIndexBuffer(1, buffer_line_down);<br /><%%KEEPWHITESPACE%%> SetIndexLabel(1, "Down Trend");<br /><br /><%%KEEPWHITESPACE%%> return(0);<br /><%%KEEPWHITESPACE%%> }<br /><br />//+------------------------------------------------------------------+<br />//| Custom indicator deinitialization function |<br />//+------------------------------------------------------------------+<br />int deinit()<br /><%%KEEPWHITESPACE%%> {<br /><%%KEEPWHITESPACE%%> return(0);<br /><%%KEEPWHITESPACE%%> }<br /><br />//+------------------------------------------------------------------+<br />//| Custom indicator iteration function |<br />//+------------------------------------------------------------------+<br />int start()<br /><%%KEEPWHITESPACE%%> {<br /><%%KEEPWHITESPACE%%> int bars_counted = IndicatorCounted();<br /><%%KEEPWHITESPACE%%> if(bars_counted &lt; 0) {<br /><%%KEEPWHITESPACE%%> return(1);<br /><%%KEEPWHITESPACE%%> }<br /><%%KEEPWHITESPACE%%> else if(bars_counted &gt; 0) {<br /><%%KEEPWHITESPACE%%> bars_counted--;<br /><%%KEEPWHITESPACE%%> }<br /><%%KEEPWHITESPACE%%> int limit = Bars - bars_counted;<br /><%%KEEPWHITESPACE%%> if(BarsToCount&gt;0 &amp;&amp; limit&gt;BarsToCount) {<br /><%%KEEPWHITESPACE%%> limit = BarsToCount;<br /><%%KEEPWHITESPACE%%> }<br /><br /><%%KEEPWHITESPACE%%> for(int i=limit; i&gt;=0; i--) {<br /><%%KEEPWHITESPACE%%> atr = iATR(Symbol(), 0, ATR_Period, i);<br /><%%KEEPWHITESPACE%%> band_upper = (High[i]+Low[i])/2 + ATR_Multiplier * atr;<br /><%%KEEPWHITESPACE%%> band_lower = (High[i]+Low[i])/2 - ATR_Multiplier * atr;<br /><br /><%%KEEPWHITESPACE%%> if(phase==PHASE_NONE) {<br /><%%KEEPWHITESPACE%%> buffer_line_up[i] = (High[i+1]+Low[i+1])/2;<br /><%%KEEPWHITESPACE%%> buffer_line_down[i] = (High[i+1]+Low[i+1])/2;<br /><%%KEEPWHITESPACE%%> }<br /><br /><%%KEEPWHITESPACE%%> if(phase!=PHASE_BUY &amp;&amp; Close[i]&gt;buffer_line_down[i+1] &amp;&amp; buffer_line_down[i+1]!=EMPTY_VALUE) {<br /><%%KEEPWHITESPACE%%> phase = PHASE_BUY;<br /><%%KEEPWHITESPACE%%> buffer_line_up[i] = band_lower;<br /><%%KEEPWHITESPACE%%> buffer_line_up[i+1] = buffer_line_down[i+1];<br /><%%KEEPWHITESPACE%%> }<br /><br /><%%KEEPWHITESPACE%%> if(phase!=PHASE_SELL &amp;&amp; Close[i]&lt;buffer_line_up[i+1] &amp;&amp; buffer_line_up[i+1]!=EMPTY_VALUE) {<br /><%%KEEPWHITESPACE%%> phase = PHASE_SELL;<br /><%%KEEPWHITESPACE%%> buffer_line_down[i] = band_upper;<br /><%%KEEPWHITESPACE%%> buffer_line_down[i+1] = buffer_line_up[i+1];<br /><%%KEEPWHITESPACE%%> }<br /><br /><%%KEEPWHITESPACE%%> if(phase==PHASE_BUY<br /><%%KEEPWHITESPACE%%> &amp;&amp; ((TrendMode==0 &amp;&amp; buffer_line_up[i+2]!=EMPTY_VALUE) || TrendMode==1) ) {<br /><%%KEEPWHITESPACE%%> if(band_lower&gt;buffer_line_up[i+1]) {<br /><%%KEEPWHITESPACE%%> buffer_line_up[i] = band_lower;<br /><%%KEEPWHITESPACE%%> }<br /><%%KEEPWHITESPACE%%> else {<br /><%%KEEPWHITESPACE%%> buffer_line_up[i] = buffer_line_up[i+1];<br /><%%KEEPWHITESPACE%%> }<br /><%%KEEPWHITESPACE%%> }<br /><%%KEEPWHITESPACE%%> if(phase==PHASE_SELL<br /><%%KEEPWHITESPACE%%> &amp;&amp; ((TrendMode==0 &amp;&amp; buffer_line_down[i+2]!=EMPTY_VALUE) || TrendMode==1) ) {<br /><%%KEEPWHITESPACE%%> if(band_upper&lt;buffer_line_down[i+1]) {<br /><%%KEEPWHITESPACE%%> buffer_line_down[i] = band_upper;<br /><%%KEEPWHITESPACE%%> }<br /><%%KEEPWHITESPACE%%> else {<br /><%%KEEPWHITESPACE%%> buffer_line_down[i] = buffer_line_down[i+1];<br /><%%KEEPWHITESPACE%%> }<br /><%%KEEPWHITESPACE%%> }<br /><br /><%%KEEPWHITESPACE%%> }<br /><br /><%%KEEPWHITESPACE%%> return(0);<br /><%%KEEPWHITESPACE%%> }<br /><br />[/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 *