I deleted the code from the 1st post coz I've created this new indicator for the purpose (actually took bits n parts from different indicators). Since I'm no programmer, I dunno wht went wrong coz the bars aren't being coloured, thou the alert seems to be working absolutely fine.
Plz check it out and let me know whtz wrong in it
regards
kevin
At a quick glance it's somthing to do with the SetIndexStyle settings...
int init()
{
//---- indicators
// IndicatorBuffers(4);
//SetIndexStyle(0,DRAW_HISTOGRAM,EMPTY,3,Blue);
SetIndexBuffer(0,TrendUp);
//SetIndexStyle(1,DRAW_HISTOGRAM,EMPTY,3,Red);
SetIndexBuffer(1,TrendDown);
If you comment out these lines you get somthing on the chart.
At a quick glance it's somthing to do with the SetIndexStyle settings...
int init()
{
//---- indicators
// IndicatorBuffers(4);
//SetIndexStyle(0,DRAW_HISTOGRAM,EMPTY,3,Blue);
SetIndexBuffer(0,TrendUp);
//SetIndexStyle(1,DRAW_HISTOGRAM,EMPTY,3,Red);
SetIndexBuffer(1,TrendDown);
If you comment out these lines you get somthing on the chart.Hi
Thnx for your reply
wht do u mean by "comment out these lines"?
did u try it on ur chart? did it work?
thnx
When I change it to Draw_Arrow, then "x" appears to the candles which have broken the high or the low, but when I change it to Draw_Histogram, nothing appears. I dont understand why
Hi
Thnx for your reply
wht do u mean by "comment out these lines"?
did u try it on ur chart? did it work?
thnxTry typing the word 'comments' in the help system that comes with the MetaEditor and you'll be able to answer your own question.
Lux
Give a man a fish and he'll eat for a day. Teach him how to fish and he'll eat forever.
I tried the help section in meta editor....nothing works yet....any help will be appreciated
thnx
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi
Plz tell me wht modification is needed in this indicator's code so that if the previous candle's high or low is broken, it changes colour. If the previous high/low is not broken, then the colour shouldn't change
thnx
CODE DELETED- PLZ REFER TO POST 2