Update Trader to Trading

This commit is contained in:
Barry Low committed 2019-03-23 13:23:13 +01:00
1 parent a022521343
commit 73815df2d7
4 files changed
+12 -12

No files matched your search

+5 -5
View File
@@ -43,7 +43,7 @@ class AddClone extends Component {
month: 1,
processName: '',
//TraderBot
//TradingBot
timePeriod: '01-hs',
//Error handlers
@@ -155,7 +155,7 @@ class AddClone extends Component {
<FormHelperText>{this.state.selectedBot.kind}</FormHelperText>
</FormControl>
{ this.state.selectedBot.kind === "Trader" &&
{ this.state.selectedBot.kind === "Trading" &&
<React.Fragment>
<Typography className={classes.typography} variant='subtitle1' align='justify'>
Available Running Modes are Backtest and Live.
@@ -522,7 +522,7 @@ class AddClone extends Component {
}
}
if(this.state.selectedBot.kind === "Trader"){
if(this.state.selectedBot.kind === "Trading"){
variables.clone.runAsTeam = this.state.runAsTeam
variables.clone.processName = 'Trading-Process'
variables.clone.timePeriod = this.state.timePeriod
@@ -547,7 +547,7 @@ class AddClone extends Component {
}
getBotTypeFromKind(kind){
if(kind === 'Trader')
if(kind === 'Trading')
return 'Trading'
else if(kind === 'Indicator')
return 'Indicator'
@@ -607,7 +607,7 @@ class AddClone extends Component {
this.setState(state => ({ modeError: true }));
}
if(this.state.selectedBot.kind !== "Trader"
if(this.state.selectedBot.kind !== "Trading"
&& this.state.processName.length < 1 ) {
isError = true
this.setState(state => ({ processNameError: true }));
+3 -3
View File
@@ -44,7 +44,7 @@ class ListClones extends Component {
</div>
<div className={classes.heading}>
<Typography className={classes.heading}>
{ clone.processName } / { clone.botType === 'Trader' ? tradingStartModesList[clone.mode] : indicatorStartModes[clone.mode] }
{ clone.processName } / { clone.botType === 'Trading' ? tradingStartModesList[clone.mode] : indicatorStartModes[clone.mode] }
</Typography>
</div>
</ExpansionPanelSummary>
@@ -90,7 +90,7 @@ class ListClones extends Component {
<div className={classes.details}>
<div className={classes.column4}>
<Typography className={classes.cloneInfoBold}>Last Execution:</Typography>
{ (clone.botType === 'Trader' && isDefined(clone.assetA) ) &&
{ (clone.botType === 'Trading' && isDefined(clone.assetA) ) &&
<React.Fragment>
<Typography className={classes.cloneInfoBold}>Buy Average:</Typography>
<Typography className={classes.cloneInfoBold}>Sell Average:</Typography>
@@ -102,7 +102,7 @@ class ListClones extends Component {
</div>
<div className={classes.column4}>
<Typography className={classes.cloneInfoNormal}>{ toLocalTime(clone.summaryDate) }</Typography>
{ (clone.botType === 'Trader' && isDefined(clone.assetA) ) &&
{ (clone.botType === 'Trading' && isDefined(clone.assetA) ) &&
<React.Fragment>
<Typography className={classes.cloneInfoNormal}>{clone.buyAverage}</Typography>
<Typography className={classes.cloneInfoNormal}>{clone.sellAverage}</Typography>