Skip to content

Commit

Permalink
Remove y-axis scaling logic for PnL graph kernc#356
Browse files Browse the repository at this point in the history
  • Loading branch information
zlpatel committed Jun 13, 2021
1 parent 1494396 commit 95e03f8
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions backtesting/autoscale_cb.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,6 @@ window._bt_autoscale_timeout = setTimeout(function () {
min = Math.min.apply(null, source.data['ohlc_low'].slice(i, j));
_bt_scale_range(ohlc_range, min, max, true);

if (pl_range) {
max = Math.max.apply(null, source.data['return_pct'].slice(i, j));
min = Math.min.apply(null, source.data['return_pct'].slice(i, j));
if(min && max){
_bt_scale_range(pl_range, min, max, true);
}
}

if (volume_range) {
max = Math.max.apply(null, source.data['Volume'].slice(i, j));
_bt_scale_range(volume_range, 0, max * 1.03, false);
Expand Down

0 comments on commit 95e03f8

Please sign in to comment.