Don't plot a double value on a chart
Author: quaresma
Creation Date: 12/4/2018 1:46 PM
profile picture

quaresma

#1
Hello, i'm some question.
I'm calculate in my strategie some value double type, on each bar.
And at some point I wanted to display it graphically, but dot't search method which would allow it to be done. Usually I use PlotSeries, but he input DataSeries not double value.
Please tell me how it is better to implement
Thank you

profile picture

Eugene

#2
Hi,

If you're in doubt about what data type your DataSeries holds, please refer to the WealthScript Programming Guide > DataSeries > Characteristics of DataSeries:

QUOTE:
1. A DataSeries is a series of floating point data values of type double. Consequently, each value in the series is double precision (14 to 15 significant digits).


All values are a double. So if your problem is that you're trying to not plot the value on some bar then follow this trick in my post #2:

Indicator with fewer points than the DataSeries
profile picture

quaresma

#3
Thank you for help
profile picture

Eugene

#4
My pleasure.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).