Multi data stream

Questions about MultiCharts and user contributed studies.
User avatar
danilo
Posts: 170
Joined: 02 Jan 2007
Location: Italy
Has thanked: 4 times
Been thanked: 8 times

Multi data stream

Postby danilo » 30 Dec 2007

I have put in a chart the same symbol with 2 different time-frames 5m and and 30m, then I have used the indicator "Price < Avg" using as data stream the "close of data2". I was expecting to have the same behviour of the second subchart (on second data stream) that use just the close. But the 2 subcharts are differents what it's wrong ?

(see attachement for an example)
Attachments
MC PaintBar.jpg
Multi data-stream chart
MC PaintBar.jpg (240.18 KiB) Viewed 138 times

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

Postby Marina Pashkova » 09 Jan 2008

Hello Danilo,

Try using the script below. If it doesn't plot what you would like to see plotted, please send us the script you've been using.

input: Price(close), Length(14);

if Price < Average(Price, Length) then
plotpb(h,l,o,c,"",red)
else
plotpb(h,l,o,c,"",blue);


Regards.


Return to “MultiCharts”