• Get access

Counting symbols and auto MagicNumber

To add comments, please log in or register
Edi Dimitrovski
289
Edi Dimitrovski  
hi, can I use this functions in Expert Advisor Script for counting symbols?
int curencies() {
   int aa = 0, bb = 0, Sn = 0;
   if(!GBPUSD) aa=1;
   if(!EURUSD) bb=1;
   Sn=aa+bb; return(Sn);}
also different MagicNumber for different Periods..
int number() { int id = Period(); return ( id ); }
also to calculate the time ...
 int gmttime = LocalTime() + GMT_Hour * 3600 + GMT_Minute * 60;
 if ( TimeHour ( gmttime ) > 7 ) Function();
and most important, if this function will give correct values for Points in Expert Advisor Script, as I know it would give in indcator, but in EA I don't know way to check this as somewhere I am getting Zerro Devide as error 4013?
double Stops = MathRound((High[1]-Low[1]+High[0]-Low[0])/Point);
Any help would be apreciated.
Thanks.
Edi Dimitrovski
289
Edi Dimitrovski  
OK I found the 4013 error, did not noticed missed ... =0
int value; // incorrect
int value = 0; // corrected
Tatyana
101
Tatyana  

Please provide us with the full code of your Expert Advisor Script. Your problem is not clear from these lines.

Edi Dimitrovski
289
Edi Dimitrovski  
Tatyana:

Please provide us with the full code of your Expert Advisor Script. Your problem is not clear from these lines.

Thank you Tatyana,

is it allowed to send the full code of my Expert Advisor Script to your email, as I know tatyana@metaquotes.ru ?
Slava
Moderator
13390
Slava  
No. Please expose your code here, in this forum
To add comments, please log in or register