Two indicators on same scale?

Questions about MultiCharts and user contributed studies.
dupl
Posts: 158
Joined: 04 Jul 2007

Two indicators on same scale?

Postby dupl » 20 Nov 2007

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
Attachments
sp_scale2.PNG
(11.64 KiB) Downloaded 441 times

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 21 Nov 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" ) ;

dupl
Posts: 158
Joined: 04 Jul 2007

Postby dupl » 22 Nov 2007

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
Attachments
y-scale.PNG
(14.41 KiB) Downloaded 448 times

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 22 Nov 2007

Hi dupl,

In the current MC version, if the indicator's scale is in the Screen mode, scrolling of the chart results in the price scale precision adjustment.

To avoid the above effect, you can use Entire Data Series or User Defined modes for the indicator's scaling.


Return to “MultiCharts”