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,