using floating point in FX markets?

Forums ProRealTime English forum ProOrder support using floating point in FX markets?

Viewing 4 posts - 1 through 4 (of 4 total)
  • #91679

    I wrote a code that works in GBP/USD and was trying to test it on EUR/JPY today. but I saw the decimal point was in a different place (so instead of 1.2934 it was 129.34)

    I created a param called multiplicationFacotr and just divided by 100 and thought it would work. BUT…

    the program totally ignores my stake size requests. no matter what I put there the position size is set to 1 and the amount won/loss is way over the amount I am setting

    Here is a short part of the program (I didn’t think it was useful to post it all here). what am I doing wrong?

     

    #91869

    Surely this can’t be correct?

    100* a close of (for example) 1.3200 can’t be what you want??

     

     

    1 user thanked author for this post.
    #91889

    This is just setting the min value so that the first low will surely be greater and will replace this value. so it is a temp param to start the min (x,y) function

    I will explain in the other thread a bit more about the problem, maybe that would shed some light on the issue.

    Thanks again!

    #91897

    I will explain in the other thread a bit more about the problem,

    aland – This is a prime example of why double posts on the same subject are frowned upon. Please refrain from double posting with future topics as it just leads to confused and fragmented discussion. If you think your first question has not received any answers because it was maybe not clear enough then a second reply on the same topic to clarify things and to bump it back to the top of the list works far better than double posting.

    For anyone reading this in the future and wondering where the other discussion is – it is here:

    https://www.prorealcode.com/topic/how-to-change-code-between-fx-markets/

    I think it is best if everyone posts only there from now.

    1 user thanked author for this post.
Viewing 4 posts - 1 through 4 (of 4 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login