pipvalue=pointvalue
Forums › ProRealTime English forum › ProOrder support › pipvalue=pointvalue
- This topic has 6 replies, 3 voices, and was last updated 5 years ago by
Finning.
-
-
07/03/2019 at 12:02 PM #101869
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
12345If longonmarket and time = 000.000 thenLF = (((Countoflongshares * pipvalue * (close/pipsize)) * (((BrokerFee/100) + (Libor/100))/365))*100)/100elseLF = 0endifMarket 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…
07/03/2019 at 1:14 PM #101880It’s a mess, can you post it again?
07/03/2019 at 4:18 PM #10188907/03/2019 at 6:56 PM #101910Hi 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.
07/03/2019 at 8:29 PM #10191807/04/2019 at 8:32 AM #101942Problem 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.
1 user thanked author for this post.
07/04/2019 at 10:22 PM #101994 -
AuthorPosts