Last Position and Performance fallacy

Forums ProRealTime English forum ProOrder support Last Position and Performance fallacy

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

    Hi Everyone,

    Could anyone help me get me started in creating some code ? I’ve looked at many functions (positionperf, countofposition) and can’t figure this one out.

    I’m looking to count previous positions. My thinking is to reject “gamblers fallacy”, i.e. Entries are not statistically independent when an overall system is following a trend.

    For example, if last my last 3 closed positions in profit were: Long , Long , Long => Count of 3 => The likelihood of a 4th Long resulting in gains is minimal, and therefore avoid taking a 4th Long (given prior conditions are met).

    Thanks in advance,

    Regards,

     

    #9230

    This will only show open positions and not closed.

     

    #9250

    I think you can use a loop over the last n ‘positionperf’, to count if their profit were in the same row, and then modify a variable to tell your strategy to trade or not:

     

    2 users thanked author for this post.
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