SlowK & SlowD difference

Questions about MultiCharts and user contributed studies.
duration
Posts: 179
Joined: 20 Dec 2005
Been thanked: 1 time

SlowK & SlowD difference

Postby duration » 20 May 2010

Hello,

Would you know how I could add an "histogram" made of the difference of SlowK & SlowD (Stochastics Slow), so that it looks like the picture?

I have added the following to the Stochastic indicator provided with MC, and selected "Histogram" in the properties, but it plots the histogram from 0, and I would like the histogram to be plotted from the lowest SlowK (or SlowD) value to the highest.

Code: Select all

value1 = p2slowk-p2slowd;
plot5(value1,"DIF",white,1);
Many thanks,
Attachments
histogram.png
(6.85 KiB) Downloaded 523 times

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Postby TJ » 20 May 2010

you have to add one more plot:

Code: Select all

value1 = p2slowk-p2slowd;
plot5(value1,"DIF",white,1);
plot6(-100,"DIF",white,1);
set plot5 as Bar High,
and plot6 as Bar Low

duration
Posts: 179
Joined: 20 Dec 2005
Been thanked: 1 time

Postby duration » 21 May 2010

Hi TJ,

Thank you for your reply.

Sorry but I don't follow you :(

What I wrote was probably not very clear.

Basically I would like the histogram to plot between SlowK & SlowD.

The histogram low is the lowest of Slowk & SlowD, and the histogram high is the highest between SlowK & SlowD. It changes at every bar.

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Postby TJ » 21 May 2010

Hi TJ,

Thank you for your reply.

Sorry but I don't follow you :(

What I wrote was probably not very clear.

Basically I would like the histogram to plot between SlowK & SlowD.

The histogram low is the lowest of Slowk & SlowD, and the histogram high is the highest between SlowK & SlowD. It changes at every bar.
Please put some notes ON the picture (with lines and arrows) to illustrate the features you are looking for.

ps you can make the picture BIGGER.

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Postby TJ » 21 May 2010

Try this

Code: Select all

value1 = p2slowk-p2slowd;
plot5(value1,"DIF");
plot6(value1,"DIF");
set plot5 as histogram,
and plot6 as Line

duration
Posts: 179
Joined: 20 Dec 2005
Been thanked: 1 time

Postby duration » 22 May 2010

Hi TJ,

Thank you for your help.

I have attached a larger picture of what I would like to do.
Attachments
screenshot.png
(13.68 KiB) Downloaded 507 times

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Postby TJ » 22 May 2010

Hi TJ,

Thank you for your help.

I have attached a larger picture of what I would like to do.

that illustration is much better.
a picture is worth a thousand words.

you do not need to calculate value1.

simply plot this

Code: Select all

plot5(SlowK, "Bar High");
plot6(SlowD, "Bar Low");
set plot5 as Bar High,
and plot6 as Bar Low.

enjoy!

duration
Posts: 179
Joined: 20 Dec 2005
Been thanked: 1 time

Postby duration » 22 May 2010

Thank you for your good advice, it did it!


Return to “MultiCharts”