Skip to content

Commit

Permalink
fix: change overbought oversold color and make colorpicker work (#1536)
Browse files Browse the repository at this point in the history
  • Loading branch information
henry-deriv authored Mar 26, 2024
1 parent 2e5d01a commit e6d0b61
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/Constant.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,10 @@ const getSMIIndicatorConfig: TDefaultIndicatorConfigFn = () => ({
signalLineStyle: clone(lineStyle),
pipSize: 2,
showLastIndicator: true,
smiOscillatorLimits: {
overboughtStyle: { ...clone(lineStyle), color: '#626b73'},
oversoldStyle: { ...clone(lineStyle), color: '#626b73'},
},
},
parameters: [
{
Expand Down Expand Up @@ -1091,28 +1095,30 @@ const getSMIIndicatorConfig: TDefaultIndicatorConfigFn = () => ({
},
{
paths: {
value: 'overboughtValue',
value: 'smiOscillatorLimits.overboughtValue',
color: 'smiOscillatorLimits.overboughtStyle.color',
},
group_key: 'over_bought',
title: t.translate('OverBought'),
type: 'numbercolorpicker',
category: 'parameters',
defaultValue: {
value: 40,
color: '#000000',
color: '#626b73',
},
},
{
paths: {
value: 'oversoldValue',
value: 'smiOscillatorLimits.oversoldValue',
color: 'smiOscillatorLimits.oversoldStyle.color',
},
group_key: 'over_sold',
title: t.translate('OverSold'),
type: 'numbercolorpicker',
category: 'parameters',
defaultValue: {
value: -40,
color: '#000000',
color: '#626b73',
},
},
{
Expand Down

0 comments on commit e6d0b61

Please sign in to comment.