Thx Egor!
TotalInvested is easy to use in a line with Call Force but im having some truble using it with Fold Force.
Yesterday happened something strange: bot had AA from button, raised, 3 calls.
On flop oppo went instantly all in for 240 bb in a 22bb pot, and bot called. And I lost 240 bb

The flop was on 8 T Q rainbow. Oppo had 9Jo

The line executed says "When (Bet = 1 and Raises = 0) and AmounTtoCall > 49% PotSize Raise 70% Force
So I want to put something to prevent this.
What about:
When (HaveOverPair) and not (HaveFullHouse or HaveStraight or HaveNutFlushDraw or ...)
When (Bets = 1 or Raises > 0) and AmountToCall > 66% PotSize and Stacksize > 110 and (not TotalInvestet > 100% Stacksize) and not (AmountToCall < 51 or (AmountToCall < 71 and OpponentIsAllIn) Fold Force
To place on top of flop and turn?
66% PotSize is ok?
Ps.Stacksize is read at the beginning of every betting round, right?