Bitcoin Forum
May 03, 2024, 03:31:54 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Highest High equals Lowest Low while Calculating Stochastic  (Read 89 times)
fbunaren (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
June 01, 2018, 03:32:07 PM
 #1

Hello,

Currently, I am trying to calculate Stochastic and i use this formula to calculate Stochastic

Quote
%K = (Current Close - Lowest Low)/(Highest High - Lowest Low) * 100
%D = 3-day SMA of %K
(Source : http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:stochastic_oscillator_fast_slow_and_full)

I found some cases where the Lowest Low is equal to Highest High, which cause Math Error (0 Divisor).
Is there any solution for this problem? Is there any additional calculation that should be done to solve this problem?

Thank You for your attention Smiley

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!