This commit is contained in:
David Brazda
2023-11-20 19:44:05 +01:00
parent 320776689c
commit 579e0bc599
3 changed files with 6 additions and 2 deletions

View File

@ -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)

View File

@ -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>

View File

@ -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" );
});