Stochastic FullK 10 points higher than previous


Category:
0
0

I am trying to find the difference in the value of the StochasticFull, and more specifically the K period. The settings I am using for StoFull K is 6. I am trying to paint an up arrow on the price bar when the difference of the previous K period to the current K period is greater than or equal to a value of 10 points. I have provided a screen shot to help. In the two candles circled the left candle has a K value of 48.57….the candle to the right (the one with the arrow) has a value of 62.25. So the difference between the two is 13.68. I really hope this explains what I am trying to achieve. Any help would be greatly appreciated. BTW, I think this community is awesome!!!!

Attachments:
Marked as spam
Posted by (Questions: 2, Answers: 1)
Asked on August 31, 2018 3:30 pm
86 views
0

Looks like the question title is incomplete: “Difference Of Value of the FullSto”

I will need to fix that. When I make that correction it will break the original link to this post. I will try to email you the new link after I fix this.

( at September 1, 2018 8:03 am)
0
Private answer

input KPeriod = 6;
input DPeriod = 5;
input priceH = high;
input priceL = low;
input priceC = close;
input slowing_period = 3;
input averageType = AverageType.SIMPLE;
def lowest_k = Lowest(priceL, KPeriod);
def c1 = priceC - lowest_k;
def c2 = Highest(priceH, KPeriod) - lowest_k;
def fastK = if c2 != 0 then c1 / c2 * 100 else 0;
def fullK = MovingAverage(averageType, fastK, slowing_period);
plot condition = fullK > fullK[1] + 10;
condition.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
condition.SetDefaultColor(Color.CYAN);
condition.SetLineWeight(4);

Attachments:
Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on September 1, 2018 11:54 am