| / | Forum |
|
edddim
2006.05.26 06:58
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. |
|
Reporting the 6th Week of the Championship (5-11 November) The sixth week of the Championship ended. Exactly half of the contest is behind us. This week brought us some surprises. |
|
edddim
2006.05.26 07:21
OK I found the 4013 error, did not noticed missed ... =0
int value; // incorrect int value = 0; // corrected |
2822 |
Tatyana
2006.06.01 17:47
Please provide us with the full code of your Expert Advisor Script. Your problem is not clear from these lines. |
|
edddim
2006.06.09 09:16
Tatyana wrote: Thank you Tatyana,Please provide us with the full code of your Expert Advisor Script. Your problem is not clear from these lines. is it allowed to send the full code of my Expert Advisor Script to your email, as I know tatyana@metaquotes.ru ? |
5089 |
stringo
2006.06.09 12:58
No. Please expose your code here, in this forum
|