diff --git a/README.md b/README.md index c50be0f03..6f02a8bfd 100644 --- a/README.md +++ b/README.md @@ -960,7 +960,7 @@ A simulation is the visual representation over the charts of any of the forms of * **Backtesting:** testing over historic data; * **Paper-trading:** testing over a live data feed, without placing orders at the exchange (orders are simulated); -* **Forward testing:** testing over a live data feed, placing actual orders at the exchange for a fraction of the defined *[positionSize](#internal)*. +* **Forward testing:** testing over a live data feed, placing actual orders at the exchange for a fraction of the available balance. We will cover *forward testing* when we discuss live trading. For the time being, we will focus on the first two steps of the strategy testing process. @@ -1221,13 +1221,23 @@ Like with paper trading sessions, you only require a *finalDatetime*. If you do **2. Forward Testing Session Configuration** -In the case of forward testing you will want to configure what is the percentage of your capital that you wish to use for testing. You do this by clicking the *Edit Session* option on the session's menu and entering the desired value in the code snipet: +In the case of forward testing you will want to configure what is the percentage of your balance that you wish to use for testing. You do this by clicking the *Edit Session* option on the session's menu and entering the desired value in the code snipet: ``` {"balancePercentage": 1} ``` -The number you enter is applied as a percentage of the *positionSize* you defined on the [Open Stage](#open-stage) of the strategy. For instance, ```"balancePercentage": 1``` means the position will be set for 1% of the defined *postionSize*. +The number you enter is applied as a percentage of *balanceAssetA* or *balanceAssetB* (for BTC and USDT-based strategies respectively) to obtain the forward-testing balance that will be available to the *positionSize* formula you defined on the [Open Stage](#open-stage) of the strategy. + +For instance, ```"balancePercentage": 1``` means that 1% of your balance will be made available. + +Let's draw a quick example: + +Your base asset is USDT and your *initialBalance* is USDT 10,000. + +If you set up your forward-testing session with ```"balancePercentage": 1```, then USDT 10,000 * 1% = **USDT 100**. This is the balance that will be available to your forward-testing session. + +> **NOTE:** You need to take this into account at the time of defining your *positionSize* formula. If the formula is a constant, you may easily run out of balance, as only a fraction of the balance will be available for the strategy to use. It may be a good idea to set up your *positionSize* as a function of your available balance instead. The following topics cover information that is common both to forward testing and live trading sessions.