Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Quad, aliswee), 835 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 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,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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