[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 882

 

No result. The numbers characterising the indicator lines remain.

These are points relative to the range on the right. The window on the right has limits " up" and "down".

 

Who can tell me why when I ask the indicator for value

double vol = iCustom(Symbol(),PERIOD_H1,"Parabolic",PARASTEP,PARAMAX,0,1);

it gives me this value...

EURUSD,H1: vol= 1.2737Ask= 1.2678

and then it gives me this

EURUSD,H1: vol= 435119881.7219Ask= 1.2736

I don't understand... no calculations were done to variable vol

where are these numbers coming from? =\

 
Maybe it's in the tester. =\
 
Vinin:

Thank you, Victor, and that's it.

I'll finish the subject sometime later.

 

Greetings!

Can you suggest a function that will add 1 to MagicNumber and assign it.

I need it to run several loops in one EA at the same time.

I thank you in advance.

 

Again I cannot influence the dimensionality of the second dimension, it will only change after recompiling
 
belck:

Greetings!

Can you suggest a function that will add 1 to MagicNumber and assign it.

I need it to run several loops in one EA at the same time.

I thank you in advance.


Not quite right. But it might help to find a solution:

int Magic_()
 {
   string mag;
   int Magic.g;
   Sleep(1000);
   while (true)
   {
      MathSrand (TimeLocal());
      mag = StringConcatenate(mag, MathRand()/15, MathRand()/8, MathRand()/32); 
      Magic.g = MathRound(MathAbs(StrToInteger(mag)));
      mag = DoubleToStr(Magic.g,10);
      if (StringLen (mag) >= 15) {Magic.g = StrToInteger(mag); break;}
   }
   return (MathRound(MathAbs(Magic.g)));
 }
 

I dug around the forum and found this.

int MagicfromSymbol() // Генирит Magicnumber для каждого символа и ТФ
{  
   int MagicNumber=0;  
   for (int i=0; i<5; i++) 
   {  
      MagicNumber=MagicNumber*3+StringGetChar(Symbol(),i)+5;  
   }  
   MagicNumber=MagicNumber*3+Period();  
   return(MagicNumber);  
}

I put it in. no errors, but it didn't work.

I have a confirmation for opening a loop, like this (i.e. this one for one simultaneous strategy) :

if (TradeNow && total < 1) {
      PrevCl = iClose(Symbol(), 0, 2);
      CurrCl = iClose(Symbol(), 0, 1);
      SellLimit = Bid;
      BuyLimit = Ask;
      if (!ShortTrade && !LongTrade) {

I did it like this:

if (TradeNow && total < 2) {
      PrevCl = iClose(Symbol(), 0, 2);
      CurrCl = iClose(Symbol(), 0, 1);
      SellLimit = Bid;
      BuyLimit = Ask;
      if (!ShortTrade && !LongTrade) {

and it didn't work.

What could it be? please advise.

 
belck:

I dug around the forum and found this.

I put it in. no errors, but it didn't work.

I have a confirmation for opening a loop, like this (i.e. this one for one simultaneous strategy) :

I did it like this:

and it didn't work.

What could it be? please advise.


Apparently the whole code has to be posted. Charades don't help much
 

here's the attachment

Files: