strategy stops due to rejection

Forums ProRealTime English forum ProOrder support strategy stops due to rejection

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

    Hi Guys,

    This may be in the wrong spot but im hoping someone can help with an issue i keep getting on my demo account. I have made a rudimentary code that is not finished by any stretch but i wanted to try it out anyway & see how often it triggers live as the testing was throwing odd errors.

    The issue is that it always stops the system with a rejection saying that the account needs more cash. I get that its a funding issue but i don’t see why it is buying such a large number of contracts to create rejection when it is set to buy only 1 & have tight stop/profit.

    I also noticed that it trying to buy well above “atmarket” price.

    Admin, please remove/move if not in correct location.

    thanks in advance.

     

    #149957

    It’s definitely NOT a tight stop!

    10 is NOT 10 pips, but a price difference, which means that a trade entere at 0.7777 will have a SL set at -19.xxx (so it will be disabled).

    But don’t worry, it’s just a mettere of a couple of p‘s, replace lines 31 and 32 with:

    the leading “p” means pips, if it’s missing then a price difference is assumed, so 10 would be considerend a price difference of 10.0000 (100K pips).

     

    1 user thanked author for this post.
    #149958

    Thanks Roberto, im still learning the ins & outs of pro real code. Such subtle differences 😉

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