Compound and Parital close function

Forums ProRealTime English forum ProOrder support Compound and Parital close function

Viewing 6 posts - 1 through 6 (of 6 total)
  • #223423

    Hello!

    I have a trading idea that I need help with.

    I can’t get the partial close function to work with my compound effect, does anyone know what I’m doing wrong?

    When i remove line 3 to 5 the partial close function works as it should see attached image.

    thankful for any help 🙂

     

     

     

     

     

     

    #223426

    line 1-9 should be as below

     

    #223449

    Without analysing your code really, it looks like you need to change line 3 to

    Now you assign your capital once, and in the next call of your code (at the next bar(s)) the Capital will increase (or decrease 😉 ).

    Regards,
    Peter

    #223453

    thank you Peter ill try this 🙂

    #223454

    didn’t help :/
    line 12 seems to not work

    Lot2Close = Amount/2  not sure why
    #225700

    I added the ROUND() instruction to make sure there’s only 1 decimal place.

    I also added MinLots to set a minimum number of lots to be traded (but I suggest that it be at least 2, or that the minimun lots to exit is allowed to be half that number, i.e. if you set a max 1 lotsize, then the broker must allow exiting 0.5 lots) and MinExit to exit partial poisitions.

     

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

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