Problem with contract size in BUY order when using a variable with round fun.

Forums ProRealTime English forum ProOrder support Problem with contract size in BUY order when using a variable with round fun.

  • This topic has 4 replies, 3 voices, and was last updated 7 years ago by avatarLeo.
Viewing 5 posts - 1 through 5 (of 5 total)
  • #64421

    Hello,

    I want the quantity of contract to increase/decrease as the strategyprofit increases. So i tried the following code together with the BUY order command:

    If I change the ContractSize variable and set any integer number (1, 2, etc), it works. So I’m  not sure if the result of the round function is giving me trouble.

    anyone has had the same problem?

    #64446

    Try with:

    If it doesnt work, try to

    in your backtest.

    1 user thanked author for this post.
    #64457

    Thanks!

    I was looking for a way to check the variables values, I’ll try that and get back to you.

    #64643

    The problem was i was using pipvalue to calculate the contract size with the SP500 index. I started using the SP500 Futures instead (ESXXXX) and the formula started working.

     

    thanks a lot!

    #64646
    Leo

    Try this:

     

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

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