Look good, the spread condition look ok to me and certainly not like beginner.

But I know no stock where spread is 5, spread is normally 0.01 or 0.0005 or so. Maybe you mean 5 pips? Also you should have another condition aside from spread, or else your code will open 1000 trades very quick.