thegatan Posted June 24, 2012 Report Share Posted June 24, 2012 hello dear all friend i need someone able to help code my idea to the indicator [-O< detail about my idea print-screen on below: http://www.freeimagehosting.net/g3pny http://www.freeimagehosting.net/c8rnb http://www.freeimagehosting.net/y1cyk [-O< very very big appreciate if someone can help me [-O< Quote Link to comment Share on other sites More sharing options...
temon Posted June 29, 2012 Report Share Posted June 29, 2012 at normal market condition last candle close is equal to open for current candle and if you add 1 or 2 pips difference then it would be a very normal bull and bear candle. can you be more specific, ie. volume, wick, candle formation.. etc. i use arrow instead of line because it easier to see, there would be too many line. the code #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Black #property indicator_color2 White double EqualOC[], EqualCO[]; int init() { string sShortName; SetIndexBuffer(0,EqualOC); SetIndexBuffer(1,EqualCO); SetIndexStyle(0,DRAW_ARROW); SetIndexArrow(0,116); SetIndexStyle(1,DRAW_ARROW); SetIndexArrow(1,116); return(0); } int start() { int limit; int counted_bars=IndicatorCounted(); if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; for(int i=0; i<limit; i++) { EqualOC[i]=0; EqualCO[i]=0; if( (Open[i+1] <= Close[i+1]) && (Close[i+1] == Open[i]) && (Close[i] <= Close[i+1]) ){EqualOC[i] = High[i];} if( (Open[i+1] >= Close[i+1]) && (Close[i+1] == Open[i]) && (Close[i] >= Close[i+1]) ){EqualCO[i] = Low[i];} } return(0); } Quote Link to comment Share on other sites More sharing options...
thegatan Posted June 30, 2012 Author Report Share Posted June 30, 2012 Hi Friend, thank you for your reply, could you send mq4 file? i try to compile by self your code above and attach to chart but nothing appear on my screen thank you very much Quote Link to comment Share on other sites More sharing options...
temon Posted July 4, 2012 Report Share Posted July 4, 2012 the code is working just fine... the only reason is your broker never give you last close equal to open for current bar.. =)) i try it on my 3 different broker, on M15 AUDUSD at In*******x broker, I just get 1 arrow at may 9, 2012 at 21:00, while on Fx**o and I**x just like star sparkling on the sky. 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.