[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 163

 

help!

I've already wracked my brains!

how can i make e.g. the minimum price of the last 20 candlesticks be written to a custom array instead of LOW

 
evgenio писал(а) >>

help!

I've already wracked my brains!

how do i make e.g. the minimum price of the last 20 candlesticks to write into a custom array instead of LOW

double _low[20];
for (int i=0; i<20; i++)
   _low[ i]=Low[ i];
You could do that. Not the best option, though.
 
Vinin >> :
You could do that. Not the best option, though.

for (i=Bars-5; i==Bars; i++)
{
as[i]=iLow(Symbol(),0,i);
Print (GetLastError());

}
Print (as[1]);
return(0);

>> why does it always print zero?
 
PLUT >> :

Hi, just signed up and decided to start a thread. I think it's the right thing to do as I have a lot of questions myself.

I'm tired of looking for answers on other forums, some flooders. I have no idea what to do with the topic.

The only difference is that they do not have enough information for the brokers.

I have something, but in my opinion there are mistakes, look at your leisure poh.

Advise a beginner on a simple working system.

 
PLUT >> :

Hi, just signed up and decided to start a thread. I think it's the right thing to do as I have a lot of questions myself.

I'm tired of looking for answers on other forums, some flooders. I have no idea what to do with the topic.

The only difference is that they do not have enough information for the brokers.

I have something, but in my opinion there are mistakes, look at your leisure poh.

Advise a beginner on a simple working system.

 
evgenio писал(а) >>

for (i=Bars-5; i==Bars; i++)
{
as[i]=iLow(Symbol(),0,i);
Print (GetLastError());

}
Print (as[1]);
return(0);

it prints zero all the time ??? why ???

The first print says there is no error.

The second one gives the correct value of the array element.

Although, if Bars equals 5, you can get a different value.

Make a loop from 0 for checking at least.

 
Panfilov писал(а) >>

Advise a beginner on a simple working system.

The easiest one is head and hands.

 

int start()
{
for (i=0; i==5; i++)
{
as[i]=iLow(Symbol(),0,i);
Print (GetLastError());

}
Print (as[0]);
return(0);
}

What's up again?
 
evgenio писал(а) >> zero again what's up?
int start()
{
double as[5];
  for ( i=0; i==5; i++)
  {
     as[ i]=Low[ i];
     Print (DoubleToStr( as[ i],Digits));
  }
  return(0);
}

Run this one.
 
Vinin >> :
>> Run this one.

It's not working.