Created
August 16, 2023 18:58
-
-
Save boskiv/461e0def77663c829cb4ae399bbdbaf1 to your computer and use it in GitHub Desktop.
shape error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const bigTradesCircles = (PineJS: PineJS): CustomIndicator => { | |
return { | |
name: 'Big trades', | |
metainfo: { | |
_metainfoVersion: 51, | |
id: 'big-trades-circles@tv-basicstudies-1' as RawStudyMetaInfoId, | |
description: 'Big trades', | |
shortDescription: 'Big trades', | |
is_hidden_study: false, | |
is_price_study: true, | |
isCustomIndicator: true, | |
format: { | |
type: 'price', | |
precision: 4, | |
}, | |
plots: [ | |
{ id: 'tinyShapePlot', type: StudyPlotType.Shapes }, | |
{ | |
id: 'tinyShapeColorer', | |
type: StudyPlotType.Colorer, | |
target: 'tinyShapePlot', | |
palette: 'tinyShapePalette', | |
}, | |
{ id: 'smallShapePlot', type: StudyPlotType.Shapes }, | |
{ | |
id: 'smallShapeColorer', | |
type: StudyPlotType.Colorer, | |
target: 'smallShapePlot', | |
palette: 'smallShapePalette', | |
}, | |
{ id: 'normalShapePlot', type: StudyPlotType.Shapes }, | |
{ | |
id: 'normalShapeColorer', | |
type: StudyPlotType.Colorer, | |
target: 'normalShapePlot', | |
palette: 'normalShapePalette', | |
}, | |
{ id: 'largeShapePlot', type: StudyPlotType.Shapes }, | |
{ | |
id: 'largeShapeColorer', | |
type: StudyPlotType.Colorer, | |
target: 'largeShapePlot', | |
palette: 'largeShapePalette', | |
}, | |
{ id: 'hugeShapePlot', type: StudyPlotType.Shapes }, | |
{ | |
id: 'hugeShapeColorer', | |
type: StudyPlotType.Colorer, | |
target: 'hugeShapePlot', | |
palette: 'hugeShapePalette', | |
}, | |
], | |
filledAreas: [], | |
palettes: { | |
tinyShapePalette: { | |
valToIndex: { | |
0: 0, | |
1: 1, | |
}, | |
colors: { | |
0: { name: 'Sell volume' }, | |
1: { name: 'Buy volume' }, | |
}, | |
}, | |
smallShapePalette: { | |
valToIndex: { | |
0: 0, | |
1: 1, | |
}, | |
colors: { | |
0: { name: 'Sell volume' }, | |
1: { name: 'Buy volume' }, | |
}, | |
}, | |
normalShapePalette: { | |
valToIndex: { | |
0: 0, | |
1: 1, | |
}, | |
colors: { | |
0: { name: 'Sell volume' }, | |
1: { name: 'Buy volume' }, | |
}, | |
}, | |
largeShapePalette: { | |
valToIndex: { | |
0: 0, | |
1: 1, | |
}, | |
colors: { | |
0: { name: 'Sell volume' }, | |
1: { name: 'Buy volume' }, | |
}, | |
}, | |
hugeShapePalette: { | |
valToIndex: { | |
0: 0, | |
1: 1, | |
}, | |
colors: { | |
0: { name: 'Sell volume' }, | |
1: { name: 'Buy volume' }, | |
}, | |
}, | |
}, | |
defaults: { | |
filledAreasStyle: {}, | |
palettes: { | |
tinyShapePalette: { | |
colors: { | |
0: { color: 'rgba(243, 60, 48, 0.5)', width: 1, style: 0 }, | |
1: { color: 'rgba(91, 254, 217, 0.5)', width: 1, style: 0 }, | |
}, | |
}, | |
smallShapePalette: { | |
colors: { | |
0: { color: 'rgba(243, 60, 48, 0.5)', width: 1, style: 0 }, | |
1: { color: 'rgba(91, 254, 217, 0.5)', width: 1, style: 0 }, | |
}, | |
}, | |
normalShapePalette: { | |
colors: { | |
0: { color: 'rgba(243, 60, 48, 0.5)', width: 1, style: 0 }, | |
1: { color: 'rgba(91, 254, 217, 0.5)', width: 1, style: 0 }, | |
}, | |
}, | |
largeShapePalette: { | |
colors: { | |
0: { color: 'rgba(243, 60, 48, 0.5)', width: 1, style: 0 }, | |
1: { color: 'rgba(91, 254, 217, 0.5)', width: 1, style: 0 }, | |
}, | |
}, | |
hugeShapePalette: { | |
colors: { | |
0: { color: 'rgba(243, 60, 48, 0.5)', width: 1, style: 0 }, | |
1: { color: 'rgba(91, 254, 217, 0.5)', width: 1, style: 0 }, | |
}, | |
}, | |
}, | |
styles: { | |
tinyShapePlot: { | |
location: MarkLocation.Absolute, | |
plottype: 'shape_circle', | |
textColor: 'rgba(255, 255, 255, 0.5)', | |
color: 'rgba(255, 255, 255, 0.5)', | |
}, | |
smallShapePlot: { | |
location: MarkLocation.Absolute, | |
plottype: 'shape_circle', | |
textColor: 'rgba(255, 255, 255, 0.5)', | |
color: 'rgba(255, 255, 255, 0.5)', | |
}, | |
normalShapePlot: { | |
location: MarkLocation.Absolute, | |
plottype: 'shape_circle', | |
textColor: 'rgba(255, 255, 255, 0.5)', | |
color: 'rgba(255, 255, 255, 0.5)', | |
}, | |
largeShapePlot: { | |
location: MarkLocation.Absolute, | |
plottype: 'shape_circle', | |
textColor: 'rgba(255, 255, 255, 0.5)', | |
color: 'rgba(255, 255, 255, 0.5)', | |
}, | |
hugeShapePlot: { | |
location: MarkLocation.Absolute, | |
plottype: 'shape_circle', | |
textColor: 'rgba(255, 255, 255, 0.5)', | |
color: 'rgba(255, 255, 255, 0.5)', | |
}, | |
}, | |
precision: 2, | |
inputs: { | |
volumeFilter: 3, | |
}, | |
}, | |
styles: { | |
tinyShapePlot: { | |
size: PlotSymbolSize.Tiny, | |
title: 'Tiny volume', | |
}, | |
smallShapePlot: { | |
size: PlotSymbolSize.Small, | |
title: 'Small volume', | |
}, | |
normalShapePlot: { | |
size: PlotSymbolSize.Normal, | |
title: 'Normal volume', | |
}, | |
largeShapePlot: { | |
size: PlotSymbolSize.Large, | |
title: 'Large volume', | |
}, | |
hugeShapePlot: { | |
size: PlotSymbolSize.Huge, | |
title: 'Huge volume', | |
}, | |
}, | |
inputs: [ | |
{ | |
id: 'volumeFilter', | |
name: 'Volume filter', | |
defval: 3, | |
type: StudyInputType.Integer, | |
}, | |
], | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment