No, it's not illegal, but some operators may qualify particular strategies as cheating. So, you should first learn how to win at the casino without using complex systems.