yccheok / jstock

JStock is a free stock market software for 28 countries.
https://jstock.org
664 stars 348 forks source link

Suggestion for chart indictors #49

Closed ghost closed 8 years ago

ghost commented 9 years ago

Currently jstocks have only a few number of chart indicators (SMA, EMA, RSI etc) which are very basic. I know that creating new indicators is a time consuming process and i have these suggestion towards that problem.

The best solution to this problem is a indicator creator/editor with lite programming.

Example.

This code plots MACD chart in tradingview website

study(title="Moving Average Convergence/Divergence", shorttitle="MACD")
source = close
fastLength = input(12, minval=1), slowLength=input(26,minval=1)
signalLength=input(9,minval=1)
fastMA = ema(source, fastLength)
slowMA = ema(source, slowLength)
macd = fastMA - slowMA
signal = sma(macd, signalLength)
hist = macd - signal
plot(hist, color=red, style=histogram)
plot(macd, color=blue)
plot(signal, color=orange)

instead of creating more indicators in jstock, jstock should improve its scanner editor (instead of blocks use some lite programming) and also add a chart indicator editor to the chart thus users can themselves create indicators and upload to jstock website.