marketTrade/tools/test_signal.py
2022-05-10 14:36:32 +03:00

38 lines
731 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""
Signal_1
BB
синал
предсказывающий
будет
ли
цена
за
следубщий
бар
больше\меньше
цены
закртыия
текущего, если
текущиий
бар
закрылся
ниже\выше
диапазона
BB
"""
import market_trade.signals.Signal1
df_candle = []
ind_params = {'MeanType': 'SMA', 'window': 5, 'valueType': 'low', 'kDev': 2}
# df_candle[:3000],ind_params,True,False,True
# window 5..100 (5) | valueType: 'open', 'low' | 'kdev' : 1..4 (0.1)
indEl1 = {
'df': df_candle[:3000],
'params': ind_params,
'needFig': False,
'showOnlyIndex': False,
'drawFig': True
}
a = market_trade.signals.Signal1.SignalBollingerBands1({'BB': indEl1})