diff options
author | loit <michael.foiani@gmail.com> | 2025-07-29 21:15:50 -0400 |
---|---|---|
committer | loit <michael.foiani@gmail.com> | 2025-07-29 21:15:50 -0400 |
commit | 9e58ec4f60cd42111ed4d5d52830c2402bae263b (patch) | |
tree | 4d9ba3d4fc22c8baad08895c94d97682475a01a1 /app.py | |
parent | 4722ce02ff70cd30ceb11b0ffa93f4e53ca6f80c (diff) |
fix small bugs
Diffstat (limited to 'app.py')
-rw-r--r-- | app.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -70,6 +70,7 @@ def display_color(ticker, period, interval): chart_data = trial_data['chart_data'] backtest_results = trial_data['backtest_results'] + url_params = trial_data['url_params'] percent_gain = backtest_results['percent_gain'] error_style = {"color" : "red"} @@ -107,7 +108,7 @@ def display_color(ticker, period, interval): ] + algo_graphs + buy_sell_scatters, layout = go.Layout( title=go.layout.Title(text='Chart for ' + chart_data['name']), - xaxis=go.layout.XAxis(title='Date (dt=' + interval + ', range=' + period + ')'), + xaxis=go.layout.XAxis(title='Date (dt=' + url_params['interval'] + ', range=' + url_params['period'] + ')'), yaxis=go.layout.YAxis(title='Price ($)') ) ) |