Can someone else confirm that the countofposition (and countoflongshares; countofshortshares) is working in v11?
I am using conditional instructions to open a limited amount of positions but the backtest engine just keeps adding positions indefinitely:
MaxPositions = 3
If (onmarket = 0 or countofposition <= MaxPositions) and ConditionLong Then
Buy 1 contract at market
ElsIf (onmarket = 0 or countofposition <= MaxPositions) and ConditionShort Then
Sellshort 1 contract at market
EndIf
Nevermind! Forgot to use abs(countofpositions)
Coding questions go to each of the dedicated forum sub-sections, as described in the forum rules. The ProRealTime forum is for platform questions/issues not related to programming.
I am aware, thought it was a v11 bug. Turns out it was an ID10T issue