Counting symbols and auto MagicNumber New comment Edi Dimitrovski 2006.05.26 04: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. multi order ea. Script: Count your net positions in MT4 for a symbol Value on left side Edi Dimitrovski 2006.05.26 05:21 #1 OK I found the 4013 error, did not noticed missed ... =0int value; // incorrect int value = 0; // corrected Tatyana 2006.06.01 15:47 #2 Please provide us with the full code of your Expert Advisor Script. Your problem is not clear from these lines. Edi Dimitrovski 2006.06.09 07:16 #3 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 2006.06.09 10:58 #4 No. Please expose your code here, in this forum New comment
also different MagicNumber for different Periods.. also to calculate the time ...
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?
Any help would be apreciated.
Thanks.