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++) |
{ |
ExtMapBuffer1[i]=Close[i]>=Open[i]*1.1; |
} |
return(0); |
} |
- How to code?
- Problems with SELL Orders by EMA_CROSS Script
- A question on mt4 programming
Before posting please read some of the other threads . . . then you would have seen numerous requests like this one:
Please use this to post code . . . it makes it easier to read.Does this make sense to you ?
ExtMapBuffer1[i] = Close[i]>=Open[i]*1.1; // Close[i] >= Open[i]*1.1 results in a bool
is your buffer a bool ?
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++)
{
ExtMapBuffer1[i]=Close[i]>=Open[i]*1.1;
}
return(0);
}
Running results,why?
I didn't quite understood your question, you would obtain more answers by expanding a little bit. However, at first glance, the following statement will result in a boolean answer.
ExtMapBuffer1[i]=Close[i]>=Open[i]*1.1; // Bold code will return either true or false
So ExtMapBuffer1[i] will either have 0 or 1 as values. Is that what you wanted?
Tell us the goal of your indicator so we can help.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use