Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, ChrstphFr), 941 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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,729
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,729
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