Hi,

Running the code below on price data that includes decimals, the SellPrice used 
is the Close price (with decimals) rather than the ceil price.

If SellPrice is changed to round(C) it is correctly rounded, so why doesn't 
ceil(C) work??


NB: Remove Equity(1) and the SellPrice is correctly ceil(C).


------
BuyPrice = Open;
SellPrice = ceil(C);                    

Equity(1);

// Extra columns to display in Exploration
Filter=1;
AddColumn(Open,"Open");
AddColumn(High,"High");
AddColumn(Low,"Low");
AddColumn(Close,"Close");
AddColumn(BuyPrice,"BuyPrice");
AddColumn(SellPrice,"SellPrice");



Reply via email to