Pinescript doesn’t work properly during backtesting

It looks like I’m going to be a millionaire soon. The statistic that below is impossible. So why does it not work properly?
Trading Tools

Haftungsausschluss