For everybody watching this thread, the present method of executing trades via notebook is not recommended.
The right way is to turn them into python scripts, which I would cover soon.
Also, create 2 separate copies of the system, one for live trading and one for backtesting.
We would soon turn our complex code into something more simple so that we coud just present our backtesting rules for the system to perform the rest.
Also, get used to the payoff concept I introduced somewhere in the middle of this thread.
The original system proposed in the post has been now changed so that
The right way is to turn them into python scripts, which I would cover soon.
Also, create 2 separate copies of the system, one for live trading and one for backtesting.
We would soon turn our complex code into something more simple so that we coud just present our backtesting rules for the system to perform the rest.
Also, get used to the payoff concept I introduced somewhere in the middle of this thread.
The original system proposed in the post has been now changed so that
- We place orders only when the price is below open
- We place only STOP LOSS LIMIT orders so that our stock is picked at exactly the price we expect
- We exclude open = high cases from the results
- Added commission