Download MetaTrader 5
To add comments, please log in or register
Publish your article and get a reward!
MetaQuotes Software Corp.
Moderator
178238
MetaQuotes Software Corp. 2010.11.29 14:32 

Kolier_SuperTrend_Indi:

Indicator for detect trends of the market. For trend following usage.

Author: KoliEr Li

whroeder1
13978
whroeder1 2010.12.01 19:22  
   int limit = Bars - bars_counted;
   ...
   for(int i=limit; i>=0; i--) {
      atr = iATR(Symbol(), 0, ATR_Period, i);
         ...
         buffer_line_up[i] = (High[i+1]+Low[i+1])/2;
When bars_counted == 0, accesses High[Bar+1], High[Bar] and buffer[Bar] which do not exist. Also iATR is undefined for i=Bars-ATR_Period and above
Oluwadare Paul Oguntosin
615
Oluwadare Paul Oguntosin 2011.05.28 14:25  

Hello Kolier,

can you please code an EA that will be working as Kolier_SuperTrend_Indi on 4hr time frame.

The EA will open a buy oder when the green line is appear and close the oder when red line appear. And the open sell oder immediately red line appear and close it when green line appear.

Hope to hear from you .

Thanks

mighty6469
26
mighty6469 2013.01.05 22:16  
WHRoeder:
   int limit = Bars - bars_counted;
   ...
   for(int i=limit; i>=0; i--) {
      atr = iATR(Symbol(), 0, ATR_Period, i);
         ...
         buffer_line_up[i] = (High[i+1]+Low[i+1])/2;
When bars_counted == 0, accesses High[Bar+1], High[Bar] and buffer[Bar] which do not exist. Also iATR is undefined for i=Bars-ATR_Period and above
good observation, but to what purpose? The indicator wprks fine a shown, that's all one needs to use it!
mighty6469
26
mighty6469 2013.01.05 22:19  
gbemitte:

Hello Kolier,

can you please code an EA that will be working as Kolier_SuperTrend_Indi on 4hr time frame.

The EA will open a buy oder when the green line is appear and close the oder when red line appear. And the open sell oder immediately red line appear and close it when green line appear.

Hope to hear from you .

Thanks


imho, this is a great piece of work. I would use it with , for example, a moving average, for entry with entry and exit.  Use a strategy tester to see for yourself how useful it may be.
MQL4 Comments
16319
MQL4 Comments 2013.06.19 13:50  

This indicator stops drawing line on live prices in Trend Mode 1.

/
To add comments, please log in or register