yura505 / robinbot

Robinhood API based swing trading bot
134 stars 35 forks source link

Technical indicators usability #8

Open yura505 opened 6 years ago

yura505 commented 6 years ago

Current using of technical indicators (technical.js) not very easy for creating new strategies, because many of parameters are hardcoded inside of indicators, and visual representation of indicators are statically hardcoded in strategy.js. On each strategy loop, user see table like below. But better if this table allocate indicators dynamically based of using them in particular strategy. For example if user trades MACD strategy, he is not insteresting in Slow Stochastic indicators and back. So, if MACD strategy there should be CLOSE, ADX, MACD0, MACD, OBV/MA If Slow Stochastic 14,3 - CLOSE SS.K SS.D OBV/MA If Buy And Hold - CLOSE SMA50 SMA100 SMA200 etc.

SYMBOL  RANK   CLOSE  SMA50  SMA200  SS.K  ADX  MACD0   MACD     SAR      ATR   OBV/MA  RSI    EARNINGS   RESULT
------ ------ ------- ------ ------ ------ --- ------- ------ --------- ------- ------ ----- ------------ ------
SPY      1.00  274.71  272.5  255.1   72.0  35    0.00   0.34  258.72^     4.43  1.025 54.00              
QQQ      1.00  168.17  162.2  149.5   86.1  28    0.25   0.48  155.12^     3.14  1.009 60.00              
DIA      1.00  252.91  252.2  229.7   66.1  34   -0.25   0.09  239.04^     4.46  1.016 52.00