Optimize strategies (#23)
* Update Tradingbox + set limit price * Change discord message
This commit is contained in:
@@ -65,7 +65,7 @@ const CustomMoneyManagement: React.FC<ICustomMoneyManagement> = ({
|
||||
value={takeProfit}
|
||||
onChange={(e: any) => setTakeProfit(e.target.value)}
|
||||
step="0.01"
|
||||
max="20"
|
||||
max="100"
|
||||
type='number'
|
||||
className='input input-bordered'
|
||||
></input>
|
||||
@@ -77,7 +77,7 @@ const CustomMoneyManagement: React.FC<ICustomMoneyManagement> = ({
|
||||
value={stopLoss}
|
||||
onChange={(e: any) => setStopLoss(e.target.value)}
|
||||
step="0.01"
|
||||
max="20"
|
||||
max="100"
|
||||
type='number'
|
||||
className='input input-bordered'
|
||||
></input>
|
||||
|
||||
@@ -169,6 +169,20 @@ const TradeChart = ({
|
||||
chart.current = createChart(chartRef.current, {
|
||||
crosshair: {
|
||||
mode: CrosshairMode.Normal,
|
||||
vertLine: {
|
||||
color: theme.accent,
|
||||
width: 1,
|
||||
style: LineStyle.Solid,
|
||||
visible: true,
|
||||
labelVisible: true,
|
||||
},
|
||||
horzLine: {
|
||||
color: theme.accent,
|
||||
width: 1,
|
||||
style: LineStyle.Solid,
|
||||
visible: true,
|
||||
labelVisible: true,
|
||||
},
|
||||
},
|
||||
grid: {
|
||||
horzLines: {
|
||||
@@ -334,6 +348,7 @@ const TradeChart = ({
|
||||
priceLineColor: theme.info,
|
||||
title: 'SuperTrend',
|
||||
pane: 0,
|
||||
|
||||
})
|
||||
|
||||
const superTrend = strategiesValues.SuperTrend.superTrend?.map((w) => {
|
||||
@@ -409,6 +424,7 @@ const TradeChart = ({
|
||||
precision: 1,
|
||||
type: 'price',
|
||||
},
|
||||
crosshairMarkerVisible: true,
|
||||
})
|
||||
|
||||
paneCount++
|
||||
@@ -453,6 +469,7 @@ const TradeChart = ({
|
||||
precision: 6,
|
||||
type: 'price',
|
||||
},
|
||||
crosshairMarkerVisible: true,
|
||||
})
|
||||
|
||||
const macdData = strategiesValues.MacdCross.macd?.map((w) => {
|
||||
@@ -537,6 +554,7 @@ const TradeChart = ({
|
||||
baseValue: {price: 0, type: 'price'},
|
||||
title: 'ZScore',
|
||||
pane: paneCount,
|
||||
crosshairMarkerVisible: true,
|
||||
})
|
||||
|
||||
const zScore = strategiesValues.StDev.stdDev?.map((w) => {
|
||||
|
||||
Reference in New Issue
Block a user