huaxia009:
void start
void start
{
.......;
for i=1000, i>0, i--
{
a[m]=close;
m++;
}
.......;
.......;
}
in this example, will i calculate the "for" loop for 1000 times every time i receive new quotation? if so, how can i avoid it?int counted_bars=IndicatorCounted();
limit = Bars-counted_bars;
for(i=0;i<limit;i++) {
........
thorr:
int counted_bars=IndicatorCounted();
int counted_bars=IndicatorCounted();
limit = Bars-counted_bars;
for(i=0;i<limit;i++) {
........thanks a lot.
but this method can also be used in expert advisor?
thorr:
int counted_bars=IndicatorCounted();
int counted_bars=IndicatorCounted();
limit = Bars-counted_bars;
for(i=0;i<limit;i++) {
........i know how to do!
thanks very much!
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
void start
{
.......;
for i=1000, i>0, i--
{
a[m]=close;
m++;
}
.......;
.......;
}
in this example, will i calculate the "for" loop for 1000 times every time i receive new quotation? if so, how can i avoid it?