Averaging down/up code is not working

Forums ProRealTime English forum ProOrder support Averaging down/up code is not working

Viewing 7 posts - 1 through 7 (of 7 total)
  • #120613

    I want to sell 10 contacts first 4 at market then 3 , 2, 1 at last trade price – nu, this code is not working for shortpostions, where the long position code is working fine where i replaced just close<tradprice+nu then, what is wrong with  this code?

    #120614

     

    #120616

    Change LONGONMARKET to SHORTONMARKET?

    #120617

    rama – Please give your topics more meaningful titles otherwise we end up with a forum full of meaningless ‘code is not working’ topics. I have edited your topic title.

    #120618

    You need it as below (If shortonmarket, countofposition <=7 etc    …

    not tested though

     

    #120619

    Yeah it works! 🙂

    CountofPosition of Shorts need a – / minus so – 4, -7 etc

     

    #120621

    Well spotted GraHal – I didn’t spot that COUNTOFPOSITION was not shown as negative for short positions. You’re getting pretty good at this code analysis!

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

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