import React, { useState } from 'react'; import SectionMain from '../components/SectionMain'; import LayoutAuthenticated from '../layouts/Authenticated'; import { Button } from '../components/BaseButton'; import * as icon from '@mdi/js'; const StrategyBuilderPage: React.FC = () => { const [maxOpenDeals, setMaxOpenDeals] = useState(false); const [multiplier, setMultiplier] = useState(1); const [orderVolumeEnabled, setOrderVolumeEnabled] = useState(false); const [orderVolume, setOrderVolume] = useState(1); const [backtestEnabled, setBacktestEnabled] = useState(false); return ( {/* Top toolbar */}
{/* Buy/Sell panels */}
{/* Buy Panel */}

Buy

Max. open deals setMaxOpenDeals(!maxOpenDeals)} />
setMultiplier(Number(e.target.value))} />
Order volume setOrderVolumeEnabled(!orderVolumeEnabled)} /> setOrderVolume(Number(e.target.value))} disabled={!orderVolumeEnabled} />
Backtest setBacktestEnabled(!backtestEnabled)} />

Entry when

Enter every 10 ticks below last entry

Exit when

  • close at SL
  • close at TP
  • close if lifetime
{/* Sell Panel */}

Sell

Entry when

Enter every 0 ticks above last entry

Exit when

  • close at SL
  • close at TP
  • close if lifetime
{/* Footer actions */}
); }; StrategyBuilderPage.getLayout = (page: React.ReactElement) => ( {page} ); export default StrategyBuilderPage;