Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 993

 
Can you tell me how to make a manual input request from the script?
 
Ellie:
Can you tell me how to make a manual input request from the script?
#property script_show_inputs.
 
Thanks, that's just what I needed
 
And another question: is a=a+5 allowed in code? Will the variable a count correctly? Or should I first assign the value of a to another variable, increment it, and then assign the resulting value to the variable a? i.e. b=a; a=b+5?
 
Ellie:
And another question: is a=a+5 allowed in code? Will the variable a count correctly? Or should I first assign the value of a to another variable, increment it, and then assign the resulting value to the variable a? i.e. b=a; a=b+5?
#property strict

int A = 10;    // начальное значение А

void OnStart()
  {
//---
   A = A + 5;  // увеличение А на 5 и присвоение А результата, A = 10 + 5 = 15
   A += 5;     // то же самое, А увеличивается на 5, А = 15

   A = A - 5:  // уменьшение А на 5 и присвоение А результата, A = 10 - 5 = 5
   A -= 5;     // то же самое, А уменьшено на 5, А = 5

   A = A * 5;  // умножение А на 5 и присвоение А результата, A = 10 * 5 = 50
   A *= 5;     // то же самое, А умножено на 5, А = 50

   A = A / 5;  // деление А на 5 и присвоение А результата, A = 10 / 5 = 2
   A /= 5;     // то же самое, А поделено на 5, А = 2
  }
 
paladin80:

a=a+5 translates into Russian as: "a" will now equal "a+5". In short you can :)
 
001:
a=a+5 translates into Russian as: "a" will now equal "a+5". In short you can :)
Rarely speak Russian and I'm starting to get a bit confused with words :).
 

What could the error mean and where can I find a description of it?

Thank you in advance.

Expert Advisor compiles normally.

When profiling, I get an error in "Journal" tab: MT4 Profiling - loading of xxXXXXXxx failed

When I attach it to a chart no visible changes occur, it says "xxXXXXXxx is not expert and cannot be executed" in the "Journal" tab

 
abeiks:

Hello!

Currently the function is linked to the current chart (double High[]). How can I modify the function in order to receive prices of different timeframes High_Lim(PERIOD_H4,10,1) High_Lim(PERIOD_M15,10,1)?

If anyone needs, here is an example of how to get the maximum bar prices of different timeframes.

//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
//---
Print("::::::::::::::::::::::::: High_Lim(PERIOD_H1,10,1) = ", High_Lim(PERIOD_H1,10,1));  
Print("::::::::::::::::::::::::: High_Lim(PERIOD_H4,10,1) = ", High_Lim(PERIOD_H4,10,1));  
}

//+----------------------------------------------------------------------------+
//|  Autors   : Nauris Zukas (abeiks)                                          |
//+----------------------------------------------------------------------------+
double High_Lim(ENUM_TIMEFRAMES GrafPeriod, int Bari_atp, int Bari_shift)
{double HighLim = iHigh(NULL, GrafPeriod,iHighest(NULL,GrafPeriod,MODE_HIGH,Bari_atp,Bari_shift));          
return(HighLim);
}
 
is there a 64bit version of the terminal?
Reason: