Hello,
how can I have e.g. two spread indicators on the same scale in one subchart?
I have problems to do this on two ways:
1.) Have two separate spread indicators in one subchart
2.) Have two spread indicators in one script
The result is like in the screenshot, the second spread indicator is not absolute on the same scale than the first. I tried all combinations under Format Study: Scale Type...
Only in "User defined" it is working on one scale, but I need it in "Screen" Type.
What can I do?
Thanks
Two indicators on same scale?
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007
Hi dupl,
The price scale is made to show values for one symbol or one indicator only. That's why it will only show the values for one of those two indicators.
However, when two spread indicators are written within the same script both values will be displayed on the scale.
You can use the script below as a sample:
nputs: DataSeries1( Close of data1 ), DataSeries2( Close of data2 ) ;
inputs: DataSeries3( Close of data3 ), DataSeries4( Close of data4 ) ;
Plot1( DataSeries1 - DataSeries2, "SprdDiff1" ) ;
Plot2( DataSeries3 - DataSeries4, "SprdDiff2" ) ;
The price scale is made to show values for one symbol or one indicator only. That's why it will only show the values for one of those two indicators.
However, when two spread indicators are written within the same script both values will be displayed on the scale.
You can use the script below as a sample:
nputs: DataSeries1( Close of data1 ), DataSeries2( Close of data2 ) ;
inputs: DataSeries3( Close of data3 ), DataSeries4( Close of data4 ) ;
Plot1( DataSeries1 - DataSeries2, "SprdDiff1" ) ;
Plot2( DataSeries3 - DataSeries4, "SprdDiff2" ) ;
Thanks, this works.
But (like on the screenshot), sometimes the Y Scale changes. I saw this sometimes before and now watched, that this change happend if I scroll right from e.g. time 16:27:20 to 16:27:30!
The decimal places in the scale of the indicator change from two to nine, only if I scroll right and if scrolling further, the decimal places changing again from nine to two.
Thanks
But (like on the screenshot), sometimes the Y Scale changes. I saw this sometimes before and now watched, that this change happend if I scroll right from e.g. time 16:27:20 to 16:27:30!
The decimal places in the scale of the indicator change from two to nine, only if I scroll right and if scrolling further, the decimal places changing again from nine to two.
Thanks
- Attachments
-
- y-scale.PNG
- (14.41 KiB) Downloaded 448 times
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007