mograst Posted August 27, 2009 Report Share Posted August 27, 2009 Hi, below is a good indicator (use on H1) howeer if you attache it to more than 1 chart it slows down extremly your MT4 and even your PC. Maybe some good coder cna fix that problem. thanks http://www.forexsharing.com/291601 Quote Link to comment Share on other sites More sharing options...
konorti Posted August 27, 2009 Report Share Posted August 27, 2009 Re: Good Indicator Need small fix I modified it for you, so it will draw the indicator just for the range of bars you set in the DisplayBars variable. It will make it faster. slil.ru/27932897 Quote Link to comment Share on other sites More sharing options...
ryaz Posted August 27, 2009 Report Share Posted August 27, 2009 Re: Good Indicator Need small fix A much smaller and better version #property indicator_chart_window #property indicator_buffers 4 #property indicator_color1 Red #property indicator_color2 Black #property indicator_color3 Blue #property indicator_color4 Black double buf0[]; double buf1[]; double buf2[]; double buf3[]; extern int Rperiod = 18; extern int LSMA_Period = 20; int AllBars; int bar; int r; int CBars; int Last; double rofs; double rsum; int init() { IndicatorBuffers(7); SetIndexBuffer(0, buf0); SetIndexStyle(0, DRAW_LINE, STYLE_SOLID, 1); SetIndexBuffer(1, buf1); SetIndexStyle(1, DRAW_NONE); SetIndexBuffer(2, buf2); SetIndexStyle(2, DRAW_LINE, STYLE_SOLID, 1); SetIndexBuffer(3, buf3); SetIndexStyle(3, DRAW_NONE); return (0); } int start() { if (Last==0) CBars = Bars - 6 - 2*Rperiod; else CBars = iBarShift(NULL,0,Last); Last=Time[0]; rofs = (Rperiod + 1)/3.0; for (bar = CBars; bar >= 0; bar--) { rsum = 0; for (r = Rperiod; r >= 1; r--) rsum += (r - rofs) * Close[Rperiod - r + bar]; buf0[bar] = 6.0 * rsum / (Rperiod * (Rperiod + 1)); buf1[bar] = buf0[bar + 1] + 2.0 * (buf0[bar] - buf0[bar + 1]) / (LSMA_Period + 1); buf2[bar] = buf0[bar]; buf3[bar] = buf1[bar]; if (buf0[bar] < buf1[bar]) { buf3[bar] = EMPTY_VALUE; buf2[bar] = EMPTY_VALUE; } } return (0); } regards Quote Ad augusta per angusta Link to comment Share on other sites More sharing options...
mograst Posted August 27, 2009 Author Report Share Posted August 27, 2009 Re: Good Indicator Need small fix thanks to "kopaszn " (Hope you recived kudos as I am with proxy and some featueres doesnt work) Same for "ryaz" for indicator. Quote Link to comment Share on other sites More sharing options...
konorti Posted August 28, 2009 Report Share Posted August 28, 2009 Re: Good Indicator Need small fix I made it to draw it in histogram (if you set the indicator window max value to 1, then it wont go up and down, just colors). If you want it to use it to an EA you can compare the values of the indi. If higher than previous buy if lower then sell. I hope you can use it. Please if you come to some conclusion I would be really happy to read it. Anyway I think this indi is simmilar to NonLagMA. Last bar is redrawing. slil.ru/27935818 http://img137.imageshack.us/img137/4443/picture22p.png Quote Link to comment Share on other sites More sharing options...
mograst Posted August 29, 2009 Author Report Share Posted August 29, 2009 Re: Good Indicator Need small fix I made it to draw it in histogram (if you set the indicator window max value to 1, then it wont go up and down, just colors). If you want it to use it to an EA you can compare the values of the indi. If higher than previous buy if lower then sell. I hope you can use it. Please if you come to some conclusion I would be really happy to read it. Anyway I think this indi is simmilar to NonLagMA. Last bar is redrawing. slil.ru/27935818 http://img137.imageshack.us/img137/4443/picture22p.png thanks I will going to test next week. Thisa indicator is part of manual sistem I currentlu testing and seems working fine. I will post it here soon. I am using it on 1H and it gives very good signals. Problem is that I have to stay on my desk to che signals every hour. Maybe if somone find it a good system, it can be coded into an EA. Let's see. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.