Update forcebuy to forceentry

This commit is contained in:
Matthias 2022-04-08 07:44:28 +02:00
parent 6b5f8e84f7
commit 8f03909119
4 changed files with 15 additions and 3 deletions

View File

@ -41,7 +41,7 @@
<ForceSellIcon />
</button>
<button
v-if="botState && botState.forcebuy_enabled"
v-if="botState && (botState.force_entry_enable || botState.forcebuy_enabled)"
class="btn btn-secondary btn-sm ml-1"
:disabled="!isTrading || !isRunning"
title="Force enter - Immediately buy an asset at an optional price. Sells are then handled according to strategy rules."

View File

@ -28,7 +28,8 @@
</p>
<p>
Currently <strong>{{ botState.state }}</strong
>, <strong>forcebuy: {{ botState.forcebuy_enabled }}</strong>
>,
<strong>force entry: {{ botState.force_entry_enable || botState.forcebuy_enabled }}</strong>
</p>
<p>
<strong>{{ botState.dry_run ? 'Dry-Run' : 'Live' }}</strong>

View File

@ -124,7 +124,8 @@ export interface BotState {
unfilledtimeout: UnfilledTimeout;
order_types: OrderTypes;
exchange: string;
forcebuy_enabled: boolean;
forcebuy_enabled?: boolean; // Deprecated
force_entry_enable?: boolean;
max_open_trades: number;
minimal_roi: object;
stake_amount: string;

View File

@ -272,6 +272,14 @@
>
</CandleChartContainer>
</div>
<b-card header="Single trades" class="row mt-2 w-100">
<TradeList
class="row trade-history mt-2 w-100"
:trades="selectedBacktestResult.trades"
:show-filter="true"
:stake-currency="selectedBacktestResult.stake_currency"
/>
</b-card>
</div>
</div>
</template>
@ -289,6 +297,7 @@ import CumProfitChart from '@/components/charts/CumProfitChart.vue';
import TradesLogChart from '@/components/charts/TradesLog.vue';
import PairSummary from '@/components/ftbot/PairSummary.vue';
import TimeframeSelect from '@/components/ftbot/TimeframeSelect.vue';
import TradeList from '@/components/ftbot/TradeList.vue';
import {
BacktestPayload,
@ -318,6 +327,7 @@ const ftbot = namespace(StoreModules.ftbot);
ValuePair,
PairSummary,
TimeframeSelect,
TradeList,
},
})
export default class Backtesting extends Vue {