Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (VoroneTZ, 7th_zorro), 1,071 guests, and 5 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
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,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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