[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Formula



PureBytes Links

Trading Reference Links


Hello,
 
I have the following code:
 
P = 1 + (SellPrice - BuyPrice) / 
BuyPrice;
CP = CP * P;
 
 
CP need to be initialised to 1.
How can I do that. If I code 
CP = IIF( Cum(1) == 1, 1, CP);
I have an error since CP is unknown and should not 
be placed in the right part of the formula since is still not 
defined.
 
Someone has an idea ?
 
Thanks
Bernard Bourée<A 
href="">bernard@xxxx