bugfix
This commit is contained in:
@ -195,7 +195,7 @@ def generate_trading_report_image(runner_ids: list = None, batch_id: str = None,
|
||||
|
||||
#Cumulative profit - bud 1 den nebo vice dni
|
||||
if len(runner_ids)== 1:
|
||||
if cumulative_profits:
|
||||
if cumulative_profits.size == 0:
|
||||
# Plot 3: Cumulative Profit Over Time with Max Profit Point
|
||||
max_profit_time = exit_times[np.argmax(cumulative_profits)]
|
||||
max_profit = max(cumulative_profits)
|
||||
|
||||
@ -308,7 +308,7 @@
|
||||
<button id="button_selpage" class="btn btn-outline-success btn-sm">Select all</button>
|
||||
<button id="button_export_xml" class="btn btn-outline-success btn-sm">Export xml</button>
|
||||
<button id="button_export_csv" class="btn btn-outline-success btn-sm">Export csv</button>
|
||||
<button id="button_report" class="btn btn-outline-success btn-sm">Report</button>
|
||||
<button id="button_report" class="btn btn-outline-success btn-sm">Report(q)</button>
|
||||
<!-- <button id="button_stopall" class="btn btn-outline-success btn-sm">Stop All</button>
|
||||
<button id="button_refresh" class="btn btn-outline-success btn-sm">Refresh</button> -->
|
||||
</div>
|
||||
|
||||
@ -889,6 +889,10 @@ function set_timestamp(timestamp) {
|
||||
}
|
||||
|
||||
//KEY shortcuts
|
||||
Mousetrap.bind('q', function() {
|
||||
$( "#button_report" ).trigger( "click" );
|
||||
});
|
||||
|
||||
Mousetrap.bind('e', function() {
|
||||
$( "#button_edit" ).trigger( "click" );
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user