Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
6 registered members (TipmyPip, Niels, dBc, Ed_Love, 3run, 1 invisible), 17,577 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Compiling Trading Strategies with C++ [Re: AndrewAMD] #467905
09/07/17 11:50
09/07/17 11:50
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
enterLong is not overloaded. I don't know how the first parameter type is checked, but probably it is compared to the DLL or lite-C address space. If it is below the address space, it is assumed a lot size.

Re: Compiling Trading Strategies with C++ [Re: jcl] #467909
09/07/17 12:39
09/07/17 12:39
Joined: Feb 2017
Posts: 1,806
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,806
Chicago
Ah, because...
Code:
typedef long function;


This seems to work correctly:
Code:
enterLong((function)tmfCallback);


Thanks!

Re: Compiling Trading Strategies with C++ [Re: AndrewAMD] #467911
09/07/17 14:00
09/07/17 14:00
Joined: Aug 2017
Posts: 58
P
pascalx Offline OP
Junior Member
pascalx  Offline OP
Junior Member
P

Joined: Aug 2017
Posts: 58
Which is a reinterpret_cast. Ideally the cast should be hidden by a template function in zorro.h.

Page 2 of 2 1 2

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1