Hi all, a point that may be of interest.
So in the prorealtime pdf programming guide, and online here https://www.prorealcode.com/documentation/pointvalue/
it says that pipvalue=pointvalue
I was running this code below to help calculate overnight fees
If longonmarket and time = 000.000 then
LF = (((Countoflongshares * pipvalue * (close/pipsize)) * (((BrokerFee/100) + (Libor/100))/365))*100)/100
else
LF = 0
endif
Market was FTSE 100 Cash (A$1)
And I was having a hell of a time getting a zero response from this and not knowing why.
So I got to work graphing the inputs, and bingo.
Turns out (at least for this market) that pipvalue does not equal pointvalue.
What is intersting, is that for this market pipsize=pointsize.
It would have made more sense to me if both didn’t work.
So, maybe as a rule, leave pips for forex (?), and points for other markets, even though the manual says that they should be the same? Or just manually enter these values (not preferred if there is then a sudden value change by broker).
Cheers,
Finning.
PS – you can’t delete attachments in edit mode either? Attached too many times…
It’s a mess, can you post it again?
So what is pipvalue for this market?
GRAPH pipvalue
GRAPH pointvalue
Hi Nicolas,
Yes that is what I graphed-the graph of those two values-and also for pipsize and pointsize-value for those are there as well-the value of them in the picture thats atrached.
I don’t have any proof of it-ie-a screenshot of a graph of these values-but I swear that a week ago-i’ve been away for a week-that I didn’t have this problem and pipvalue=pointvalue. Can’t prove it but I’m sure that that was the case.
Another screen capture of the graph of this :
GRAPH pipvalue
GRAPH pointvalue
Just to confirm what I’m seeing.
Problem was due to the new engine. Pipvalue should now return the correct value (or will be if the new version is not yet published in your country/broker).
I confirm that PIPVALUE = POINTVALUE.
Cheers Nicolas,
thanks for following this up.