217 lines
4.9 KiB
Markdown
217 lines
4.9 KiB
Markdown
|
|
le models imp for sanced TA enh❌ Don't usens
|
|
predictiodenormalizeet to ❌ Don't forgce
|
|
ain/inferennds for trerent bouffDon't use di
|
|
❌ atures and raw femalized nor mix't
|
|
❌ Donmance
|
|
or perforures fe TA feat✅ Pre-computegies
|
|
d stratasern-btte TA for pae enhancedding
|
|
✅ Usrafore t beedictionsize pr Denormalts
|
|
✅l checkpoinith modends wn bouatiormaliz noache
|
|
✅ C ningrais for ted featuree normalizs uss
|
|
|
|
✅ Alway
|
|
|
|
## Tip`
|
|
|
|
---ntum
|
|
``momedle = ly large canual # Unus 2.0:
|
|
ative_size >f rel, 'avg')
|
|
i(prev_bars_sizeativerelr.get_e = bave_sizlati
|
|
re```pythonk momentum
|
|
Chec###
|
|
|
|
|
|
```ersal rev# Potential
|
|
ing_star']:r', 'shootme'hamrn in [atte()
|
|
if p_patterncandleet_rn = bar.g
|
|
patteonpythrns
|
|
```rsal patte Detect reve
|
|
|
|
###
|
|
```_output)del(moicemalize_pr.denor = boundspriceounds()
|
|
ation_bizormalet_n.gtabase_da=
|
|
bounds ```pythoniction
|
|
rmalize predeno``
|
|
|
|
### D
|
|
`e_ta=True)de_candlncluctor(i_feature_vese_data.getres = bahon
|
|
featu TA
|
|
```pyt withed features enhanc`
|
|
|
|
### Get()
|
|
``tor_vecature.get_fe_data= baseeatures
|
|
f
|
|
```pythonningrai for taturesalized feet norm
|
|
|
|
### Gn Patterns
|
|
## Commo-
|
|
Y.md`
|
|
|
|
--ION_SUMMARPLEMENTATocs/IMtation**: `dmplemen.md`
|
|
- **IUSAGE_AUDITPUT_DATA_IN`docs/BASE_e Audit**: `
|
|
- **UsagUAL_GUIDE.mdNDLE_TA_VISs/CAdoc: `al Guide**su**Vi`
|
|
- IDE.mdZATION_GURMALIocs/NO`dation**: *NormalizNCE.md`
|
|
- *TURES_REFERENDLE_TA_FEAdocs/CAference**: `*TA Red`
|
|
- *FICATION.mSPECIPUT_TA_INSE_DAocs/BA`don**: cati- **Specifientation
|
|
|
|
cum Do---
|
|
|
|
##
|
|
|
|
~0.1 ms |eatures() | _ta_fget.01 ms |
|
|
| | ~0rn()pattele_
|
|
| get_candd) | (cache1 mss() | ~0.00ation_boundormaliz|
|
|
| get_n | ~1-2 ms r()_vecto_feature
|
|
| get---|------|--|------e |
|
|
ation | Time
|
|
|
|
| Operanc Perform
|
|
##-
|
|
ndle |
|
|
|
|
--egular ca| R| Normal rd nda
|
|
| stady > 90% |Bo | rishStrong beaarish | marubozu_be0% |
|
|
| h | Body > 9g bullis | Stronsh_bullizubo|
|
|
| maruks , both wic| Small bodyon sideciop | Ing_tnin
|
|
| spink |icupper wdy, long bosal | Smallrish rever | Beastarhooting_wick |
|
|
| sr , long lowemall bodyl | Ssh reversaBulli| mmer 10% |
|
|
| ha Body < |onisidecji | In
|
|
| do--|-|----------------|-------ia |
|
|
|-riter Cnal |n | Sigtter| Paterns
|
|
|
|
le Pat## Cand
|
|
|
|
---
|
|
|
|
tion | normaliza0 | No,85
|
|
| Raw | 7r candle |A peOHLCV + 10 T22,850 | anced | nh
|
|
| E no TA |lized,orma| OHLCV nd | 7,850 tandar| S---------|
|
|
----|----------|-----ion |
|
|
|-s | Descripteaturee | F
|
|
| Modes
|
|
ature Siz--
|
|
|
|
## Fe
|
|
-``
|
|
")
|
|
`2f}:.bar.closet ${rn} apatte {amp}:timestt(f"{bar. prinr']:
|
|
staing_oot', 'shmerhamrn in [' if patte_pattern()
|
|
get_candle bar.ern =patt50:]:
|
|
lcv_1m[-data.ohe_asr bar in bs
|
|
foor pattern
|
|
# Scan f
|
|
|
|
```pythonDetectionn # Patter--
|
|
|
|
#
|
|
-)
|
|
```
|
|
ormred_nprice(pnormalize_dece = bounds.
|
|
pred_pri(features)l.predict= mode_norm alize
|
|
predand denormredict rm)
|
|
|
|
# Ptarget_noures, p(featsterain_ss = model.train
|
|
loce)
|
|
|
|
# Trget_priize_price(ta.normal = boundsorm_ne
|
|
targetcloshlcv_1m[-1].se_data.oice = baget_pr)
|
|
tar_bounds(lizationa.get_normae_dats = baset
|
|
boundzed targ Get normali
|
|
|
|
#=True)ize(normalre_vectorta.get_featuse_daatures = bafeatures
|
|
feed normalizthon
|
|
# Get`pyple
|
|
|
|
`` Examngaini---
|
|
|
|
## Tr
|
|
|
|
```_bounds()
|
|
ationc_normalizget_bt= base_data.btc_bounds dent)
|
|
(indepenTC bounds# B250.0
|
|
|
|
# 2(0.5) ze_priceliormands.den= bouoriginal e
|
|
enormaliz
|
|
|
|
# D550.0) # 0.e_price(22normaliz = bounds.ormalizedalize
|
|
n)
|
|
|
|
# Normf}"max:.2nds.price_{boun:.2f} - $ds.price_mi: ${bounnt(f"Price
|
|
priion_bounds()zatet_normali.gdata base_ =undsds
|
|
bo Get bounn
|
|
#pytho``zation
|
|
|
|
`ormali---
|
|
|
|
## N
|
|
|
|
|
|
```s dictre featuce) # 22(refereneaturesr.get_ta_f baatures
|
|
ta = fe
|
|
# All TAer)
|
|
2.5x larg2.5 (, 'avg') # nceferereve_size(et_relati0:-1]
|
|
bar.glcv_1m[-1a.ohe = base_datze
|
|
referencRelative si, etc.
|
|
|
|
# 'doji'r',# 'hamme) ttern(et_candle_pa
|
|
bar.g
|
|
|
|
# Pattern)ckwilower 7% 0.17 (1 # k_ratio() lower_wicet_.gck)
|
|
bar upper wi7 (17% # 0.1_ratio() t_upper_wickbar.gedy)
|
|
(67% bo # 0.67 ratio()o_range_.get_body_ttios
|
|
bar# Ra60.0
|
|
|
|
# ge total_ran.0
|
|
bar. # 10_wick bar.lower # 10.0
|
|
ick ar.upper_w # 40.0
|
|
b y_size .bodFalse
|
|
bar # True/ lish s_bulrties
|
|
bar.i
|
|
|
|
# Propem[-1]ohlcv_1ta.r = base_dae
|
|
bagle candlinn
|
|
# Get sytho
|
|
```ps
|
|
TA FeatureCandle
|
|
|
|
## `
|
|
|
|
---nits
|
|
)
|
|
``volume uginal price/ # Ori lize=Falsema nor
|
|
se,ta=Fale_candle_udincl
|
|
re_vector(featut_ase_data.ge bres =)
|
|
featuzationormali
|
|
# Raw (no n-1
|
|
)
|
|
0alized to # Normue lize=Tr norma er candle
|
|
s p TA feature # +10a=True, ndle_tnclude_ca
|
|
ie_vector(aturfeet_ base_data.gtures =)
|
|
feaestur,850 fead (22
|
|
# Enhance 0-1
|
|
)
|
|
alized to# Norm e ru normalize=Teatures
|
|
# No TA false, candle_ta=F include_tor(
|
|
_feature_vecta.get_datures = baseatures)
|
|
fea0 fe (7,85rdndaon
|
|
# Stapyth``des
|
|
|
|
`ature MoFe
|
|
---
|
|
|
|
## e
|
|
```
|
|
0-1 rang OHLCV in alls,eaturens: 7,850 f)
|
|
# Returor(re_vectt_featuase_data.ges = bureeatdard)
|
|
fized, stanres (normalt featu Ge
|
|
|
|
#H/USDT')ut('ETse_data_inpbuild_baer.ovid data_pra =a
|
|
base_dat
|
|
# Get dattaInput
|
|
BaseDadels import core.data_moon
|
|
from e
|
|
|
|
```pyth Basic Usag
|
|
##
|
|
ference Carduick Reput QaIn# BaseDat |