Wishes for MQL5 - page 67

 
Hi all! When will the MQL5 release be approximately?
 
zax >> :
>> Hi all! When is the MQL5 release date approximately?

"no son... it's fantastic..." (c) can't remember what commercial... :)

 
double AccountFreeMarginCheck( string symbol, int cmd, double volume) 

Please make a similar function where you can set the risk, i.e. you set the percentage you want to risk, and the lot size is returned to you.

I've already got tired of it.

The second, I would like it to be possible to call from the indicator (now I get an error, unfortunately). I have no idea how to use it.

 
I don't think development is underway on VC6.0 now the ludis are switching to VC2010
 


----------------------------------------------------------------------

The function returns the offset from the GMT Timzone broker Server

#import "Kernel32.dll"
   void GetLocalTime(int& gLti[]);
   void GetSystemTime(int& gSt[]);
   int GetTimeZoneInformation(int& gtzI[]);


//returns Offset from GMT Timzone(Broker Server)
int GMTOffset() {
   int time_a[4];
   int time_b[43];
   
   GetSystemTime( time_a);
   int time0 = time_a[0] & 65535;
   int time1 = time_a[0] >> 16;
   int time2 = time_a[1] >> 16;
   int time3 = time_a[2] & 65535;
   int time4 = time_a[2] >> 16;
   int time5 = time_a[3] & 65535;
   string fuse1 = FormatDateTime( time0, time1, time2, time4, time4, time5);
   
   GetLocalTime( time_a);
   time0 = time_a[0] & 65535;
   time1 = time_a[0] >> 16;
   time2 = time_a[1] >> 16;
   time3 = time_a[2] & 65535;
   time4 = time_a[2] >> 16;
   time5 = time_a[3] & 65535;
   int time6 = time_a[3] >> 16;
   string fuse_sub = time6 + 1000;
   fuse_sub = StringSubstr( fuse_sub, 1);
   fuse1 = FormatDateTime( time0, time1, time2, time3, time4, time5);
   int t1 = 0;
   int gtt1 = GetTimeZoneInformation( time_b);
   if ( gtt1 != 0) t1 = time_b[0];
   if ( gtt1 == 2) t1 += time_b[42];
   int timex2 = StrToTime( fuse1);
   int tisu = TimeCurrent() - ( timex2 + 60 * t1);
   double trmr = MathRound( tisu / 360);
   int tzoff = MathRound( trmr / 10.0);
   return ( tzoff);
}

//format standart
string FormatDateTime(int time0, int time1, int time2, int time3, int time4, int time5) {
   string sub1 = time1 + 100; sub1 = StringSubstr( sub1, 1);
   string sub2 = time2 + 100; sub2 = StringSubstr( sub2, 1);
   string sub3 = time3 + 100;  sub3 = StringSubstr( sub3, 1);
   string sub4 = time4 + 100; sub4 = StringSubstr( sub4, 1);
   string sub5 = time5 + 100;  sub5 = StringSubstr( sub5, 1);
   return (StringConcatenate( time0, ".", sub1, ".", sub2, " ", sub3, ":", sub4, ":", sub5));
}


-----------------------------------------------------------------------------------------------------

The function returns the offset from the GMT Timzone of the local computer.

//return Timzone GMT offset from Local PC
int LocalGMTOffset() {
   int time_a[4];
   int time_b[43];
   
   GetSystemTime( time_a);
   int time0 = time_a[0] & 65535;
   int time1 = time_a[0] >> 16;
   int time2 = time_a[1] >> 16;
   int time3 = time_a[2] & 65535;
   int time4 = time_a[2] >> 16;
   int time5 = time_a[3] & 65535;
   string fuse1 = FormatDateTime( time0, time1, time2, time4, time4, time5);
   
   GetLocalTime( time_a);
   time0 = time_a[0] & 65535;
   time1 = time_a[0] >> 16;
   time2 = time_a[1] >> 16;
   time3 = time_a[2] & 65535;
   time4 = time_a[2] >> 16;
   time5 = time_a[3] & 65535;
   int time6 = time_a[3] >> 16;
   string fuse_sub = time6 + 1000;
   fuse_sub = StringSubstr( fuse_sub, 1);
   fuse1 = FormatDateTime( time0, time1, time2, time3, time4, time5);
   int t1 = 0;
   int gtt1 = GetTimeZoneInformation( time_b);
   if ( gtt1 != 0) t1 = time_b[0];
   if ( gtt1 == 2) t1 += time_b[42];
   int timex2 = StrToTime( fuse1);
   int tisu = TimeLocal() - ( timex2 + 60 * t1);
   double trmr = MathRound( tisu / 360);
   int tzoff = MathRound( trmr / 10.0);
   return ( tzoff);
}

//format standart
string FormatDateTime(int time0, int time1, int time2, int time3, int time4, int time5) {
   string sub1 = time1 + 100; sub1 = StringSubstr( sub1, 1);
   string sub2 = time2 + 100; sub2 = StringSubstr( sub2, 1);
   string sub3 = time3 + 100; sub3 = StringSubstr( sub3, 1);
   string sub4 = time4 + 100; sub4 = StringSubstr( sub4, 1);
   string sub5 = time5 + 100; sub5 = StringSubstr( sub5, 1);
   return (StringConcatenate( time0, ".", sub1, ".", sub2, " ", sub3, ":", sub4, ":", sub5));
}


+2 Sample( Example)

Files:
sample.zip  2 kb
 

The IninitializeReason( ) function

 
kernelmd >> :
I don't think development is being done on VC6.0 now the ludis are moving to VC2010

don't know about MT5

and MT4 is written on VC6!

 
YuraZ >> :

MT5 I don't know.

and MT4 is written on VC6!

Yes, you're right, it's weird.

But you don't need to have the latest version of MSVC to use multi-core, in my opinion it's much more important to properly parallele the threads, i.e. it's all about the architecture.

 

I would like to reduce incoming traffic by ticking the "Allow news" extra option.

When running 2 or more terminals, each downloads its own news depending on the "rank" of the account (demo, contest, real, ...). i.e. extra traffic. In principle, it would be possible to get news on a real account, and on other running terminals they are not needed at all.

Or disable everything altogether.

 
pvm63 >> :

I would like to reduce incoming traffic by ticking the "Allow news" extra option.

When running 2 or more terminals, each downloads its own news depending on the "rank" of the account (demo, contest, real, ...). i.e. extra traffic. In principle, it would be possible to get news on a real account, and on other running terminals they are not needed at all.

Or disable everything altogether.

So turn it off.