positionperf

Viewing 4 posts - 1 through 4 (of 4 total)
  • #14380
    Abz

    hello

    i have an scenario with positionperf(1).

    if i traded on monday and tuesday there was no trades on wednesday if i refer to ”  if positionperf(1) > 1 then ………..”  will it use the trade on monday then?

    #14389

    Yes it refers to the previous trade of the current strategy’ trades history.

    #37882

    I am using this code which is not working any reasons?

    x2=1

    IF longonmarket and positionperf(1) > .00015 and COUNTOFPOSITION <= 100 THEN
    buy 1 perpoint at tradeprice+x2 stop

    endif

     

    my intention is to open new position on  dax after .00015% gain that is on 12800=.00015*120800/100=1.92

     

    @ tradepirce+2.92 = 12800+2.92(from the last order traded)

    #37888

    You can “GRAPH positionperf”, to have a clear view of what positionperf is returning as a value. Then you’ll be able to make conclusion on what’s wrong in your code or your calculation.

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

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