open new position when long onmarket

Forums ProRealTime English forum ProOrder support open new position when long onmarket

Viewing 3 posts - 1 through 3 (of 3 total)
  • #150541

    Hi Guys,

    Im having trouble with the above code working on a forex pair. I have looked & read a few posts about this & it all seems to make sense but when i apply it to a forex pair it doesn’t seem to have the effect of opening extra positions. I have tried running the code without the extra position & i get the same amount of trades. ie it doesn’t add more.

    Am i missing something here?

    Apologies if this has been posted before regarding forex. I have had a decent look & can only find posts relevant to shares. even still i have ran he math & it should enter a trade but doesnt seem to

     

    #150542

    Hi,

    Can’t help but notice you don’t mention (in order to rule it out as possible cause) having activated cumulating orders with the appropriate defparam line at the beginning of the code, so in absence of visibility of the whole code I have to ask just in case, do you have this line set on “TRUE” at the beginning of the code?

    https://www.prorealcode.com/documentation/cumulateorders/

     

    1 user thanked author for this post.
    #150548

    Yes that was it, thanks Noobywan. i changed it to false to see if something else was causing a separate issue & forgot to reset it (I feel a bit silly).

Viewing 3 posts - 1 through 3 (of 3 total)

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