Skip to content

Commit

Permalink
Merge branch 'main' into taku/support-mfi
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuz authored Apr 25, 2023
2 parents 3b8ec2c + 0d00679 commit f3d27d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backtest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ Limit order will be placed and open until either it is executed or cancelled.

## Order Entry/Exit States

On each `OnNextOHLCV` method, `Entry()` and `Exit()` allows to enter and exit a position.
On each `OnNextOHLCV` method, `Entry()` and `Exit()` enters and exits a position, respectively.

### Entry()

- Calling `Entry()` without a limit price will execute on the next bar's open
- Calling `Entry()` with a limit price will execute at the limit price if the next bar's low is equal to or below the limit price. The scenario is the same for short orders using the bar's high value.
- Calling `Entry()` with a limit price that doesn't execute on the next bar's low will be an open order until it is executed or canceled.


### Exit()

Expand Down

0 comments on commit f3d27d0

Please sign in to comment.