Skip to content

Commit

Permalink
fixed readability
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Dekkers committed May 27, 2023
1 parent d41c4ad commit d4db212
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/INSTALL.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,6 @@ The output should look something like this:
1000M 500 20000 100 345ms 1387ms 44519ms 2962ms 1000K 337M
----

The main purpose is to test the performance and stability of the back-test engine itself, not any specific feed, strategy or metric. So the overhead of those type of components is kept to a minimum, while still running full back tests.
NOTE: The main purpose is to test the performance and stability of the back-test engine itself, not any specific feed, strategy or metric. So the overhead of those components is kept to a minimum, while still running full back tests.


14 changes: 7 additions & 7 deletions roboquant/src/main/kotlin/org/roboquant/orders/BracketOrder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ import org.roboquant.common.Size
* and [stopLoss] orders should be opposite of the [entry] order.
*
* Although the SimBroker is very flexible and supports any type of single order, real brokers often are more limited.
* So it is advised to restrict your orders to the following subsets if you want to go live:
* So it is advised to restrict your bracket orders to the following subsets if you plan to go live:
*
* - entry order - either a Market or Limit order
* - takeProfit - a Limit order
* - stopLoss - a StopLoss or StopLimit order
* - The entry order - either a Market or Limit order
* - The takeProfit order - a Limit order
* - The stopLoss order - a StopLoss or StopLimit order
*
* @property entry the entry order
* @property takeProfit the take profit order
Expand Down Expand Up @@ -85,9 +85,9 @@ class BracketOrder(

/**
* Create a bracket order meeting the following criteria:
* - the entry order is a [LimitOrder] with the provided [limitPrice], [asset] and [size]
* - the take profit order is a [TrailOrder] with the specified [trailPercentage]
* - the stop loss order is a [StopOrder] using a stop priced based on the provided [stopPercentage] relative
* - the entry-order is a [LimitOrder] with the provided [limitPrice], [asset] and [size]
* - the take-profit order is a [TrailOrder] with the specified [trailPercentage]
* - the stop-loss order is a [StopOrder] using a stop priced based on the provided [stopPercentage] relative
* to the limitPrice.
*/
@Suppress("LongParameterList")
Expand Down

0 comments on commit d4db212

Please sign in to comment.