Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (frutza, Quad, AndrewAMD), 385 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
TradeProfit vs. TradeResult #446525
10/20/14 00:56
10/20/14 00:56
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
variables.h has them defined as the same thing
Code:
#define TradeResult		g->tr->fResult
#define TradeProfit		g->tr->fResult

Then, what is ->fProfit for?
Code:
typedef struct TRADE {
  ...
  float fResult;		// current profit of the trade
  float fProfit;		// simulated profit
  ...
}

In http://zorro-trader.com/manual/en/trade.htm
TradeProfit is listed, TradeResult is not
However, TradeResult is used in the first example
Also in http://zorro-trader.com/manual/en/buylong.htm Example 3
And two places in http://zorro-trader.com/manual/en/tips.htm
maybe more

Re: TradeProfit vs. TradeResult [Re: GPEngine] #446603
10/22/14 17:34
10/22/14 17:34
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
Different names for the same variable have historical reasons when a variable was renamed.

fProfit can be set by script for simulating a different profit that the trade actually had, for special purposes.


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1