TradeProfit vs. TradeResult

Posted By: GPEngine

TradeProfit vs. TradeResult - 10/20/14 00:56

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
Posted By: jcl

Re: TradeProfit vs. TradeResult - 10/22/14 17:34

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.
© 2024 lite-C Forums