Thanks Cone. The first calculation I was suggesting was using the bar's close price as the exit price: PNL = # of shares * (bar's close price - entry price). The PNL error that I observed was a result of the entry price displayed on the chart only has two decimal digits while that of the actual number in the calculation done by WL7 has 4 decimal digits. The exit price on the chart also has two decimal digits.
This cause of this error is similar to that caused by the rounded-off in number of shares that are displayed on the chart. I think the chart should in this case show all the number of decimal digits for entry and exit prices to match those used in the PNL calculations to avoid confusion.

This cause of this error is similar to that caused by the rounded-off in number of shares that are displayed on the chart. I think the chart should in this case show all the number of decimal digits for entry and exit prices to match those used in the PNL calculations to avoid confusion.
Rename
QUOTE:You're seeing 4 decimal places because you specified that in Markets and Symbols .
the calculation done by WL7 has 4 decimal digits
The chart can't show all the decimals, because it's really done at full precision - up to 16 significant digits. (If you must see more decimals to count the pennies, then just use a method like that one provided above.)
I'm trying to figure out how you got your trade quantities to display with as a round number with 4 zeroes without using round lots. Are you rounding the Transaction.Quantity in the script?
I don't question the usage of full precisions in internal calculations, because doing otherwise it not making sense. However I think the information to be displayed on a chart should has enough precisions so that if someone to read off and use the information from it to do any on the fly calculations, it should be accurate enough compare to actual calculations so to avoid confusion.
Right now, a chart displays with 2 decimal digits precision for entry/exit prices, that might not be enough in some cases. I know that you can adjust # of decimal digits precisions for OHLC prices but not sure if there is one for entry and exit prices.
If I simulate the same strategy using penny stocks or with some of the crypto currencies, the information for entry/exit prices on the chart can be lost as seen on the chart below. Here I use the penny stock symbol, BBRW. The actual entry price is $0.0029 but is displayed as $0.00 on the chart.
No, I do not use any rounding in the quantity of shares in trading in the script. The script I used is listed on the above post. Unless there is someplace outside of the script that I can do rounding on the quantity that I don't know about. Thanks.

Right now, a chart displays with 2 decimal digits precision for entry/exit prices, that might not be enough in some cases. I know that you can adjust # of decimal digits precisions for OHLC prices but not sure if there is one for entry and exit prices.
If I simulate the same strategy using penny stocks or with some of the crypto currencies, the information for entry/exit prices on the chart can be lost as seen on the chart below. Here I use the penny stock symbol, BBRW. The actual entry price is $0.0029 but is displayed as $0.00 on the chart.
No, I do not use any rounding in the quantity of shares in trading in the script. The script I used is listed on the above post. Unless there is someplace outside of the script that I can do rounding on the quantity that I don't know about. Thanks.
You've got a point with that one. If you're trading sub-penny OTC stocks, then you should create a Market for those and define a tick size far less than 0.01. That's what I did here and you can see the scale is displaying 4 digits, but the trade info rollover is not - we'll call that a bug.

Anyway, don't count on system trading for the pink sheets - good luck getting those 2.5M shares without moving the market 100% in the process. That's just my perception of what might happen, I don't really have any experience with OTC stocks.
Like in the past
Anyway, don't count on system trading for the pink sheets - good luck getting those 2.5M shares without moving the market 100% in the process. That's just my perception of what might happen, I don't really have any experience with OTC stocks.
Like in the past
Just noticing that we're way off topic, but we've got you covered on this one for Build 34 ....

QUOTE::). yes, with OTC stocks, liquidity is one of the dominant constraints among others.
good luck getting those 2.5M shares without moving the market 100% in the process.
QUOTE:. Thank you.
Just noticing that we're way off topic, but we've got you covered on this one for Build 34 ....
Your Response
Post
Edit Post
Login is required