PubLibTrendLibrary "PubLibTrend"
trend, multi-part trend, double trend and multi-part double trend conditions for indicator and strategy development
rlut()
โโreturn line uptrend condition
โโReturns: bool
dt()
โโdowntrend condition
โโReturns: bool
ut()
โโuptrend condition
โโReturns: bool
rldt()
โโreturn line downtrend condition
โโReturns: bool
dtop()
โโdouble top condition
โโReturns: bool
dbot()
โโdouble bottom condition
โโReturns: bool
rlut_1p()
โโ1-part return line uptrend condition
โโReturns: bool
rlut_2p()
โโ2-part return line uptrend condition
โโReturns: bool
rlut_3p()
โโ3-part return line uptrend condition
โโReturns: bool
rlut_4p()
โโ4-part return line uptrend condition
โโReturns: bool
rlut_5p()
โโ5-part return line uptrend condition
โโReturns: bool
rlut_6p()
โโ6-part return line uptrend condition
โโReturns: bool
rlut_7p()
โโ7-part return line uptrend condition
โโReturns: bool
rlut_8p()
โโ8-part return line uptrend condition
โโReturns: bool
rlut_9p()
โโ9-part return line uptrend condition
โโReturns: bool
rlut_10p()
โโ10-part return line uptrend condition
โโReturns: bool
rlut_11p()
โโ11-part return line uptrend condition
โโReturns: bool
rlut_12p()
โโ12-part return line uptrend condition
โโReturns: bool
rlut_13p()
โโ13-part return line uptrend condition
โโReturns: bool
rlut_14p()
โโ14-part return line uptrend condition
โโReturns: bool
rlut_15p()
โโ15-part return line uptrend condition
โโReturns: bool
rlut_16p()
โโ16-part return line uptrend condition
โโReturns: bool
rlut_17p()
โโ17-part return line uptrend condition
โโReturns: bool
rlut_18p()
โโ18-part return line uptrend condition
โโReturns: bool
rlut_19p()
โโ19-part return line uptrend condition
โโReturns: bool
rlut_20p()
โโ20-part return line uptrend condition
โโReturns: bool
rlut_21p()
โโ21-part return line uptrend condition
โโReturns: bool
rlut_22p()
โโ22-part return line uptrend condition
โโReturns: bool
rlut_23p()
โโ23-part return line uptrend condition
โโReturns: bool
rlut_24p()
โโ24-part return line uptrend condition
โโReturns: bool
rlut_25p()
โโ25-part return line uptrend condition
โโReturns: bool
rlut_26p()
โโ26-part return line uptrend condition
โโReturns: bool
rlut_27p()
โโ27-part return line uptrend condition
โโReturns: bool
rlut_28p()
โโ28-part return line uptrend condition
โโReturns: bool
rlut_29p()
โโ29-part return line uptrend condition
โโReturns: bool
rlut_30p()
โโ30-part return line uptrend condition
โโReturns: bool
dt_1p()
โโ1-part downtrend condition
โโReturns: bool
dt_2p()
โโ2-part downtrend condition
โโReturns: bool
dt_3p()
โโ3-part downtrend condition
โโReturns: bool
dt_4p()
โโ4-part downtrend condition
โโReturns: bool
dt_5p()
โโ5-part downtrend condition
โโReturns: bool
dt_6p()
โโ6-part downtrend condition
โโReturns: bool
dt_7p()
โโ7-part downtrend condition
โโReturns: bool
dt_8p()
โโ8-part downtrend condition
โโReturns: bool
dt_9p()
โโ9-part downtrend condition
โโReturns: bool
dt_10p()
โโ10-part downtrend condition
โโReturns: bool
dt_11p()
โโ11-part downtrend condition
โโReturns: bool
dt_12p()
โโ12-part downtrend condition
โโReturns: bool
dt_13p()
โโ13-part downtrend condition
โโReturns: bool
dt_14p()
โโ14-part downtrend condition
โโReturns: bool
dt_15p()
โโ15-part downtrend condition
โโReturns: bool
dt_16p()
โโ16-part downtrend condition
โโReturns: bool
dt_17p()
โโ17-part downtrend condition
โโReturns: bool
dt_18p()
โโ18-part downtrend condition
โโReturns: bool
dt_19p()
โโ19-part downtrend condition
โโReturns: bool
dt_20p()
โโ20-part downtrend condition
โโReturns: bool
dt_21p()
โโ21-part downtrend condition
โโReturns: bool
dt_22p()
โโ22-part downtrend condition
โโReturns: bool
dt_23p()
โโ23-part downtrend condition
โโReturns: bool
dt_24p()
โโ24-part downtrend condition
โโReturns: bool
dt_25p()
โโ25-part downtrend condition
โโReturns: bool
dt_26p()
โโ26-part downtrend condition
โโReturns: bool
dt_27p()
โโ27-part downtrend condition
โโReturns: bool
dt_28p()
โโ28-part downtrend condition
โโReturns: bool
dt_29p()
โโ29-part downtrend condition
โโReturns: bool
dt_30p()
โโ30-part downtrend condition
โโReturns: bool
ut_1p()
โโ1-part uptrend condition
โโReturns: bool
ut_2p()
โโ2-part uptrend condition
โโReturns: bool
ut_3p()
โโ3-part uptrend condition
โโReturns: bool
ut_4p()
โโ4-part uptrend condition
โโReturns: bool
ut_5p()
โโ5-part uptrend condition
โโReturns: bool
ut_6p()
โโ6-part uptrend condition
โโReturns: bool
ut_7p()
โโ7-part uptrend condition
โโReturns: bool
ut_8p()
โโ8-part uptrend condition
โโReturns: bool
ut_9p()
โโ9-part uptrend condition
โโReturns: bool
ut_10p()
โโ10-part uptrend condition
โโReturns: bool
ut_11p()
โโ11-part uptrend condition
โโReturns: bool
ut_12p()
โโ12-part uptrend condition
โโReturns: bool
ut_13p()
โโ13-part uptrend condition
โโReturns: bool
ut_14p()
โโ14-part uptrend condition
โโReturns: bool
ut_15p()
โโ15-part uptrend condition
โโReturns: bool
ut_16p()
โโ16-part uptrend condition
โโReturns: bool
ut_17p()
โโ17-part uptrend condition
โโReturns: bool
ut_18p()
โโ18-part uptrend condition
โโReturns: bool
ut_19p()
โโ19-part uptrend condition
โโReturns: bool
ut_20p()
โโ20-part uptrend condition
โโReturns: bool
ut_21p()
โโ21-part uptrend condition
โโReturns: bool
ut_22p()
โโ22-part uptrend condition
โโReturns: bool
ut_23p()
โโ23-part uptrend condition
โโReturns: bool
ut_24p()
โโ24-part uptrend condition
โโReturns: bool
ut_25p()
โโ25-part uptrend condition
โโReturns: bool
ut_26p()
โโ26-part uptrend condition
โโReturns: bool
ut_27p()
โโ27-part uptrend condition
โโReturns: bool
ut_28p()
โโ28-part uptrend condition
โโReturns: bool
ut_29p()
โโ29-part uptrend condition
โโReturns: bool
ut_30p()
โโ30-part uptrend condition
โโReturns: bool
rldt_1p()
โโ1-part return line downtrend condition
โโReturns: bool
rldt_2p()
โโ2-part return line downtrend condition
โโReturns: bool
rldt_3p()
โโ3-part return line downtrend condition
โโReturns: bool
rldt_4p()
โโ4-part return line downtrend condition
โโReturns: bool
rldt_5p()
โโ5-part return line downtrend condition
โโReturns: bool
rldt_6p()
โโ6-part return line downtrend condition
โโReturns: bool
rldt_7p()
โโ7-part return line downtrend condition
โโReturns: bool
rldt_8p()
โโ8-part return line downtrend condition
โโReturns: bool
rldt_9p()
โโ9-part return line downtrend condition
โโReturns: bool
rldt_10p()
โโ10-part return line downtrend condition
โโReturns: bool
rldt_11p()
โโ11-part return line downtrend condition
โโReturns: bool
rldt_12p()
โโ12-part return line downtrend condition
โโReturns: bool
rldt_13p()
โโ13-part return line downtrend condition
โโReturns: bool
rldt_14p()
โโ14-part return line downtrend condition
โโReturns: bool
rldt_15p()
โโ15-part return line downtrend condition
โโReturns: bool
rldt_16p()
โโ16-part return line downtrend condition
โโReturns: bool
rldt_17p()
โโ17-part return line downtrend condition
โโReturns: bool
rldt_18p()
โโ18-part return line downtrend condition
โโReturns: bool
rldt_19p()
โโ19-part return line downtrend condition
โโReturns: bool
rldt_20p()
โโ20-part return line downtrend condition
โโReturns: bool
rldt_21p()
โโ21-part return line downtrend condition
โโReturns: bool
rldt_22p()
โโ22-part return line downtrend condition
โโReturns: bool
rldt_23p()
โโ23-part return line downtrend condition
โโReturns: bool
rldt_24p()
โโ24-part return line downtrend condition
โโReturns: bool
rldt_25p()
โโ25-part return line downtrend condition
โโReturns: bool
rldt_26p()
โโ26-part return line downtrend condition
โโReturns: bool
rldt_27p()
โโ27-part return line downtrend condition
โโReturns: bool
rldt_28p()
โโ28-part return line downtrend condition
โโReturns: bool
rldt_29p()
โโ29-part return line downtrend condition
โโReturns: bool
rldt_30p()
โโ30-part return line downtrend condition
โโReturns: bool
dut()
โโdouble uptrend condition
โโReturns: bool
ddt()
โโdouble downtrend condition
โโReturns: bool
dut_1p()
โโ1-part double uptrend condition
โโReturns: bool
dut_2p()
โโ2-part double uptrend condition
โโReturns: bool
dut_3p()
โโ3-part double uptrend condition
โโReturns: bool
dut_4p()
โโ4-part double uptrend condition
โโReturns: bool
dut_5p()
โโ5-part double uptrend condition
โโReturns: bool
dut_6p()
โโ6-part double uptrend condition
โโReturns: bool
dut_7p()
โโ7-part double uptrend condition
โโReturns: bool
dut_8p()
โโ8-part double uptrend condition
โโReturns: bool
dut_9p()
โโ9-part double uptrend condition
โโReturns: bool
dut_10p()
โโ10-part double uptrend condition
โโReturns: bool
dut_11p()
โโ11-part double uptrend condition
โโReturns: bool
dut_12p()
โโ12-part double uptrend condition
โโReturns: bool
dut_13p()
โโ13-part double uptrend condition
โโReturns: bool
dut_14p()
โโ14-part double uptrend condition
โโReturns: bool
dut_15p()
โโ15-part double uptrend condition
โโReturns: bool
dut_16p()
โโ16-part double uptrend condition
โโReturns: bool
dut_17p()
โโ17-part double uptrend condition
โโReturns: bool
dut_18p()
โโ18-part double uptrend condition
โโReturns: bool
dut_19p()
โโ19-part double uptrend condition
โโReturns: bool
dut_20p()
โโ20-part double uptrend condition
โโReturns: bool
dut_21p()
โโ21-part double uptrend condition
โโReturns: bool
dut_22p()
โโ22-part double uptrend condition
โโReturns: bool
dut_23p()
โโ23-part double uptrend condition
โโReturns: bool
dut_24p()
โโ24-part double uptrend condition
โโReturns: bool
dut_25p()
โโ25-part double uptrend condition
โโReturns: bool
dut_26p()
โโ26-part double uptrend condition
โโReturns: bool
dut_27p()
โโ27-part double uptrend condition
โโReturns: bool
dut_28p()
โโ28-part double uptrend condition
โโReturns: bool
dut_29p()
โโ29-part double uptrend condition
โโReturns: bool
dut_30p()
โโ30-part double uptrend condition
โโReturns: bool
ddt_1p()
โโ1-part double downtrend condition
โโReturns: bool
ddt_2p()
โโ2-part double downtrend condition
โโReturns: bool
ddt_3p()
โโ3-part double downtrend condition
โโReturns: bool
ddt_4p()
โโ4-part double downtrend condition
โโReturns: bool
ddt_5p()
โโ5-part double downtrend condition
โโReturns: bool
ddt_6p()
โโ6-part double downtrend condition
โโReturns: bool
ddt_7p()
โโ7-part double downtrend condition
โโReturns: bool
ddt_8p()
โโ8-part double downtrend condition
โโReturns: bool
ddt_9p()
โโ9-part double downtrend condition
โโReturns: bool
ddt_10p()
โโ10-part double downtrend condition
โโReturns: bool
ddt_11p()
โโ11-part double downtrend condition
โโReturns: bool
ddt_12p()
โโ12-part double downtrend condition
โโReturns: bool
ddt_13p()
โโ13-part double downtrend condition
โโReturns: bool
ddt_14p()
โโ14-part double downtrend condition
โโReturns: bool
ddt_15p()
โโ15-part double downtrend condition
โโReturns: bool
ddt_16p()
โโ16-part double downtrend condition
โโReturns: bool
ddt_17p()
โโ17-part double downtrend condition
โโReturns: bool
ddt_18p()
โโ18-part double downtrend condition
โโReturns: bool
ddt_19p()
โโ19-part double downtrend condition
โโReturns: bool
ddt_20p()
โโ20-part double downtrend condition
โโReturns: bool
ddt_21p()
โโ21-part double downtrend condition
โโReturns: bool
ddt_22p()
โโ22-part double downtrend condition
โโReturns: bool
ddt_23p()
โโ23-part double downtrend condition
โโReturns: bool
ddt_24p()
โโ24-part double downtrend condition
โโReturns: bool
ddt_25p()
โโ25-part double downtrend condition
โโReturns: bool
ddt_26p()
โโ26-part double downtrend condition
โโReturns: bool
ddt_27p()
โโ27-part double downtrend condition
โโReturns: bool
ddt_28p()
โโ28-part double downtrend condition
โโReturns: bool
ddt_29p()
โโ29-part double downtrend condition
โโReturns: bool
ddt_30p()
โโ30-part double downtrend condition
โโReturns: bool
Techindicator
PubLibSwingLibrary "PubLibSwing"
swing high and swing low conditions, prices, bar indices and range ratios for indicator and strategy development
sh()
โโswing high condition
โโReturns: bool
sl()
โโswing low condition
โโReturns: bool
shbi(occ)
โโswing high bar index, condition occurrence n
โโParameters:
โโโโ occ (simple int)
โโReturns: int
slbi(occ)
โโswing low bar index, condition occurrence n
โโParameters:
โโโโ occ (simple int)
โโReturns: int
shcp(occ)
โโswing high close price, condition occurrence n
โโParameters:
โโโโ occ (simple int)
โโReturns: float
slcp(occ)
โโswing low close price, condition occurrence n
โโParameters:
โโโโ occ (simple int)
โโReturns: float
shp(occ)
โโswing high price, condition occurrence n
โโParameters:
โโโโ occ (simple int)
โโReturns: float
slp(occ)
โโswing low price, condition occurrence n
โโParameters:
โโโโ occ (simple int)
โโReturns: float
shpbi(occ)
โโswing high price bar index, condition occurrence n
โโParameters:
โโโโ occ (simple int)
โโReturns: int
slpbi(occ)
โโswing low price bar index, condition occurrence n
โโParameters:
โโโโ occ (simple int)
โโReturns: int
shrr(occ)
โโswing high range ratio, condition occurrence n
โโParameters:
โโโโ occ (simple int)
โโReturns: float
slrr(occ)
โโswing low range ratio, condition occurrence n
โโParameters:
โโโโ occ (simple int)
โโReturns: float
PubLibCandleTrendLibrary "PubLibCandleTrend"
candle trend, multi-part candle trend, multi-part green/red candle trend, double candle trend and multi-part double candle trend conditions for indicator and strategy development
chh()
โโcandle higher high condition
โโReturns: bool
chl()
โโcandle higher low condition
โโReturns: bool
clh()
โโcandle lower high condition
โโReturns: bool
cll()
โโcandle lower low condition
โโReturns: bool
cdt()
โโcandle double top condition
โโReturns: bool
cdb()
โโcandle double bottom condition
โโReturns: bool
gc()
โโgreen candle condition
โโReturns: bool
gchh()
โโgreen candle higher high condition
โโReturns: bool
gchl()
โโgreen candle higher low condition
โโReturns: bool
gclh()
โโgreen candle lower high condition
โโReturns: bool
gcll()
โโgreen candle lower low condition
โโReturns: bool
gcdt()
โโgreen candle double top condition
โโReturns: bool
gcdb()
โโgreen candle double bottom condition
โโReturns: bool
rc()
โโred candle condition
โโReturns: bool
rchh()
โโred candle higher high condition
โโReturns: bool
rchl()
โโred candle higher low condition
โโReturns: bool
rclh()
โโred candle lower high condition
โโReturns: bool
rcll()
โโred candle lower low condition
โโReturns: bool
rcdt()
โโred candle double top condition
โโReturns: bool
rcdb()
โโred candle double bottom condition
โโReturns: bool
chh_1p()
โโ1-part candle higher high condition
โโReturns: bool
chh_2p()
โโ2-part candle higher high condition
โโReturns: bool
chh_3p()
โโ3-part candle higher high condition
โโReturns: bool
chh_4p()
โโ4-part candle higher high condition
โโReturns: bool
chh_5p()
โโ5-part candle higher high condition
โโReturns: bool
chh_6p()
โโ6-part candle higher high condition
โโReturns: bool
chh_7p()
โโ7-part candle higher high condition
โโReturns: bool
chh_8p()
โโ8-part candle higher high condition
โโReturns: bool
chh_9p()
โโ9-part candle higher high condition
โโReturns: bool
chh_10p()
โโ10-part candle higher high condition
โโReturns: bool
chh_11p()
โโ11-part candle higher high condition
โโReturns: bool
chh_12p()
โโ12-part candle higher high condition
โโReturns: bool
chh_13p()
โโ13-part candle higher high condition
โโReturns: bool
chh_14p()
โโ14-part candle higher high condition
โโReturns: bool
chh_15p()
โโ15-part candle higher high condition
โโReturns: bool
chh_16p()
โโ16-part candle higher high condition
โโReturns: bool
chh_17p()
โโ17-part candle higher high condition
โโReturns: bool
chh_18p()
โโ18-part candle higher high condition
โโReturns: bool
chh_19p()
โโ19-part candle higher high condition
โโReturns: bool
chh_20p()
โโ20-part candle higher high condition
โโReturns: bool
chh_21p()
โโ21-part candle higher high condition
โโReturns: bool
chh_22p()
โโ22-part candle higher high condition
โโReturns: bool
chh_23p()
โโ23-part candle higher high condition
โโReturns: bool
chh_24p()
โโ24-part candle higher high condition
โโReturns: bool
chh_25p()
โโ25-part candle higher high condition
โโReturns: bool
chh_26p()
โโ26-part candle higher high condition
โโReturns: bool
chh_27p()
โโ27-part candle higher high condition
โโReturns: bool
chh_28p()
โโ28-part candle higher high condition
โโReturns: bool
chh_29p()
โโ29-part candle higher high condition
โโReturns: bool
chh_30p()
โโ30-part candle higher high condition
โโReturns: bool
chl_1p()
โโ1-part candle higher low condition
โโReturns: bool
chl_2p()
โโ2-part candle higher low condition
โโReturns: bool
chl_3p()
โโ3-part candle higher low condition
โโReturns: bool
chl_4p()
โโ4-part candle higher low condition
โโReturns: bool
chl_5p()
โโ5-part candle higher low condition
โโReturns: bool
chl_6p()
โโ6-part candle higher low condition
โโReturns: bool
chl_7p()
โโ7-part candle higher low condition
โโReturns: bool
chl_8p()
โโ8-part candle higher low condition
โโReturns: bool
chl_9p()
โโ9-part candle higher low condition
โโReturns: bool
chl_10p()
โโ10-part candle higher low condition
โโReturns: bool
chl_11p()
โโ11-part candle higher low condition
โโReturns: bool
chl_12p()
โโ12-part candle higher low condition
โโReturns: bool
chl_13p()
โโ13-part candle higher low condition
โโReturns: bool
chl_14p()
โโ14-part candle higher low condition
โโReturns: bool
chl_15p()
โโ15-part candle higher low condition
โโReturns: bool
chl_16p()
โโ16-part candle higher low condition
โโReturns: bool
chl_17p()
โโ17-part candle higher low condition
โโReturns: bool
chl_18p()
โโ18-part candle higher low condition
โโReturns: bool
chl_19p()
โโ19-part candle higher low condition
โโReturns: bool
chl_20p()
โโ20-part candle higher low condition
โโReturns: bool
chl_21p()
โโ21-part candle higher low condition
โโReturns: bool
chl_22p()
โโ22-part candle higher low condition
โโReturns: bool
chl_23p()
โโ23-part candle higher low condition
โโReturns: bool
chl_24p()
โโ24-part candle higher low condition
โโReturns: bool
chl_25p()
โโ25-part candle higher low condition
โโReturns: bool
chl_26p()
โโ26-part candle higher low condition
โโReturns: bool
chl_27p()
โโ27-part candle higher low condition
โโReturns: bool
chl_28p()
โโ28-part candle higher low condition
โโReturns: bool
chl_29p()
โโ29-part candle higher low condition
โโReturns: bool
chl_30p()
โโ30-part candle higher low condition
โโReturns: bool
clh_1p()
โโ1-part candle lower high condition
โโReturns: bool
clh_2p()
โโ2-part candle lower high condition
โโReturns: bool
clh_3p()
โโ3-part candle lower high condition
โโReturns: bool
clh_4p()
โโ4-part candle lower high condition
โโReturns: bool
clh_5p()
โโ5-part candle lower high condition
โโReturns: bool
clh_6p()
โโ6-part candle lower high condition
โโReturns: bool
clh_7p()
โโ7-part candle lower high condition
โโReturns: bool
clh_8p()
โโ8-part candle lower high condition
โโReturns: bool
clh_9p()
โโ9-part candle lower high condition
โโReturns: bool
clh_10p()
โโ10-part candle lower high condition
โโReturns: bool
clh_11p()
โโ11-part candle lower high condition
โโReturns: bool
clh_12p()
โโ12-part candle lower high condition
โโReturns: bool
clh_13p()
โโ13-part candle lower high condition
โโReturns: bool
clh_14p()
โโ14-part candle lower high condition
โโReturns: bool
clh_15p()
โโ15-part candle lower high condition
โโReturns: bool
clh_16p()
โโ16-part candle lower high condition
โโReturns: bool
clh_17p()
โโ17-part candle lower high condition
โโReturns: bool
clh_18p()
โโ18-part candle lower high condition
โโReturns: bool
clh_19p()
โโ19-part candle lower high condition
โโReturns: bool
clh_20p()
โโ20-part candle lower high condition
โโReturns: bool
clh_21p()
โโ21-part candle lower high condition
โโReturns: bool
clh_22p()
โโ22-part candle lower high condition
โโReturns: bool
clh_23p()
โโ23-part candle lower high condition
โโReturns: bool
clh_24p()
โโ24-part candle lower high condition
โโReturns: bool
clh_25p()
โโ25-part candle lower high condition
โโReturns: bool
clh_26p()
โโ26-part candle lower high condition
โโReturns: bool
clh_27p()
โโ27-part candle lower high condition
โโReturns: bool
clh_28p()
โโ28-part candle lower high condition
โโReturns: bool
clh_29p()
โโ29-part candle lower high condition
โโReturns: bool
clh_30p()
โโ30-part candle lower high condition
โโReturns: bool
cll_1p()
โโ1-part candle lower low condition
โโReturns: bool
cll_2p()
โโ2-part candle lower low condition
โโReturns: bool
cll_3p()
โโ3-part candle lower low condition
โโReturns: bool
cll_4p()
โโ4-part candle lower low condition
โโReturns: bool
cll_5p()
โโ5-part candle lower low condition
โโReturns: bool
cll_6p()
โโ6-part candle lower low condition
โโReturns: bool
cll_7p()
โโ7-part candle lower low condition
โโReturns: bool
cll_8p()
โโ8-part candle lower low condition
โโReturns: bool
cll_9p()
โโ9-part candle lower low condition
โโReturns: bool
cll_10p()
โโ10-part candle lower low condition
โโReturns: bool
cll_11p()
โโ11-part candle lower low condition
โโReturns: bool
cll_12p()
โโ12-part candle lower low condition
โโReturns: bool
cll_13p()
โโ13-part candle lower low condition
โโReturns: bool
cll_14p()
โโ14-part candle lower low condition
โโReturns: bool
cll_15p()
โโ15-part candle lower low condition
โโReturns: bool
cll_16p()
โโ16-part candle lower low condition
โโReturns: bool
cll_17p()
โโ17-part candle lower low condition
โโReturns: bool
cll_18p()
โโ18-part candle lower low condition
โโReturns: bool
cll_19p()
โโ19-part candle lower low condition
โโReturns: bool
cll_20p()
โโ20-part candle lower low condition
โโReturns: bool
cll_21p()
โโ21-part candle lower low condition
โโReturns: bool
cll_22p()
โโ22-part candle lower low condition
โโReturns: bool
cll_23p()
โโ23-part candle lower low condition
โโReturns: bool
cll_24p()
โโ24-part candle lower low condition
โโReturns: bool
cll_25p()
โโ25-part candle lower low condition
โโReturns: bool
cll_26p()
โโ26-part candle lower low condition
โโReturns: bool
cll_27p()
โโ27-part candle lower low condition
โโReturns: bool
cll_28p()
โโ28-part candle lower low condition
โโReturns: bool
cll_29p()
โโ29-part candle lower low condition
โโReturns: bool
cll_30p()
โโ30-part candle lower low condition
โโReturns: bool
gc_1p()
โโ1-part green candle condition
โโReturns: bool
gc_2p()
โโ2-part green candle condition
โโReturns: bool
gc_3p()
โโ3-part green candle condition
โโReturns: bool
gc_4p()
โโ4-part green candle condition
โโReturns: bool
gc_5p()
โโ5-part green candle condition
โโReturns: bool
gc_6p()
โโ6-part green candle condition
โโReturns: bool
gc_7p()
โโ7-part green candle condition
โโReturns: bool
gc_8p()
โโ8-part green candle condition
โโReturns: bool
gc_9p()
โโ9-part green candle condition
โโReturns: bool
gc_10p()
โโ10-part green candle condition
โโReturns: bool
gc_11p()
โโ11-part green candle condition
โโReturns: bool
gc_12p()
โโ12-part green candle condition
โโReturns: bool
gc_13p()
โโ13-part green candle condition
โโReturns: bool
gc_14p()
โโ14-part green candle condition
โโReturns: bool
gc_15p()
โโ15-part green candle condition
โโReturns: bool
gc_16p()
โโ16-part green candle condition
โโReturns: bool
gc_17p()
โโ17-part green candle condition
โโReturns: bool
gc_18p()
โโ18-part green candle condition
โโReturns: bool
gc_19p()
โโ19-part green candle condition
โโReturns: bool
gc_20p()
โโ20-part green candle condition
โโReturns: bool
gc_21p()
โโ21-part green candle condition
โโReturns: bool
gc_22p()
โโ22-part green candle condition
โโReturns: bool
gc_23p()
โโ23-part green candle condition
โโReturns: bool
gc_24p()
โโ24-part green candle condition
โโReturns: bool
gc_25p()
โโ25-part green candle condition
โโReturns: bool
gc_26p()
โโ26-part green candle condition
โโReturns: bool
gc_27p()
โโ27-part green candle condition
โโReturns: bool
gc_28p()
โโ28-part green candle condition
โโReturns: bool
gc_29p()
โโ29-part green candle condition
โโReturns: bool
gc_30p()
โโ30-part green candle condition
โโReturns: bool
rc_1p()
โโ1-part red candle condition
โโReturns: bool
rc_2p()
โโ2-part red candle condition
โโReturns: bool
rc_3p()
โโ3-part red candle condition
โโReturns: bool
rc_4p()
โโ4-part red candle condition
โโReturns: bool
rc_5p()
โโ5-part red candle condition
โโReturns: bool
rc_6p()
โโ6-part red candle condition
โโReturns: bool
rc_7p()
โโ7-part red candle condition
โโReturns: bool
rc_8p()
โโ8-part red candle condition
โโReturns: bool
rc_9p()
โโ9-part red candle condition
โโReturns: bool
rc_10p()
โโ10-part red candle condition
โโReturns: bool
rc_11p()
โโ11-part red candle condition
โโReturns: bool
rc_12p()
โโ12-part red candle condition
โโReturns: bool
rc_13p()
โโ13-part red candle condition
โโReturns: bool
rc_14p()
โโ14-part red candle condition
โโReturns: bool
rc_15p()
โโ15-part red candle condition
โโReturns: bool
rc_16p()
โโ16-part red candle condition
โโReturns: bool
rc_17p()
โโ17-part red candle condition
โโReturns: bool
rc_18p()
โโ18-part red candle condition
โโReturns: bool
rc_19p()
โโ19-part red candle condition
โโReturns: bool
rc_20p()
โโ20-part red candle condition
โโReturns: bool
rc_21p()
โโ21-part red candle condition
โโReturns: bool
rc_22p()
โโ22-part red candle condition
โโReturns: bool
rc_23p()
โโ23-part red candle condition
โโReturns: bool
rc_24p()
โโ24-part red candle condition
โโReturns: bool
rc_25p()
โโ25-part red candle condition
โโReturns: bool
rc_26p()
โโ26-part red candle condition
โโReturns: bool
rc_27p()
โโ27-part red candle condition
โโReturns: bool
rc_28p()
โโ28-part red candle condition
โโReturns: bool
rc_29p()
โโ29-part red candle condition
โโReturns: bool
rc_30p()
โโ30-part red candle condition
โโReturns: bool
cdut()
โโcandle double uptrend condition
โโReturns: bool
cddt()
โโcandle double downtrend condition
โโReturns: bool
cdut_1p()
โโ1-part candle double uptrend condition
โโReturns: bool
cdut_2p()
โโ2-part candle double uptrend condition
โโReturns: bool
cdut_3p()
โโ3-part candle double uptrend condition
โโReturns: bool
cdut_4p()
โโ4-part candle double uptrend condition
โโReturns: bool
cdut_5p()
โโ5-part candle double uptrend condition
โโReturns: bool
cdut_6p()
โโ6-part candle double uptrend condition
โโReturns: bool
cdut_7p()
โโ7-part candle double uptrend condition
โโReturns: bool
cdut_8p()
โโ8-part candle double uptrend condition
โโReturns: bool
cdut_9p()
โโ9-part candle double uptrend condition
โโReturns: bool
cdut_10p()
โโ10-part candle double uptrend condition
โโReturns: bool
cdut_11p()
โโ11-part candle double uptrend condition
โโReturns: bool
cdut_12p()
โโ12-part candle double uptrend condition
โโReturns: bool
cdut_13p()
โโ13-part candle double uptrend condition
โโReturns: bool
cdut_14p()
โโ14-part candle double uptrend condition
โโReturns: bool
cdut_15p()
โโ15-part candle double uptrend condition
โโReturns: bool
cdut_16p()
โโ16-part candle double uptrend condition
โโReturns: bool
cdut_17p()
โโ17-part candle double uptrend condition
โโReturns: bool
cdut_18p()
โโ18-part candle double uptrend condition
โโReturns: bool
cdut_19p()
โโ19-part candle double uptrend condition
โโReturns: bool
cdut_20p()
โโ20-part candle double uptrend condition
โโReturns: bool
cdut_21p()
โโ21-part candle double uptrend condition
โโReturns: bool
cdut_22p()
โโ22-part candle double uptrend condition
โโReturns: bool
cdut_23p()
โโ23-part candle double uptrend condition
โโReturns: bool
cdut_24p()
โโ24-part candle double uptrend condition
โโReturns: bool
cdut_25p()
โโ25-part candle double uptrend condition
โโReturns: bool
cdut_26p()
โโ26-part candle double uptrend condition
โโReturns: bool
cdut_27p()
โโ27-part candle double uptrend condition
โโReturns: bool
cdut_28p()
โโ28-part candle double uptrend condition
โโReturns: bool
cdut_29p()
โโ29-part candle double uptrend condition
โโReturns: bool
cdut_30p()
โโ30-part candle double uptrend condition
โโReturns: bool
cddt_1p()
โโ1-part candle double downtrend condition
โโReturns: bool
cddt_2p()
โโ2-part candle double downtrend condition
โโReturns: bool
cddt_3p()
โโ3-part candle double downtrend condition
โโReturns: bool
cddt_4p()
โโ4-part candle double downtrend condition
โโReturns: bool
cddt_5p()
โโ5-part candle double downtrend condition
โโReturns: bool
cddt_6p()
โโ6-part candle double downtrend condition
โโReturns: bool
cddt_7p()
โโ7-part candle double downtrend condition
โโReturns: bool
cddt_8p()
โโ8-part candle double downtrend condition
โโReturns: bool
cddt_9p()
โโ9-part candle double downtrend condition
โโReturns: bool
cddt_10p()
โโ10-part candle double downtrend condition
โโReturns: bool
cddt_11p()
โโ11-part candle double downtrend condition
โโReturns: bool
cddt_12p()
โโ12-part candle double downtrend condition
โโReturns: bool
cddt_13p()
โโ13-part candle double downtrend condition
โโReturns: bool
cddt_14p()
โโ14-part candle double downtrend condition
โโReturns: bool
cddt_15p()
โโ15-part candle double downtrend condition
โโReturns: bool
cddt_16p()
โโ16-part candle double downtrend condition
โโReturns: bool
cddt_17p()
โโ17-part candle double downtrend condition
โโReturns: bool
cddt_18p()
โโ18-part candle double downtrend condition
โโReturns: bool
cddt_19p()
โโ19-part candle double downtrend condition
โโReturns: bool
cddt_20p()
โโ20-part candle double downtrend condition
โโReturns: bool
cddt_21p()
โโ21-part candle double downtrend condition
โโReturns: bool
cddt_22p()
โโ22-part candle double downtrend condition
โโReturns: bool
cddt_23p()
โโ23-part candle double downtrend condition
โโReturns: bool
cddt_24p()
โโ24-part candle double downtrend condition
โโReturns: bool
cddt_25p()
โโ25-part candle double downtrend condition
โโReturns: bool
cddt_26p()
โโ26-part candle double downtrend condition
โโReturns: bool
cddt_27p()
โโ27-part candle double downtrend condition
โโReturns: bool
cddt_28p()
โโ28-part candle double downtrend condition
โโReturns: bool
cddt_29p()
โโ29-part candle double downtrend condition
โโReturns: bool
cddt_30p()
โโ30-part candle double downtrend condition
โโReturns: bool
CandleAnalysisLibrary "CandleAnalysis"
A collection of frequently used candle analysis functions in my scripts.
isBullish(barsBack)
โโChecks if a specific bar is bullish.
โโParameters:
โโโโ barsBack (int) : (int) The number of bars to look back. The default is 0 (current bar).
โโReturns: True if the bar is bullish, otherwise returns false.
isBearish(barsBack)
โโChecks if a specific bar is bearish.
โโParameters:
โโโโ barsBack (int) : (int) The number of bars to look back. The default is 0 (current bar).
โโReturns: True if the bar is bearish, otherwise returns false.
isBE(barsBack)
โโChecks if a specific bar is break even.
โโParameters:
โโโโ barsBack (int) : (int) The number of bars to look back. The default is 0 (current bar).
โโReturns: True if the bar is break even, otherwise returns false.
getBodySize(barsBack, inPriceChg)
โโCalculates a specific candle's body size.
โโParameters:
โโโโ barsBack (int) : (int) The number of bars to look back. The default is 0 (current bar).
โโโโ inPriceChg (bool) : (bool) True to return the body size as a price change value. The default is false (in points).
โโReturns: The candle's body size in points.
getTopWickSize(barsBack, inPriceChg)
โโCalculates a specific candle's top wick size.
โโParameters:
โโโโ barsBack (int) : (int) The number of bars to look back. The default is 0 (current bar).
โโโโ inPriceChg (bool) : (bool) True to return the wick size as a price change value. The default is false (in points).
โโReturns: The candle's top wick size in points.
getBottomWickSize(barsBack, inPriceChg)
โโCalculates a specific candle's bottom wick size.
โโParameters:
โโโโ barsBack (int) : (int) The number of bars to look back. The default is 0 (current bar).
โโโโ inPriceChg (bool) : (bool) True to return the wick size as a price change value. The default is false (in points).
โโReturns: The candle's bottom wick size in points.
getBodyPercent(barsBack)
โโCalculates a specific candle's body size as a percentage of its entire size including its wicks.
โโParameters:
โโโโ barsBack (int) : (int) The number of bars to look back. The default is 0 (current bar).
โโReturns: The candle's body size percentage.
isHammer(fib, bullish, barsBack)
โโChecks if a specific bar is a hammer candle based on a given fibonacci level.
โโParameters:
โโโโ fib (float) : (float) The fibonacci level to base candle's body on. The default is 0.382.
โโโโ bullish (bool) : (bool) True if the candle must to be green. The default is false.
โโโโ barsBack (int) : (int) The number of bars to look back. The default is 0 (current bar).
โโReturns: True if the bar matches the requirements of a hammer candle, otherwise returns false.
isShootingStar(fib, bearish, barsBack)
โโChecks if a specific bar is a shooting star candle based on a given fibonacci level.
โโParameters:
โโโโ fib (float) : (float) The fibonacci level to base candle's body on. The default is 0.382.
โโโโ bearish (bool) : (bool) True if the candle must to be red. The default is false.
โโโโ barsBack (int) : (int) The number of bars to look back. The default is 0 (current bar).
โโReturns: True if the bar matches the requirements of a shooting star candle, otherwise returns false.
isDoji(wickSize, bodySize, barsBack)
โโChecks if a specific bar is a doji candle based on a given wick and body size.
โโParameters:
โโโโ wickSize (float) : (float) The maximum top wick size compared to the bottom and vice versa. The default is 1.5.
โโโโ bodySize (float) : (bool) The maximum body size as a percentage compared to the entire candle size. The default is 5.
โโโโ barsBack (int) : (int) The number of bars to look back. The default is 0 (current bar).
โโReturns: True if the bar matches the requirements of a doji candle.
isBullishEC(gapTolerance, rejectionWickSize, engulfWick, barsBack)
โโChecks if a specific bar is a bullish engulfing candle.
โโParameters:
โโโโ gapTolerance (int)
โโโโ rejectionWickSize (int) : (int) The maximum top wick size compared to the body as a percentage. The default is 10.
โโโโ engulfWick (bool) : (bool) True if the engulfed candle's wick requires to be engulfed as well. The default is false.
โโโโ barsBack (int) : (int) The number of bars to look back. The default is 0 (current bar).
โโReturns: True if the bar matches the requirements of a bullish engulfing candle.
isBearishEC(gapTolerance, rejectionWickSize, engulfWick, barsBack)
โโChecks if a specific bar is a bearish engulfing candle.
โโParameters:
โโโโ gapTolerance (int)
โโโโ rejectionWickSize (int) : (int) The maximum bottom wick size compared to the body as a percentage. The default is 10.
โโโโ engulfWick (bool) : (bool) True if the engulfed candle's wick requires to be engulfed as well. The default is false.
โโโโ barsBack (int) : (int) The number of bars to look back. The default is 0 (current bar).
โโReturns: True if the bar matches the requirements of a bearish engulfing candle.
MarcosLibraryLibrary "MarcosLibrary"
A colection of frequently used functions in my scripts.
bullFibRet(priceLow, priceHigh, fibLevel)
โโCalculates a bullish fibonacci retracement value.
โโParameters:
โโโโ priceLow (float) : (float) The lowest price point.
โโโโ priceHigh (float) : (float) The highest price point.
โโโโ fibLevel (float) : (float) The fibonacci level to calculate.
โโReturns: The fibonacci value of the given retracement level.
bearFibRet(priceLow, priceHigh, fibLevel)
โโCalculates a bearish fibonacci retracement value.
โโParameters:
โโโโ priceLow (float) : (float) The lowest price point.
โโโโ priceHigh (float) : (float) The highest price point.
โโโโ fibLevel (float) : (float) The fibonacci level to calculate.
โโReturns: The fibonacci value of the given retracement level.
bullFibExt(priceLow, priceHigh, thirdPivot, fibLevel)
โโCalculates a bullish fibonacci extension value.
โโParameters:
โโโโ priceLow (float) : (float) The lowest price point.
โโโโ priceHigh (float) : (float) The highest price point.
โโโโ thirdPivot (float) : (float) The third price point.
โโโโ fibLevel (float) : (float) The fibonacci level to calculate.
โโReturns: The fibonacci value of the given extension level.
bearFibExt(priceLow, priceHigh, thirdPivot, fibLevel)
โโCalculates a bearish fibonacci extension value.
โโParameters:
โโโโ priceLow (float) : (float) The lowest price point.
โโโโ priceHigh (float) : (float) The highest price point.
โโโโ thirdPivot (float) : (float) The third price point.
โโโโ fibLevel (float) : (float) The fibonacci level to calculate.
โโReturns: The fibonacci value of the given extension level.
isBullish(barsBack)
โโChecks if a specific bar is bullish.
โโParameters:
โโโโ barsBack (int) : (int) The number of bars to look back. The default is 0 (current bar).
โโReturns: True if the bar is bullish, otherwise returns false.
isBearish(barsBack)
โโChecks if a specific bar is bearish.
โโParameters:
โโโโ barsBack (int) : (int) The number of bars to look back. The default is 0 (current bar).
โโReturns: True if the bar is bearish, otherwise returns false.
isBE(barsBack)
โโChecks if a specific bar is break even.
โโParameters:
โโโโ barsBack (int) : (int) The number of bars to look back. The default is 0 (current bar).
โโReturns: True if the bar is break even, otherwise returns false.
getBodySize(barsBack, inPriceChg)
โโCalculates a specific candle's body size.
โโParameters:
โโโโ barsBack (int) : (int) The number of bars to look back. The default is 0 (current bar).
โโโโ inPriceChg (bool) : (bool) True to return the body size as a price change value. The default is false (in points).
โโReturns: The candle's body size in points.
getTopWickSize(barsBack, inPriceChg)
โโCalculates a specific candle's top wick size.
โโParameters:
โโโโ barsBack (int) : (int) The number of bars to look back. The default is 0 (current bar).
โโโโ inPriceChg (bool) : (bool) True to return the wick size as a price change value. The default is false (in points).
โโReturns: The candle's top wick size in points.
getBottomWickSize(barsBack, inPriceChg)
โโCalculates a specific candle's bottom wick size.
โโParameters:
โโโโ barsBack (int) : (int) The number of bars to look back. The default is 0 (current bar).
โโโโ inPriceChg (bool) : (bool) True to return the wick size as a price change value. The default is false (in points).
โโReturns: The candle's bottom wick size in points.
getBodyPercent(barsBack)
โโCalculates a specific candle's body size as a percentage of its entire size including its wicks.
โโParameters:
โโโโ barsBack (int) : (int) The number of bars to look back. The default is 0 (current bar).
โโReturns: The candle's body size percentage.
isHammer(fib, bullish, barsBack)
โโChecks if a specific bar is a hammer candle based on a given fibonacci level.
โโParameters:
โโโโ fib (float) : (float) The fibonacci level to base candle's body on. The default is 0.382.
โโโโ bullish (bool) : (bool) True if the candle must to be green. The default is false.
โโโโ barsBack (int) : (int) The number of bars to look back. The default is 0 (current bar).
โโReturns: True if the bar matches the requirements of a hammer candle, otherwise returns false.
isShootingStar(fib, bearish, barsBack)
โโChecks if a specific bar is a shooting star candle based on a given fibonacci level.
โโParameters:
โโโโ fib (float) : (float) The fibonacci level to base candle's body on. The default is 0.382.
โโโโ bearish (bool) : (bool) True if the candle must to be red. The default is false.
โโโโ barsBack (int) : (int) The number of bars to look back. The default is 0 (current bar).
โโReturns: True if the bar matches the requirements of a shooting star candle, otherwise returns false.
isDoji(wickSize, bodySize, barsBack)
โโChecks if a specific bar is a doji candle based on a given wick and body size.
โโParameters:
โโโโ wickSize (float) : (float) The maximum top wick size compared to the bottom and vice versa. The default is 1.5.
โโโโ bodySize (float) : (bool) The maximum body size as a percentage compared to the entire candle size. The default is 5.
โโโโ barsBack (int) : (int) The number of bars to look back. The default is 0 (current bar).
โโReturns: True if the bar matches the requirements of a doji candle.
isBullishEC(gapTolerance, rejectionWickSize, engulfWick, barsBack)
โโChecks if a specific bar is a bullish engulfing candle.
โโParameters:
โโโโ gapTolerance (int)
โโโโ rejectionWickSize (int) : (int) The maximum top wick size compared to the body as a percentage. The default is 10.
โโโโ engulfWick (bool) : (bool) True if the engulfed candle's wick requires to be engulfed as well. The default is false.
โโโโ barsBack (int) : (int) The number of bars to look back. The default is 0 (current bar).
โโReturns: True if the bar matches the requirements of a bullish engulfing candle.
isBearishEC(gapTolerance, rejectionWickSize, engulfWick, barsBack)
โโChecks if a specific bar is a bearish engulfing candle.
โโParameters:
โโโโ gapTolerance (int)
โโโโ rejectionWickSize (int) : (int) The maximum bottom wick size compared to the body as a percentage. The default is 10.
โโโโ engulfWick (bool) : (bool) True if the engulfed candle's wick requires to be engulfed as well. The default is false.
โโโโ barsBack (int) : (int) The number of bars to look back. The default is 0 (current bar).
โโReturns: True if the bar matches the requirements of a bearish engulfing candle.
VandelayIndicatorLibLibrary "VandelayIndicatorLib"
Art Vandelay's Indicator library
STC_VIL(EEEEEE, BBBB, BBBBB)
โโSchaff Trend Cycle Calculations
โโParameters:
โโโโ EEEEEE (int) : = Slengt, BBBB = FALenght, BBBBB = SLOLenght
โโโโ BBBB (simple int)
โโโโ BBBBB (simple int)
โโReturns: Long : mAAAAA > mAAAAA - Short : mAAAAA < mAAAAA
stc(source, fast, slow, cycle, d1, d2)
โโCalculates the value of the Schaff Trend Cycle indicator.
โโParameters:
โโโโ source (float) : (series int/float) Series of values to process.
โโโโ fast (simple int) : (simple int) Length for the MACD fast smoothing parameter calculation.
โโโโ slow (simple int) : (simple int) Length for the MACD slow smoothing parameter calculation.
โโโโ cycle (simple int) : (simple int) Number of bars for the Stochastic values (length).
โโโโ d1 (simple int) : (simple int) Length for the initial %D smoothing parameter calculation.
โโโโ d2 (simple int) : (simple int) Length for the final %D smoothing parameter calculation.
โโReturns: (float) The oscillator value.
Cinnamon_Bear Indicators MA LibraryLibrary "Cinnamon_BearIndicatorsMALibrary"
This is a personal Library of the NON built-in PineScript Moving Average function used to code indicators
ma_dema(source, length)
โโDouble Exponential Moving Average (DEMA)
โโParameters:
โโโโ source (simple float)
โโโโ length (simple int)
โโReturns: A double level of smoothing helps to follow price movements more closely while still reducing noise compared to a single EMA.
ma_dsma(source, length)
โโDouble Smoothed Moving Average (DSMA)
โโParameters:
โโโโ source (simple float)
โโโโ length (simple int)
โโReturns: A double level of smoothing helps to follow price movements more closely while still reducing noise compared to a single SMA.
ma_tema(source, length)
โโTriple Exponential Moving Average (TEMA)
โโParameters:
โโโโ source (simple float)
โโโโ length (simple int)
โโReturns: A Triple level of smoothing helps to follow price movements even more closely compared to a DEMA.
ma_vwema(source, length)
โโVolume-Weighted Exponential Moving Average (VWEMA)
โโParameters:
โโโโ source (simple float)
โโโโ length (simple int)
โโReturns: The VWEMA weights based on volume and recent price, giving more weight to periods with higher trading volumes.
ma_hma(source, length)
โโHull Moving Average (HMA)
โโParameters:
โโโโ source (simple float)
โโโโ length (simple int)
โโReturns: The HMA formula combines the properties of the weighted moving average (WMA) and the exponential moving average (EMA) to achieve a smoother and more responsive curve.
ma_ehma(source, length)
โโEnhanced Moving Average (EHMA)
โโParameters:
โโโโ source (simple float)
โโโโ length (simple int)
โโReturns: The EHMA is calculated similarly to the Hull Moving Average (HMA) but uses a different weighting factor to further improve responsiveness.
ma_trix(source, length)
โโTriple Exponential Moving Average (TRIX)
โโParameters:
โโโโ source (simple float)
โโโโ length (simple int)
โโReturns: The TRIX is an oscillator that shows the percentage change of a triple EMA. It is designed to filter out minor price movements and display only the most significant trends. The TRIX is a momentum indicator that can help identify trends and buy or sell signals.
ma_lsma(source, length)
โโLinear Weighted Moving Average (LSMA)
โโParameters:
โโโโ source (simple float)
โโโโ length (simple int)
โโReturns: A moving average that gives more weight to recent prices. It is calculated using a formula that assigns linear weights to prices, with the highest weight given to the most recent price and the lowest weight given to the furthest price in the series.
ma_wcma(source, length)
โโWeighted Cumulative Moving Average (WCMA)
โโParameters:
โโโโ source (simple float)
โโโโ length (simple int)
โโReturns: A moving average that gives more weight to recent prices. Compared to a LSMA, the WCMA the weights of data increase linearly with time, so the most recent data has a greater weight compared to older data. This means that the contribution of the most recent data to the moving average is more significant.
ma_vidya(source, length)
โโVariable Index Dynamic Average (VIDYA)
โโParameters:
โโโโ source (simple float)
โโโโ length (simple int)
โโReturns: It is an adaptive moving average that adjusts its momentum based on market volatility using the formula of Chande Momentum Oscillator (CMO) .
ma_zlma(source, length)
โโZero-Lag Moving Average (ZLMA)
โโParameters:
โโโโ source (simple float)
โโโโ length (simple int)
โโReturns: Its aims to minimize the lag typically associated with MA, designed to react more quickly to price changes.
ma_gma(source, length, power)
โโGeneralized Moving Average (GMA)
โโParameters:
โโโโ source (simple float)
โโโโ length (simple int)
โโโโ power (simple int)
โโReturns: It is a moving average that uses a power parameter to adjust the weight of historical data. This allows the GMA to adapt to various styles of MA.
ma_tma(source, length)
โโTriangular Moving Average (TMA)
โโParameters:
โโโโ source (simple float)
โโโโ length (simple int)
โโReturns: MA more sensitive to changes in recent data compared to the SMA, providing a moving average that better adapts to short-term price changes.
[ALGOA+] AutofiboLibrary "Autofibo"
fibonacci(up, down, calculate, log, color1, color2, plot)
โโCreates an array with fibbonaci levels and plots lines.
โโParameters:
โโโโ up (float)
โโโโ down (float)
โโโโ calculate (bool)
โโโโ log (bool)
โโโโ color1 (color)
โโโโ color2 (color)
โโโโ plot (bool)
โโReturns: --> var float tupple.
fibonacciExtension(up, down, direction, log, calculate, color1, plot)
โโFibonacci extension.
@description up (float) Up level.
@description down (float) Down level.
@description direction (string) Options "up" or "down".
โโParameters:
โโโโ up (float)
โโโโ down (float)
โโโโ direction (string)
โโโโ log (bool)
โโโโ calculate (bool)
โโโโ color1 (color)
โโโโ plot (bool)
โโReturns: -> var float, var float
trendFibo(uptrend, downtrend, log_option, color1, color2, plot)
โโCalculates automatic fibo values based on trends, returning a tupple with most important values.
โโParameters:
โโโโ uptrend (bool)
โโโโ downtrend (bool)
โโโโ log_option (bool)
โโโโ color1 (color)
โโโโ color2 (color)
โโโโ plot (bool)
โโReturns:
VolumeSpreadAnalysisLibrary "VolumeSpreadAnalysis"
A library for Volume Spread Analysis (VSA).
spread(_barIndex)
โโCalculates the spread of a bar.
โโParameters:
โโโโ _barIndex (int) : (int) The index of the bar.
โโReturns: (float) The spread of the bar.
volume(_barIndex)
โโRetrieves the volume of a bar.
โโParameters:
โโโโ _barIndex (int) : (int) The index of the bar.
โโReturns: (float) The volume of the bar.
body(_barIndex)
โโCalculates the body of a bar.
โโParameters:
โโโโ _barIndex (simple int) : (int) The index of the bar.
โโReturns: (float) The body size of the bar.
wickUpper(_barIndex)
โโCalculates the upper wick of a bar (upper shadow).
โโParameters:
โโโโ _barIndex (simple int) : (int) The index of the bar.
โโReturns: (float) The upper wick size of the bar.
wickLower(_barIndex)
โโCalculates the lower wick of a bar (lower shadow).
โโParameters:
โโโโ _barIndex (simple int) : (int) The index of the bar.
โโReturns: (float) The lower wick size of the bar.
calcForecastedSMA(_source, _length, _forecastedLevel)
โโCalculates the forecasted Simple Moving Average (SMA).
โโParameters:
โโโโ _source (float) : (series float) Source data for calculation.
โโโโ _length (simple int) : (int) The length of the SMA.
โโโโ _forecastedLevel (float) : (float) The forecasted level to include in the calculation.
โโReturns: (float) The forecasted SMA value.
calcForecastedEMA(_source, _length, _forecastedLevel)
โโCalculates the forecasted Exponential Moving Average (EMA).
โโParameters:
โโโโ _source (float) : (series float) Source data for calculation.
โโโโ _length (simple int) : (int) The length of the EMA.
โโโโ _forecastedLevel (float) : (float) The forecasted level to include in the calculation.
โโReturns: (float) The forecasted EMA value.
calcForecastedRMA(_source, _length, _forecastedLevel)
โโCalculates the forecasted Relative Moving Average (RMA).
โโParameters:
โโโโ _source (float) : (series float) Source data for calculation.
โโโโ _length (simple int) : (int) The length of the RMA.
โโโโ _forecastedLevel (float) : (float) The forecasted level to include in the calculation.
โโReturns: (float) The forecasted RMA value.
calcForecastedWMA(_source, _length, _forecastedLevel)
โโCalculates the forecasted Weighted Moving Average (WMA).
โโParameters:
โโโโ _source (float) : (series float) Source data for calculation.
โโโโ _length (simple int) : (int) The length of the WMA.
โโโโ _forecastedLevel (float) : (float) The forecasted level to include in the calculation.
โโReturns: (float) The forecasted WMA value.
calcElapsedTimePercent()
โโCalculates the elapsed time percent of the current bar.
โโReturns: (float) The elapsed time percent.
calcForecastedSpread(multiplierAtMidpoints, multiplierAtPeaks)
โโCalculates the forecasted spread using elapsed time and dynamic multipliers, handling spread's non-linear nature.
โโParameters:
โโโโ multiplierAtMidpoints (float) : (float) The multiplier value at midpoints.
โโโโ multiplierAtPeaks (float) : (float) The multiplier value at peaks.
โโReturns: (float) The forecasted spread value.
calcForecastedVolume()
โโCalculates the forecasted volume using elapsed time, satisfying volume's linear nature.
โโReturns: (float) The forecasted volume value.
calcForecastedMA(_source, _length, _forecastedSource, _type)
โโCalculates the forecasted Moving Average (MA) based on the specified type.
โโParameters:
โโโโ _source (float) : (series float) Source data for calculation.
โโโโ _length (simple int) : (int) The length of the MA.
โโโโ _forecastedSource (float) : (float) The forecasted level to include in the calculation.
โโโโ _type (simple string) : (string) The type of the MA ("SMA", "EMA", "SMMA (RMA)", "WMA").
โโReturns: (float) The forecasted MA value.
calcMA(_source, _length, _type)
โโCalculates the Moving Average (MA) based on the specified type.
โโParameters:
โโโโ _source (float) : (series float) Source data for calculation.
โโโโ _length (simple int) : (int) The length of the MA.
โโโโ _type (simple string) : (string) The type of the MA ("SMA", "EMA", "SMMA (RMA)", "WMA").
โโReturns: (float) The MA value.
bullBar(_barIndex)
โโDetermines if the bar is bullish.
โโParameters:
โโโโ _barIndex (simple int) : (int) The index of the bar.
โโReturns: (bool) True if the bar is bullish, otherwise false.
bearBar(_barIndex)
โโDetermines if the bar is bearish.
โโParameters:
โโโโ _barIndex (simple int) : (int) The index of the bar.
โโReturns: (bool) True if the bar is bearish, otherwise false.
breakout(_barIndex)
โโDetermines if there is a breakout above the previous bar.
โโParameters:
โโโโ _barIndex (simple int) : (int) The index of the bar.
โโReturns: (bool) True if there is a breakout, otherwise false.
breakdown(_barIndex)
โโDetermines if there is a breakdown below the previous bar.
โโParameters:
โโโโ _barIndex (simple int) : (int) The index of the bar.
โโReturns: (bool) True if there is a breakdown, otherwise false.
rejectionWickUpper(_rejectionWick)
โโDetermines if the upper wick is a rejection wick.
โโParameters:
โโโโ _rejectionWick (simple float) : (float) The rejection wick percentage.
โโReturns: (bool) True if the upper wick is a rejection wick, otherwise false.
rejectionWickLower(_rejectionWick)
โโDetermines if the lower wick is a rejection wick.
โโParameters:
โโโโ _rejectionWick (simple float) : (float) The rejection wick percentage.
โโReturns: (bool) True if the lower wick is a rejection wick, otherwise false.
setupDataVolume(_data, _mult_Low, _mult_High, _mult_Ultra, _maLengthVolume, _maTypeVolume)
โโSets up data for volume levels.
โโParameters:
โโโโ _data (map) : (map) The map to store the levels.
โโโโ _mult_Low (simple float) : (float) The multiplier for low level.
โโโโ _mult_High (simple float) : (float) The multiplier for high level.
โโโโ _mult_Ultra (simple float) : (float) The multiplier for ultra level.
โโโโ _maLengthVolume (simple int) : (int) The length for MA.
โโโโ _maTypeVolume (simple string) : (string) The type for MA.
โโReturns: (void) Nothing.
setupDataSpread(_data, _mult_Low, _mult_High, _mult_Ultra, _maLengthSpread, _maTypeSpread)
โโSets up data for spread levels.
โโParameters:
โโโโ _data (map) : (map) The map to store the levels.
โโโโ _mult_Low (simple float) : (float) The multiplier for low level.
โโโโ _mult_High (simple float) : (float) The multiplier for high level.
โโโโ _mult_Ultra (simple float) : (float) The multiplier for ultra level.
โโโโ _maLengthSpread (simple int) : (int) The length for MA.
โโโโ _maTypeSpread (simple string) : (string) The type for MA.
โโReturns: (void) Nothing.
setupDataForecastVolume(_dataForecast, _mult_Low, _mult_High, _mult_Ultra, _maLengthVolume, _predictedLevelVolume, _maTypeVolume)
โโSets up data for volume and spread levels for forecast.
โโParameters:
โโโโ _dataForecast (map)
โโโโ _mult_Low (simple float) : (float) The multiplier for low level.
โโโโ _mult_High (simple float) : (float) The multiplier for high level.
โโโโ _mult_Ultra (simple float) : (float) The multiplier for ultra level.
โโโโ _maLengthVolume (simple int) : (int) The length for MA.
โโโโ _predictedLevelVolume (float) : (float) The predicted level for MA.
โโโโ _maTypeVolume (simple string) : (string) The type for MA.
โโReturns: (void) Nothing.
setupDataForecastSpread(_dataForecast, _mult_Low, _mult_High, _mult_Ultra, _maLengthSpread, _predictedLevelSpread, _maTypeSpread)
โโSets up data for spread levels for forecast.
โโParameters:
โโโโ _dataForecast (map)
โโโโ _mult_Low (simple float) : (float) The multiplier for low level.
โโโโ _mult_High (simple float) : (float) The multiplier for high level.
โโโโ _mult_Ultra (simple float) : (float) The multiplier for ultra level.
โโโโ _maLengthSpread (simple int) : (int) The length for MA.
โโโโ _predictedLevelSpread (float) : (float) The predicted level for MA.
โโโโ _maTypeSpread (simple string) : (string) The type for MA.
โโReturns: (void) Nothing.
isVolumeLow(_data, _barIndex)
โโDetermines if the volume is low.
โโParameters:
โโโโ _data (map) : (map) The data map with volume levels.
โโโโ _barIndex (int)
โโReturns: (bool) True if the volume is low, otherwise false.
isVolumeNormal(_data, _barIndex)
โโDetermines if the volume is normal.
โโParameters:
โโโโ _data (map) : (map) The data map with volume levels.
โโโโ _barIndex (int)
โโReturns: (bool) True if the volume is normal, otherwise false.
isVolumeHigh(_data, _barIndex)
โโDetermines if the volume is high.
โโParameters:
โโโโ _data (map) : (map) The data map with volume levels.
โโโโ _barIndex (int)
โโReturns: (bool) True if the volume is high, otherwise false.
isVolumeUltra(_data, _barIndex)
โโDetermines if the volume is ultra.
โโParameters:
โโโโ _data (map) : (map) The data map with volume levels.
โโโโ _barIndex (int)
โโReturns: (bool) True if the volume is ultra, otherwise false.
isSpreadLow(_data, _barIndex)
โโDetermines if the spread is low.
โโParameters:
โโโโ _data (map) : (map) The data map with spread levels.
โโโโ _barIndex (int)
โโReturns: (bool) True if the spread is low, otherwise false.
isSpreadNormal(_data, _barIndex)
โโDetermines if the spread is normal.
โโParameters:
โโโโ _data (map) : (map) The data map with spread levels.
โโโโ _barIndex (int)
โโReturns: (bool) True if the spread is normal, otherwise false.
isSpreadHigh(_data, _barIndex)
โโDetermines if the spread is high.
โโParameters:
โโโโ _data (map) : (map) The data map with spread levels.
โโโโ _barIndex (int)
โโReturns: (bool) True if the spread is high, otherwise false.
isSpreadUltra(_data, _barIndex)
โโDetermines if the spread is ultra.
โโParameters:
โโโโ _data (map) : (map) The data map with spread levels.
โโโโ _barIndex (int)
โโReturns: (bool) True if the spread is ultra, otherwise false.
isVolumeText(_data)
โโDetermines text string representing the volume area level.
โโParameters:
โโโโ _data (map) : (map) The data map with volume levels.
โโReturns: (string) Text string of Low, Normal, High, or Ultra.
isSpreadText(_data)
โโDetermines text string representing the spread area level.
โโParameters:
โโโโ _data (map) : (map) The data map with spread levels.
โโReturns: (string) Text string of Low, Normal, High, or Ultra.
calcBarColor(_value, _level)
โโCalculates the color based level.
โโParameters:
โโโโ _value (float) : (float) The value to check.
โโโโ _level (float) : (float) The value level for comparison.
โโReturns: (color) The color for the bar.
bullPinBar(_maxBodyPercent, _minWickPercent)
โโDetermines if the bar is a bull pin bar.
โโParameters:
โโโโ _maxBodyPercent (simple float) : (float) The maximum body percentage.
โโโโ _minWickPercent (simple float) : (float) The minimum wick percentage.
โโReturns: (bool) True if the bar is a bull pin bar, otherwise false.
bearPinBar(_maxBodyPercent, _minWickPercent)
โโDetermines if the bar is a bear pin bar.
โโParameters:
โโโโ _maxBodyPercent (simple float) : (float) The maximum body percentage.
โโโโ _minWickPercent (simple float) : (float) The minimum wick percentage.
โโReturns: (bool) True if the bar is a bear pin bar, otherwise false.
dojiBar(_maxBodyPercent)
โโDetermines if the bar is a doji.
โโParameters:
โโโโ _maxBodyPercent (simple float) : (float) The maximum body percentage.
โโReturns: (bool) True if the bar is a doji, otherwise false.
spinningTopBar(_minWicksPercent, _emaLength)
โโDetermines if the bar is a spinning top.
โโParameters:
โโโโ _minWicksPercent (simple float) : (float) The minimum wicks percentage.
โโโโ _emaLength (simple int) : (int) The length for EMA calculation.
โโReturns: (bool) True if the bar is a spinning top, otherwise false.
highWaveBar(_minBodyPercent, _minWickPercent, _bars)
โโDetermines if the bar is a high wave bar.
โโParameters:
โโโโ _minBodyPercent (simple float) : (float) The minimum body percentage.
โโโโ _minWickPercent (simple float) : (float) The minimum wick percentage.
โโโโ _bars (simple int) : (int) The number of bars for comparison.
โโReturns: (bool) True if the bar is a high wave bar, otherwise false.
consolidationBar(_data, _spread, _bars)
โโDetermines if the bars are in consolidation.
โโParameters:
โโโโ _data (map) : (map) The data map with spread levels.
โโโโ _spread (simple float) : (float) The spread percentage for comparison.
โโโโ _bars (simple int) : (int) The number of bars for comparison.
โโReturns: (bool) True if the bars are in consolidation, otherwise false.
S_DownThrust(_data, _bullPinBarMaxBody, _bullPinBarMinWick)
โโDetermines if there is a sign of strength (DownThrust).
โโParameters:
โโโโ _data (map) : (map) The data map with volume and spread levels.
โโโโ _bullPinBarMaxBody (simple float) : (float) The maximum body percentage for bull pin bar.
โโโโ _bullPinBarMinWick (simple float) : (float) The minimum wick percentage for bull pin bar.
โโReturns: (bool) True if there is a sign of strength (DownThrust), otherwise false.
S_SellingClimax(_data, _rejectionWick)
โโDetermines if there is a sign of strength (Selling Climax).
โโParameters:
โโโโ _data (map) : (map) The data map with volume and spread levels.
โโโโ _rejectionWick (simple float) : (float) The rejection wick percentage.
โโReturns: (bool) True if there is a sign of strength (Selling Climax), otherwise false.
S_NoEffortBearishResult()
โโDetermines if there is a sign of strength (No Effort Bearish Result).
โโReturns: (bool) True if there is a sign of strength (No Effort Bearish Result), otherwise false.
S_BearishEffortNoResult()
โโDetermines if there is a sign of strength (Bearish Effort No Result).
โโReturns: (bool) True if there is a sign of strength (Bearish Effort No Result), otherwise false.
S_InverseDownThrust(_data, _bearPinBarMaxBody, _bearPinBarMinWick)
โโDetermines if there is a sign of strength (Inverse DownThrust).
โโParameters:
โโโโ _data (map) : (map) The data map with volume and spread levels.
โโโโ _bearPinBarMaxBody (simple float) : (float) The maximum body percentage for bear pin bar.
โโโโ _bearPinBarMinWick (simple float) : (float) The minimum wick percentage for bear pin bar.
โโReturns: (bool) True if there is a sign of strength (Inverse DownThrust), otherwise false.
S_FailedSellingClimax()
โโDetermines if there is a sign of strength (Failed Selling Climax).
โโReturns: (bool) True if there is a sign of strength (Failed Selling Climax), otherwise false.
S_BullOutsideReversal(_data)
โโDetermines if there is a sign of strength (Bull Outside Reversal).
โโParameters:
โโโโ _data (map) : (map) The data map with volume and spread levels.
โโReturns: (bool) True if there is a sign of strength (Bull Outside Reversal), otherwise false.
S_EndOfFallingMarket(_data)
โโDetermines if there is a sign of strength (End of Falling Market).
โโParameters:
โโโโ _data (map) : (map) The data map with volume and spread levels.
โโReturns: (bool) True if there is a sign of strength (End of Falling Market), otherwise false.
S_PseudoDownThrust(_bullPinBarMaxBody, _bullPinBarMinWick)
โโDetermines if there is a sign of strength (Pseudo DownThrust).
โโParameters:
โโโโ _bullPinBarMaxBody (simple float) : (float) The maximum body percentage for bull pin bar.
โโโโ _bullPinBarMinWick (simple float) : (float) The minimum wick percentage for bull pin bar.
โโReturns: (bool) True if there is a sign of strength (Pseudo DownThrust), otherwise false.
S_NoSupply(_bullPinBarMaxBody, _bullPinBarMinWick)
โโDetermines if there is a sign of strength (No Supply).
โโParameters:
โโโโ _bullPinBarMaxBody (simple float) : (float) The maximum body percentage for bull pin bar.
โโโโ _bullPinBarMinWick (simple float) : (float) The minimum wick percentage for bull pin bar.
โโReturns: (bool) True if there is a sign of strength (No Supply), otherwise false.
W_UpThrust(_data, _bearPinBarMaxBody, _bearPinBarMinWick)
โโDetermines if there is a sign of weakness (UpThrust).
โโParameters:
โโโโ _data (map) : (map) The data map with volume and spread levels.
โโโโ _bearPinBarMaxBody (simple float) : (float) The maximum body percentage for bear pin bar.
โโโโ _bearPinBarMinWick (simple float) : (float) The minimum wick percentage for bear pin bar.
โโReturns: (bool) True if there is a sign of weakness (UpThrust), otherwise false.
W_BuyingClimax(_data, _rejectionWick)
โโDetermines if there is a sign of weakness (Buying Climax).
โโParameters:
โโโโ _data (map) : (map) The data map with volume and spread levels.
โโโโ _rejectionWick (simple float) : (float) The rejection wick percentage.
โโReturns: (bool) True if there is a sign of weakness (Buying Climax), otherwise false.
W_NoEffortBullishResult()
โโDetermines if there is a sign of weakness (No Effort Bullish Result).
โโReturns: (bool) True if there is a sign of weakness (No Effort Bullish Result), otherwise false.
W_BullishEffortNoResult()
โโDetermines if there is a sign of weakness (Bullish Effort No Result).
โโReturns: (bool) True if there is a sign of weakness (Bullish Effort No Result), otherwise false.
W_InverseUpThrust(_data, _bullPinBarMaxBody, _bullPinBarMinWick)
โโDetermines if there is a sign of weakness (Inverse UpThrust).
โโParameters:
โโโโ _data (map) : (map) The data map with volume and spread levels.
โโโโ _bullPinBarMaxBody (simple float) : (float) The maximum body percentage for bull pin bar.
โโโโ _bullPinBarMinWick (simple float) : (float) The minimum wick percentage for bull pin bar.
โโReturns: (bool) True if there is a sign of weakness (Inverse UpThrust), otherwise false.
W_FailedBuyingClimax()
โโDetermines if there is a sign of weakness (Failed Buying Climax).
โโReturns: (bool) True if there is a sign of weakness (Failed Buying Climax), otherwise false.
W_BearOutsideReversal(_data)
โโDetermines if there is a sign of weakness (Bear Outside Reversal).
โโParameters:
โโโโ _data (map) : (map) The data map with volume and spread levels.
โโReturns: (bool) True if there is a sign of weakness (Bear Outside Reversal), otherwise false.
W_EndOfRisingMarket(_data)
โโDetermines if there is a sign of weakness (End of Rising Market).
โโParameters:
โโโโ _data (map) : (map) The data map with volume and spread levels.
โโReturns: (bool) True if there is a sign of weakness (End of Rising Market), otherwise false.
W_PseudoUpThrust(_bearPinBarMaxBody, _bearPinBarMinWick)
โโDetermines if there is a sign of weakness (Pseudo UpThrust).
โโParameters:
โโโโ _bearPinBarMaxBody (simple float) : (float) The maximum body percentage for bear pin bar.
โโโโ _bearPinBarMinWick (simple float) : (float) The minimum wick percentage for bear pin bar.
โโReturns: (bool) True if there is a sign of weakness (Pseudo UpThrust), otherwise false.
W_NoDemand(_bearPinBarMaxBody, _bearPinBarMinWick)
โโDetermines if there is a sign of weakness (No Demand).
โโParameters:
โโโโ _bearPinBarMaxBody (simple float) : (float) The maximum body percentage for bear pin bar.
โโโโ _bearPinBarMinWick (simple float) : (float) The minimum wick percentage for bear pin bar.
โโReturns: (bool) True if there is a sign of weakness (No Demand), otherwise false.
N_QuietDoji(_dojiBarMaxBody)
โโDetermines if there is a neutral signal (Quiet Doji).
โโParameters:
โโโโ _dojiBarMaxBody (simple float) : (float) The maximum body percentage for doji bar.
โโReturns: (bool) True if there is a neutral signal (Quiet Doji), otherwise false.
N_BalancedDoji(_data, _dojiBarMaxBody)
โโDetermines if there is a neutral signal (Balanced Doji).
โโParameters:
โโโโ _data (map) : (map) The data map with volume and spread levels.
โโโโ _dojiBarMaxBody (simple float) : (float) The maximum body percentage for doji bar.
โโReturns: (bool) True if there is a neutral signal (Balanced Doji), otherwise false.
N_StrongDoji(_dojiBarMaxBody)
โโDetermines if there is a neutral signal (Strong Doji).
โโParameters:
โโโโ _dojiBarMaxBody (simple float) : (float) The maximum body percentage for doji bar.
โโReturns: (bool) True if there is a neutral signal (Strong Doji), otherwise false.
N_QuietSpinningTop(_spinningTopBarMinWicks, _spinningTopBarEmaLength)
โโDetermines if there is a neutral signal (Quiet Spinning Top).
โโParameters:
โโโโ _spinningTopBarMinWicks (simple float) : (float) The minimum wicks percentage for spinning top bar.
โโโโ _spinningTopBarEmaLength (simple int) : (int) The length for EMA calculation.
โโReturns: (bool) True if there is a neutral signal (Quiet Spinning Top), otherwise false.
N_BalancedSpinningTop(_data, _spinningTopBarMinWicks, _spinningTopBarEmaLength)
โโDetermines if there is a neutral signal (Balanced Spinning Top).
โโParameters:
โโโโ _data (map) : (map) The data map with volume and spread levels.
โโโโ _spinningTopBarMinWicks (simple float) : (float) The minimum wicks percentage for spinning top bar.
โโโโ _spinningTopBarEmaLength (simple int) : (int) The length for EMA calculation.
โโReturns: (bool) True if there is a neutral signal (Balanced Spinning Top), otherwise false.
N_StrongSpinningTop(_spinningTopBarMinWicks, _spinningTopBarEmaLength)
โโDetermines if there is a neutral signal (Strong Spinning Top).
โโParameters:
โโโโ _spinningTopBarMinWicks (simple float) : (float) The minimum wicks percentage for spinning top bar.
โโโโ _spinningTopBarEmaLength (simple int) : (int) The length for EMA calculation.
โโReturns: (bool) True if there is a neutral signal (Strong Spinning Top), otherwise false.
N_QuietHighWave(_highWaveBarMinBody, _highWaveBarMinWick, _highWaveBarBars)
โโDetermines if there is a neutral signal (Quiet High Wave).
โโParameters:
โโโโ _highWaveBarMinBody (simple float) : (float) The minimum body percentage for high wave bar.
โโโโ _highWaveBarMinWick (simple float) : (float) The minimum wick percentage for high wave bar.
โโโโ _highWaveBarBars (simple int) : (int) The number of bars for comparison.
โโReturns: (bool) True if there is a neutral signal (Quiet High Wave), otherwise false.
N_BalancedHighWave(_data, _highWaveBarMinBody, _highWaveBarMinWick, _highWaveBarBars)
โโDetermines if there is a neutral signal (Balanced High Wave).
โโParameters:
โโโโ _data (map) : (map) The data map with volume and spread levels.
โโโโ _highWaveBarMinBody (simple float) : (float) The minimum body percentage for high wave bar.
โโโโ _highWaveBarMinWick (simple float) : (float) The minimum wick percentage for high wave bar.
โโโโ _highWaveBarBars (simple int) : (int) The number of bars for comparison.
โโReturns: (bool) True if there is a neutral signal (Balanced High Wave), otherwise false.
N_StrongHighWave(_highWaveBarMinBody, _highWaveBarMinWick, _highWaveBarBars)
โโDetermines if there is a neutral signal (Strong High Wave).
โโParameters:
โโโโ _highWaveBarMinBody (simple float) : (float) The minimum body percentage for high wave bar.
โโโโ _highWaveBarMinWick (simple float) : (float) The minimum wick percentage for high wave bar.
โโโโ _highWaveBarBars (simple int) : (int) The number of bars for comparison.
โโReturns: (bool) True if there is a neutral signal (Strong High Wave), otherwise false.
N_Consolidation(_data, _consolidationBarSpread, _consolidationBarBars)
โโDetermines if there is a neutral signal (Consolidation).
โโParameters:
โโโโ _data (map) : (map) The data map with volume and spread levels.
โโโโ _consolidationBarSpread (simple float) : (float) The spread percentage for consolidation bar.
โโโโ _consolidationBarBars (simple int) : (int) The number of bars for comparison.
โโReturns: (bool) True if there is a neutral signal (Consolidation), otherwise false.
ImrLibraryLibrary "ImrLibrary"
TODO: add library description here
STG(Length)
โโTODO: add function description here
โโParameters:
โโโโ Length (int)
โโReturns: TODO: add what function returns
ISI(Length)
โโParameters:
โโโโ Length (simple int)
Order Block Drawing [TradingFinder]๐ต Introduction
Perhaps one of the most challenging tasks for Pine script developers (especially beginners) is properly drawing order blocks. While utilizing the latest technical analysis methods for "Price Action," beginners heavily rely on accurately plotting "Supply" and "Demand" zones, following concepts like "Smart Money Concept" and "ICT".
However, drawing "Order Blocks" may pose a challenge for developers. Therefore, to minimize bugs, increase accuracy, and speed up the process of coding order blocks, we have released the "Order Block Drawing" library.
Below, you can read more details about how to use this library.
Important :
This library has direct and indirect outputs. The indirect output includes the ranges of order blocks plotted on the chart. However, the direct output is a "Boolean" value that becomes "true" only when the price touches an order block, colloquially termed as "Mitigate." You can use this output for setting up alerts.
๐ต How to Use
First, you can add the library to your code as shown in the example below.
import TFlab/OrderBlockDrawing_TradingFinder/1
๐ฃParameters
OBDrawing(OBType, TriggerCondition, DistalPrice, ProximalPrice, Index, OBValidDis, Show, ColorZone) =>
Parameters:
โข OBType (string)
โข TriggerCondition (bool)
โข DistalPrice (float)
โข ProximalPrice (float)
โข Index (int)
โข OBValidDis (int)
โข Show (bool)
โข ColorZone (color)
OBType : All order blocks are summarized into two types: "Supply" and "Demand." You should input your order block type in this parameter. Enter "Demand" for drawing demand zones and "Supply" for drawing supply zones.
TriggerCondition : Input the condition under which you want the order block to be drawn in this parameter.
DistalPrice : Generally, if each zone is formed by two lines, the farthest line from the price is termed "Distal." This input receives the price of the "Distal" line.
ProximalPrice : Generally, if each zone is formed by two lines, the nearest line to the price is termed "Proximal" line.
Index : This input receives the value of the "bar_index" at the beginning of the order block. You should store the "bar_index" value at the occurrence of the condition for the order block to be drawn and input it here.
OBValidDis : Order blocks continue to be drawn until a new order block is drawn or the order block is "Mitigate." You can specify how many candles after their initiation order blocks should continue. If you want no limitation, enter the number 4998.
Show : You may need to manage whether to display or hide order blocks. When this input is "On", order blocks are displayed, and when it's "Off", order blocks are not displayed.
ColorZone : You can input your preferred color for drawing order blocks.
๐ต Function Outputs
This function has only one output. This output is of type "Boolean" and becomes "true" only when the price touches an order block. Each order block can be touched only once and then loses its validity. You can use this output for alerts.
= Drawing.OBDrawing('Demand', Condition, Distal, Proximal, Index, 4998, true, Color)
AminioLibraryLibrary "AminioLibrary"
: this is my personal library that is being used in different indicators and strategies
calculateMA(source, len, maType)
โโThis fuction returns a moving average value based on the type
โโParameters:
โโโโ source (float) : Is the time series source to calculate average from
โโโโ len (simple int) : The length of the moving average, this should be integer
โโโโ maType (string) : The type of moving average, acceptable types are : SMA, HMA, EMA, RMA, WMA, VWMA
โโReturns: value of moving average
atr(source, len)
โโThis fuction returns atr value for a given source
โโParameters:
โโโโ source (float) : Is the time series source to calculate atr from
โโโโ len (simple int) : The length of the atr, this should be integer
โโReturns: value of atr from source
superTrend(source, factor, len)
โโThis fuction returns value of super trend indicator and the trend direction as a tupple
โโParameters:
โโโโ source (float) : Is the time series source to calculate super trend from
โโโโ factor (simple float) : The multiplication factor for upper and lower band calcualtion, this can be a float
โโโโ len (simple int) : The length of the super trend, this should be integer
โโReturns: value of atr from source
halfTrend(am, chdev)
โโThis fuction returns a hTrend type carrying different values for half trend indicator
โโParameters:
โโโโ am (int) : This is the amplitude used for calcucating the half trend, use integers
โโโโ chdev (float) : This is the Channel Deviation value used for calculating upper and lower atr channel boundaries, you can use floats
โโReturns: hTrend data type
hTrend
โโFields:
โโโโ halfTrend (series__float)
โโโโ trend (series__integer)
โโโโ atrHigh (series__float)
โโโโ atrLow (series__float)
โโโโ arrowUp (series__float)
โโโโ arrowDown (series__float)
Order Block Refiner [TradingFinder]๐ต Introduction
The "Refinement" feature allows you to adjust the width of the order block according to your strategy. There are two modes, "Aggressive" and "Defensive," in the "Order Block Refine". The difference between "Aggressive" and "Defensive" lies in the width of the order block.
For risk-averse traders, the "Defensive" mode is suitable as it provides a lower loss limit and a greater reward-to-risk ratio. For risk-taking traders, the "Aggressive" mode is more appropriate. These traders prefer to enter trades at higher prices, and this mode, which has a wider order block width, is more suitable for this group of individuals.
Important :
One of the advantages of using this library is increased code accuracy. Not only does it have the capability to create order blocks, but you can also simply define the condition for order block creation (true/false) and "bar_index," and you'll find the primary range without applying any filters.
๐ฃ Order Block Refinement Algorithm
The order block ranges are filtered in two stages. In the first stage, the "Open," "High," "Low," and "Close" of the current order block candle, its two or three previous candles, and one subsequent candle (if available) are examined. In this stage, minimum and maximum distances are calculated, and logical range filters are applied.
In the second stage, two modes, "Aggressive" and "Defensive," are calculated.
For the "Defensive" mode, the width of these ranges is compared with the "ATR" (Average True Range) of period 55, and if they are smaller than "ATR" or 1 to more than 4 times "ATR," the width of the range is reduced from 0 to 80 percent.
For the "Aggressive" mode, you get the same output as the first filter, which usually has a wider width than the "Defensive" mode.
โข Order Block Refiner : Off
โข Order Block Refiner : On / "Aggressive Mode"
โข Order Block Refiner : On / "Defensive Mode"
๐ต How to Use
OBRefiner(string OBType, string OBRefine, string RefineMethod, bool TriggerCondition, int Index) =>
Parameters:
โข OBType (string)
โข OBRefine (string)
โข RefineMethod (string)
โข TriggerCondition (bool)
โข Index (int)
To add "Order Block Refiner Library", you must first add the following code to your script.
import TFlab/OrderBlockRefiner_TradingFinder/1
OBType : This parameter receives 2 inputs. If the order block you want to "Refine" is of type demand, you should enter "Demand," and if it's of type supply, you should enter "Supply."
OBRefine : Set to "On" if you want the "Refine" operation to be performed. Otherwise, set to "Off."
RefineMethod : This input receives 2 modes, "Aggressive" and "Defensive." You can switch between these modes according to your needs.
TriggerCondition : Enter the condition with which the order block is formed in this parameter.
Index : Enter the "bar_index" of the candle where the order block is formed in this parameter.
๐ฃ Function Outputs
This function has 6 outputs: "bar_index" at the beginning of the "Distal" line, "bar_index+1" at the end of the "Distal" line, "Price" at the "Distal" line, "bar_index" at the beginning of the "Proximal" line, "bar_index+1" at the end of the "Proximal" line, and "Price" at the "Proximal" line, which can be used to draw order blocks.
Sample :
= Refiner.OBRefiner('Demand', 'Off', 'Aggressive',BuMChMain_Trigger, BuMChMain_Index)
if BuMChMain_Trigger
BuMChHlineMain := line.new(BuMChMain_Xp1 , BuMChMain_Yp12 , bar_index , BuMChMain_Yp12, color = color.black , style = line.style_dotted)
BuMChLlineMain := line.new(BuMChMain_Xd1 , BuMChMain_Yd12 , bar_index , BuMChMain_Yd12, color = color.black , style = line.style_dotted)
BuMChFilineMain := linefill.new(BuMChHlineMain ,BuMChLlineMain , color = color.rgb(76, 175, 80 , 75 ) )
divergingchartpatternLibrary "divergingchartpattern"
Library having implementation of converging chart patterns
getPatternNameByType(patternType)
โโReturns pattern name based on type
โโParameters:
โโโโ patternType (int) : integer value representing pattern type
โโReturns: string name of the pattern
method find(this, sProperties, dProperties, patterns, ohlcArray)
โโfind converging patterns for given zigzag
โโNamespace types: zg.Zigzag
โโParameters:
โโโโ this (Zigzag type from Trendoscope/ZigzagLite/2) : Current zigzag Object
โโโโ sProperties (ScanProperties) : ScanProperties Object
โโโโ dProperties (DrawingProperties type from Trendoscope/abstractchartpatterns/5) : DrawingProperties Object
โโโโ patterns (array type from Trendoscope/abstractchartpatterns/5) : array of existing patterns to check for duplicates
โโโโ ohlcArray (array type from Trendoscope/ohlc/1) : array of OHLC values for historical reference
โโReturns: string name of the pattern
ScanProperties
โโObject containing properties for pattern scanning
โโFields:
โโโโ baseProperties (ScanProperties type from Trendoscope/abstractchartpatterns/5) : Object of Base Scan Properties
โโโโ convergingDistanceMultiplier (series float)
swinglibraryLibrary "swinglibrary"
This library is for calculating non-repainting swings for further calculation on them.
These swings can later be drawn, but drawing is not part of this library, only the calculation.
What do I need to use the library?
You better include the following constants into your script using this library:
int SWING_NO_ACTION = 0
int SWING_FLIP = 1
int SWING_FLIP_NEW_SWING = 2
int SWING_FLIP_UPDATED = 3
int RELATION_HIGHER = 1
int RELATION_EQUAL = 0
int RELATION_LOWER = -1
Choosing the function, that fits your needs
This library contains 4 functions for calculating swings, the difference between them are the data you get for every swing point and additional average values for length and duration:
swings()
swingsR()
swingsL()
swingsLDR()
The naming scheme of these functions is the following:
The base version swings() is only for the swings containing the following swingPoint type:
swingPoint
โโFields:
โโโโ x (integer) : bar index
โโโโ y (float) : price
โโโโ hilo (integer) 1 -> high, -1 -> low
and the return type:
swingReturn
โโFields:
โโโโ swings (array) : array of the last x swing points
โโโโ newSwingHigh (integer) : flag to detect changes for swing highs see constants (SWING_NO_ACTION, SWING_FLIP_NEW_SWING, SWING_FLIP_UPDATED)
โโโโ newSwingLow (integer) : flag to detect changes for swing lows see constants (SWING_NO_ACTION, SWING_FLIP_NEW_SWING, SWING_FLIP_UPDATED)
The R in swingsR() stands for relation where the previously shown types do also contain the relation between the swings of the same swing type (highs and lows respectively).
The same goes for L in swingsL() for length containing the price difference between the current and previous swing point in ticks.
And in the following version swingsLDR() there is also the duration between the current and previous point included.
The parameters for the other functions and type definitions include only the ones, that are needed, the "full" version of the function is described here:
swingsLDR(swingSize, dtbStrength, init, SWING_HISTORY_NUM)
โโParameters:
โโโโ swingSize (int) This parameter defines the size of the swings to look after, meaning higher values will lead to bigger swings
โโโโ dtbStrength (int) Value between 0 and 100 is a factor (%) to the ATR that is used to calculate equal highs/lows (double tops / bottoms).
Higher values will result in a higher tolerance of price difference between the swings.
โโโโ init (bool) This value is usually set to false on default.
It has a special use case, where we need to reduce memory usage and calculation time on the script using this library by start calculating at x bars back instead of the beginning of the chart.
In this case, we set init = true on the first bar we start calculating the swings on to perform the correct initialization.
โโโโ SWING_HISTORY_NUM (int) This is the max number of swings that are stored in the array, so only the last SWING_HISTORY_NUM swings are stored in the array to reduce the memory usage.
New ones remove the oldest ones like in a ring buffer.
This is also influencing the average duration and average swing length.
swingPointLDR
โโFields:
โโโโ x (integer) : bar index
โโโโ y (float) : price
โโโโ hilo (integer) : 1 -> high, -1 -> low
โโโโ length (float) : price difference to the previous swing point in ticks
โโโโ duration (integer) : duration difference to the previous swing point in number of bars
โโโโ relation (integer) : see constants RELATION_HIGHER, RELATION_EQUAL, RELATION_LOWER: reelation to the previous swing points of the same type (previous high or previous low respectively)
swingReturnLDR
โโFields:
โโโโ swings (array) : array of the last x swing points
โโโโ newSwingHigh (integer) : flag to detect changes for swing highs see constants (SWING_NO_ACTION, SWING_FLIP_NEW_SWING, SWING_FLIP_UPDATED)
โโโโ newSwingLow (integer) : flag to detect changes for swing lows see constants (SWING_NO_ACTION, SWING_FLIP_NEW_SWING, SWING_FLIP_UPDATED)
โโโโ avSwLength (float) : average swing length for the last x swings (depending on the max number of swings)
โโโโ avSwingDuration (float) : average swing duration for the last x swings (depending on the max number of swings)
YPLibrary "YP"
TODO: add library description here
breakUp(previousHigh)
โโbreakUp: Determines if the low of the first bar of the current day
is above a given previous high.
โโParameters:
โโโโ previousHigh (float)
โโReturns: : Boolean value indicating whether the condition is met (true) or not (false).
Moving point of controlLibrary "moving_poc"
method getMovingPoc(averagePriceByVolumeHistory, ltfVolumeSerie, ltfPriceSerie, nbBarsToLookback)
โโVolume point of control (PoC) extracted from lower time frame data and previous time period
โโNamespace types: array
โโParameters:
โโโโ averagePriceByVolumeHistory (array) : An array of float to record previous PoC average
โโโโ ltfVolumeSerie (array) : Source of volume for the lower timeframe (ltf)
โโโโ ltfPriceSerie (array) : Source of price for the lower timeframe
โโโโ nbBarsToLookback (int) : A number of bars determining the lookback period of this PoC
โโReturns: Serie of PoC
MyLibrary_functions_D_S_3D_D_T_PART_2Library "MyLibrary_functions_D_S_3D_D_T_PART_2"
TODO: add library description here
N_Re_Fib(Source_low, Source_high, lw, hg, x3_P, x1_P, x2_P)
โโParameters:
โโโโ Source_low (float)
โโโโ Source_high (float)
โโโโ lw (int)
โโโโ hg (int)
โโโโ x3_P (int)
โโโโ x1_P (int)
โโโโ x2_P (int)
P_lb_Re_Fib(Source_low, Source_high, lw, hg, x3_P, x1_P)
โโParameters:
โโโโ Source_low (float)
โโโโ Source_high (float)
โโโโ lw (int)
โโโโ hg (int)
โโโโ x3_P (int)
โโโโ x1_P (int)
label_New(lw_hg, zigzag_Indicator_1_, zigzag_Indicator_2_, zigzag_Indicator_3_, Number_Of_Labels_Printed_MS_MN, x1_, i_, label_id_, style_lable_, color_lable_, size_txt_lable_, color_txt_lable_)
โโParameters:
โโโโ lw_hg (string)
โโโโ zigzag_Indicator_1_ (bool)
โโโโ zigzag_Indicator_2_ (bool)
โโโโ zigzag_Indicator_3_ (bool)
โโโโ Number_Of_Labels_Printed_MS_MN (int)
โโโโ x1_ (int)
โโโโ i_ (int)
โโโโ label_id_ (string)
โโโโ style_lable_ (string)
โโโโ color_lable_ (color)
โโโโ size_txt_lable_ (string)
โโโโ color_txt_lable_ (color)
Num_last_lebel_for_scan_no(Number_Of_Labels_Printed_, array_ad, array_id, gap, scan_no)
โโParameters:
โโโโ Number_Of_Labels_Printed_ (int)
โโโโ array_ad (array)
โโโโ array_id (array)
โโโโ gap (int)
โโโโ scan_no (string)
Previous_piote(lw_hg, arr_x_P_lw, arr_x_P_hg, Num_last_lebel_for_scan_no_MSMN)
โโParameters:
โโโโ lw_hg (string)
โโโโ arr_x_P_lw (array)
โโโโ arr_x_P_hg (array)
โโโโ Num_last_lebel_for_scan_no_MSMN (int)
Required_drawing_information(lw__, hg__, last_l__, last_h__, Source_Zigzag_low_, Source_Zigzag_high_, upcolor_li__, dncolor_li__, upcolor_txt__, dncolor_txt__)
โโParameters:
โโโโ lw__ (int)
โโโโ hg__ (int)
โโโโ last_l__ (int)
โโโโ last_h__ (int)
โโโโ Source_Zigzag_low_ (float)
โโโโ Source_Zigzag_high_ (float)
โโโโ upcolor_li__ (color)
โโโโ dncolor_li__ (color)
โโโโ upcolor_txt__ (color)
โโโโ dncolor_txt__ (color)
draw_line_(zigzag_Indicator_, i__lw, i__hg, Scan_No, lw_, hg_, last_l_, last_h_, arr_ad_lw_, arr_ad_hg_, arr_id_lw_, arr_id_hg_, arr_x_P_lw_, arr_x_P_hg_, Num_last_lebel_for_scan_no_123_MS_, Num_last_lebel_for_scan_no_123_MN_, Source_Zigzag_low_, Source_Zigzag_high_, MS_Div_, MN_Div_, Fibonacci_Retracement_, x_P_lb_Re_Fib_, y_P_lb_Re_Fib_, N_Re_Fib_, size_txt_lable, Fibonacci_txt, line_thick_, sty_line_, upcolor_li_, dncolor_li_, upcolor_txt_, dncolor_txt_)
โโParameters:
โโโโ zigzag_Indicator_ (bool)
โโโโ i__lw (int)
โโโโ i__hg (int)
โโโโ Scan_No (int)
โโโโ lw_ (int)
โโโโ hg_ (int)
โโโโ last_l_ (int)
โโโโ last_h_ (int)
โโโโ arr_ad_lw_ (array)
โโโโ arr_ad_hg_ (array)
โโโโ arr_id_lw_ (array)
โโโโ arr_id_hg_ (array)
โโโโ arr_x_P_lw_ (array)
โโโโ arr_x_P_hg_ (array)
โโโโ Num_last_lebel_for_scan_no_123_MS_ (int)
โโโโ Num_last_lebel_for_scan_no_123_MN_ (int)
โโโโ Source_Zigzag_low_ (float)
โโโโ Source_Zigzag_high_ (float)
โโโโ MS_Div_ (bool)
โโโโ MN_Div_ (bool)
โโโโ Fibonacci_Retracement_ (bool)
โโโโ x_P_lb_Re_Fib_ (int)
โโโโ y_P_lb_Re_Fib_ (float)
โโโโ N_Re_Fib_ (string)
โโโโ size_txt_lable (string)
โโโโ Fibonacci_txt (string)
โโโโ line_thick_ (int)
โโโโ sty_line_ (string)
โโโโ upcolor_li_ (color)
โโโโ dncolor_li_ (color)
โโโโ upcolor_txt_ (color)
โโโโ dncolor_txt_ (color)
draw_line_123(zigzag_Indicator_, scan_no_, lw_, hg_, last_l_, last_h_, lw_D_POINT_ad_, hg_D_POINT_ad_, lw_D_POINT_id_, hg_D_POINT_id_, x_P_123_lw_, x_P_123_hg_, lw_D_P_1__, lw_D_P_2__, lw_D_P_3__, lw_D_P_4__, lw_D_P_5__, hg_D_P_1__, hg_D_P_2__, hg_D_P_3__, hg_D_P_4__, hg_D_P_5__, Num_last_lebel_for_scan_no_123_MS_, Num_last_lebel_for_scan_no_123_MN_, Source_Zigzag_123_F_low_, Source_Zigzag_123_F_high_, MS_Div_123_, MN_Div_123_, Fibonacci_Retracement_123_, x_P_lb_Re_Fib_123_, y_P_lb_Re_Fib_123_, N_Re_Fib_123_, size_txt_lable_lb_, Fibonacci_Re_text_, line_thick_123_, sty_line_123_, upcolor_li_123_, dncolor_li_123_, upcolor_txt_123_, dncolor_txt_123_)
โโParameters:
โโโโ zigzag_Indicator_ (bool)
โโโโ scan_no_ (int)
โโโโ lw_ (int)
โโโโ hg_ (int)
โโโโ last_l_ (int)
โโโโ last_h_ (int)
โโโโ lw_D_POINT_ad_ (array)
โโโโ hg_D_POINT_ad_ (array)
โโโโ lw_D_POINT_id_ (array)
โโโโ hg_D_POINT_id_ (array)
โโโโ x_P_123_lw_ (array)
โโโโ x_P_123_hg_ (array)
โโโโ lw_D_P_1__ (int)
โโโโ lw_D_P_2__ (int)
โโโโ lw_D_P_3__ (int)
โโโโ lw_D_P_4__ (int)
โโโโ lw_D_P_5__ (int)
โโโโ hg_D_P_1__ (int)
โโโโ hg_D_P_2__ (int)
โโโโ hg_D_P_3__ (int)
โโโโ hg_D_P_4__ (int)
โโโโ hg_D_P_5__ (int)
โโโโ Num_last_lebel_for_scan_no_123_MS_ (int)
โโโโ Num_last_lebel_for_scan_no_123_MN_ (int)
โโโโ Source_Zigzag_123_F_low_ (float)
โโโโ Source_Zigzag_123_F_high_ (float)
โโโโ MS_Div_123_ (bool)
โโโโ MN_Div_123_ (bool)
โโโโ Fibonacci_Retracement_123_ (bool)
โโโโ x_P_lb_Re_Fib_123_ (int)
โโโโ y_P_lb_Re_Fib_123_ (float)
โโโโ N_Re_Fib_123_ (string)
โโโโ size_txt_lable_lb_ (string)
โโโโ Fibonacci_Re_text_ (string)
โโโโ line_thick_123_ (int)
โโโโ sty_line_123_ (string)
โโโโ upcolor_li_123_ (color)
โโโโ dncolor_li_123_ (color)
โโโโ upcolor_txt_123_ (color)
โโโโ dncolor_txt_123_ (color)
draw_point_123(zigzag_Indicator_123, points_, lw, hg, last_l, last_h, Source_Zigzag_F_low, Source_Zigzag_F_high, arr_x_P_lw_, arr_x_P_hg_, Num_last_lebel_for_scan_no_123_MS_, Num_last_lebel_for_scan_no_123_MN_, size_points, style_label_upper, style_label_lower, upcolor_lebel, dncolor_lebel)
โโParameters:
โโโโ zigzag_Indicator_123 (bool)
โโโโ points_ (bool)
โโโโ lw (int)
โโโโ hg (int)
โโโโ last_l (int)
โโโโ last_h (int)
โโโโ Source_Zigzag_F_low (float)
โโโโ Source_Zigzag_F_high (float)
โโโโ arr_x_P_lw_ (array)
โโโโ arr_x_P_hg_ (array)
โโโโ Num_last_lebel_for_scan_no_123_MS_ (int)
โโโโ Num_last_lebel_for_scan_no_123_MN_ (int)
โโโโ size_points (string)
โโโโ style_label_upper (string)
โโโโ style_label_lower (string)
โโโโ upcolor_lebel (color)
โโโโ dncolor_lebel (color)
MyLibrary_functions_D_S_3D_D_T_PART_1Library "MyLibrary_functions_D_S_3D_D_T_PART_1"
TODO: add library description here
color_(upcolor_txt, upcolor, dncolor_txt, dncolor, theme)
โโParameters:
โโโโ upcolor_txt (color)
โโโโ upcolor (color)
โโโโ dncolor_txt (color)
โโโโ dncolor (color)
โโโโ theme (string)
Source_Zigzag_F(Source)
โโParameters:
โโโโ Source (string)
p_lw_hg(Source_low, Source_high, Depth)
โโParameters:
โโโโ Source_low (float)
โโโโ Source_high (float)
โโโโ Depth (int)
lowing_highing(Source_low, Source_high, p_lw, p_hg, Deviation)
โโParameters:
โโโโ Source_low (float)
โโโโ Source_high (float)
โโโโ p_lw (int)
โโโโ p_hg (int)
โโโโ Deviation (int)
ll_lh(lowing, highing)
โโParameters:
โโโโ lowing (bool)
โโโโ highing (bool)
down_ll_down_lh(ll, lh, Backstep)
โโParameters:
โโโโ ll (int)
โโโโ lh (int)
โโโโ Backstep (int)
down(down_ll, down_lh, lw, hg)
โโParameters:
โโโโ down_ll (bool)
โโโโ down_lh (bool)
โโโโ lw (int)
โโโโ hg (int)
f_x_P_S123_lw(lw_, hg_, p_lw_, down, Source_low)
โโParameters:
โโโโ lw_ (int)
โโโโ hg_ (int)
โโโโ p_lw_ (int)
โโโโ down (int)
โโโโ Source_low (float)
f_x_P_S123_hg(lw_, hg_, p_hg_, down, Source_high)
โโParameters:
โโโโ lw_ (int)
โโโโ hg_ (int)
โโโโ p_hg_ (int)
โโโโ down (int)
โโโโ Source_high (float)
Update_lw_hg_last_l_last_h(lw, hg, last_l, last_h, p_lw, p_hg, down, Source_low, Source_high)
โโParameters:
โโโโ lw (int)
โโโโ hg (int)
โโโโ last_l (int)
โโโโ last_h (int)
โโโโ p_lw (int)
โโโโ p_hg (int)
โโโโ down (int)
โโโโ Source_low (float)
โโโโ Source_high (float)
x1_P_y1_P_x2_P_y2_P_x3_P_y3_P_x4_P_y4_P(lw, hg, last_l, last_h, Source)
โโParameters:
โโโโ lw (int)
โโโโ hg (int)
โโโโ last_l (int)
โโโโ last_h (int)
โโโโ Source (string)
x1_P_os(lw, hg, x2_D, Diverjence_MACD_Line_, Diverjence_MACD_Histagram_, Diverjence_RSI_, Diverjence_Stochastic_, Diverjence_volume_, Diverjence_CCI_, Diverjence_MFI_, Diverjence_Momentum_, Diverjence_OBV_, Diverjence_ADX_, MACD, hist_MACD, RSI, volume_ok, Stochastic_K, CCI, MFI, momentum, OBV, adx)
โโParameters:
โโโโ lw (int)
โโโโ hg (int)
โโโโ x2_D (int)
โโโโ Diverjence_MACD_Line_ (bool)
โโโโ Diverjence_MACD_Histagram_ (bool)
โโโโ Diverjence_RSI_ (bool)
โโโโ Diverjence_Stochastic_ (bool)
โโโโ Diverjence_volume_ (bool)
โโโโ Diverjence_CCI_ (bool)
โโโโ Diverjence_MFI_ (bool)
โโโโ Diverjence_Momentum_ (bool)
โโโโ Diverjence_OBV_ (bool)
โโโโ Diverjence_ADX_ (bool)
โโโโ MACD (float)
โโโโ hist_MACD (float)
โโโโ RSI (float)
โโโโ volume_ok (float)
โโโโ Stochastic_K (float)
โโโโ CCI (float)
โโโโ MFI (float)
โโโโ momentum (float)
โโโโ OBV (float)
โโโโ adx (float)
x3_P_os(lw, hg, x2_D, x4_D, Diverjence_MACD_Line_, Diverjence_MACD_Histagram_, Diverjence_RSI_, Diverjence_Stochastic_, Diverjence_volume_, Diverjence_CCI_, Diverjence_MFI_, Diverjence_Momentum_, Diverjence_OBV_, Diverjence_ADX_, MACD, hist_MACD, RSI, volume_ok, Stochastic_K, CCI, MFI, momentum, OBV, adx)
โโParameters:
โโโโ lw (int)
โโโโ hg (int)
โโโโ x2_D (int)
โโโโ x4_D (int)
โโโโ Diverjence_MACD_Line_ (bool)
โโโโ Diverjence_MACD_Histagram_ (bool)
โโโโ Diverjence_RSI_ (bool)
โโโโ Diverjence_Stochastic_ (bool)
โโโโ Diverjence_volume_ (bool)
โโโโ Diverjence_CCI_ (bool)
โโโโ Diverjence_MFI_ (bool)
โโโโ Diverjence_Momentum_ (bool)
โโโโ Diverjence_OBV_ (bool)
โโโโ Diverjence_ADX_ (bool)
โโโโ MACD (float)
โโโโ hist_MACD (float)
โโโโ RSI (float)
โโโโ volume_ok (float)
โโโโ Stochastic_K (float)
โโโโ CCI (float)
โโโโ MFI (float)
โโโโ momentum (float)
โโโโ OBV (float)
โโโโ adx (float)
Err_test(lw, hg, x1, y1, x2, y2, y_d, start, finish, Err_Rate)
โโParameters:
โโโโ lw (int)
โโโโ hg (int)
โโโโ x1 (int)
โโโโ y1 (float)
โโโโ x2 (int)
โโโโ y2 (float)
โโโโ y_d (float)
โโโโ start (int)
โโโโ finish (int)
โโโโ Err_Rate (float)
divergence_calculation(Feasibility_RD, Feasibility_HD, Feasibility_ED, lw, hg, Source_low, Source_high, x1_P_pr, x3_P_pr, x1_P_os, x3_P_os, x2_P_pr, x4_P_pr, oscillator, Fix_Err_Mid_Point_Pr, Fix_Err_Mid_Point_Os, Err_Rate_permissible_Mid_Line_Pr, Err_Rate_permissible_Mid_Line_Os, Number_of_price_periods_R_H, Permissible_deviation_factor_in_Pr_R_H, Number_of_oscillator_periods_R_H, Permissible_deviation_factor_in_OS_R_H, Number_of_price_periods_E, Permissible_deviation_factor_in_Pr_E, Number_of_oscillator_periods_E, Permissible_deviation_factor_in_OS_E)
โโParameters:
โโโโ Feasibility_RD (bool)
โโโโ Feasibility_HD (bool)
โโโโ Feasibility_ED (bool)
โโโโ lw (int)
โโโโ hg (int)
โโโโ Source_low (float)
โโโโ Source_high (float)
โโโโ x1_P_pr (int)
โโโโ x3_P_pr (int)
โโโโ x1_P_os (int)
โโโโ x3_P_os (int)
โโโโ x2_P_pr (int)
โโโโ x4_P_pr (int)
โโโโ oscillator (float)
โโโโ Fix_Err_Mid_Point_Pr (bool)
โโโโ Fix_Err_Mid_Point_Os (bool)
โโโโ Err_Rate_permissible_Mid_Line_Pr (float)
โโโโ Err_Rate_permissible_Mid_Line_Os (float)
โโโโ Number_of_price_periods_R_H (int)
โโโโ Permissible_deviation_factor_in_Pr_R_H (float)
โโโโ Number_of_oscillator_periods_R_H (int)
โโโโ Permissible_deviation_factor_in_OS_R_H (float)
โโโโ Number_of_price_periods_E (int)
โโโโ Permissible_deviation_factor_in_Pr_E (float)
โโโโ Number_of_oscillator_periods_E (int)
โโโโ Permissible_deviation_factor_in_OS_E (float)
label_txt(label_ID, zigzag_Indicator_1_, zigzag_Indicator_2_, zigzag_Indicator_3_)
โโParameters:
โโโโ label_ID (string)
โโโโ zigzag_Indicator_1_ (bool)
โโโโ zigzag_Indicator_2_ (bool)
โโโโ zigzag_Indicator_3_ (bool)
delet_scan_item_1(string_, NO_1, GAP)
โโParameters:
โโโโ string_ (string)
โโโโ NO_1 (int)
โโโโ GAP (int)
delet_scan_item_2(string_, NO_1, GAP)
โโParameters:
โโโโ string_ (string)
โโโโ NO_1 (int)
โโโโ GAP (int)
calculation_Final_total(MS_MN, Scan_zigzag_NO, zigzag_Indicator, zigzag_Indicator_1, zigzag_Indicator_2, zigzag_Indicator_3, LW_hg_P2, LW_hg_P1, lw_1, lw_2, lw_3, hg_1, hg_2, hg_3, lw_hg_D_POINT_ad_Array, lw_hg_D_POINT_id_Array, Array_Regular_MS, Array_Hidden_MS, Array_Exaggerated_MS, Array_Regular_MN, Array_Hidden_MN, Array_Exaggerated_MN)
โโParameters:
โโโโ MS_MN (string)
โโโโ Scan_zigzag_NO (string)
โโโโ zigzag_Indicator (bool)
โโโโ zigzag_Indicator_1 (bool)
โโโโ zigzag_Indicator_2 (bool)
โโโโ zigzag_Indicator_3 (bool)
โโโโ LW_hg_P2 (int)
โโโโ LW_hg_P1 (int)
โโโโ lw_1 (int)
โโโโ lw_2 (int)
โโโโ lw_3 (int)
โโโโ hg_1 (int)
โโโโ hg_2 (int)
โโโโ hg_3 (int)
โโโโ lw_hg_D_POINT_ad_Array (array)
โโโโ lw_hg_D_POINT_id_Array (array)
โโโโ Array_Regular_MS (array)
โโโโ Array_Hidden_MS (array)
โโโโ Array_Exaggerated_MS (array)
โโโโ Array_Regular_MN (array)
โโโโ Array_Hidden_MN (array)
โโโโ Array_Exaggerated_MN (array)
Search_piote_1(array_id_7, scan_no)
โโParameters:
โโโโ array_id_7 (array)
โโโโ scan_no (int)
DynamicFunctionsLibrary "DynamicFunctions"
Custom Dynamic functions that allow an adaptive calculation beginning from the first bar
RoC(src, period)
โโDynamic RoC
โโParameters:
โโโโ src (float) : and period
Custom function to calculate the actual period considering non-na source values
โโโโ period (int)
dynamicMedian(src, length)
โโDynamic Median
โโParameters:
โโโโ src (float) : and length
โโโโ length (int)
kernelRegression(src, bandwidth, kernel_type)
โโDynamic Kernel Regression Calculation Uses either of the following inputs for kernel_type: Epanechnikov Logistic Wave
โโParameters:
โโโโ src (float)
โโโโ bandwidth (int)
โโโโ kernel_type (string)
waveCalculation(source, bandwidth, width)
โโUse together with kernelRegression function to get chart applicable band
โโParameters:
โโโโ source (float)
โโโโ bandwidth (int)
โโโโ width (float)
Rsi(src, length)
โโDynamic RSI function
โโParameters:
โโโโ src (float)
โโโโ length (int)
dynamicStdev(src, period)
โโDynamic SD function
โโParameters:
โโโโ src (float)
โโโโ period (int)
stdv_bands(src, length, mult)
โโDynamic SD Bands
โโParameters:
โโโโ src (float)
โโโโ length (int)
โโโโ mult (float)
โโReturns: Basis, Positive SD, Negative SD
Adx(dilen, adxlen)
โโDynamic ADX
โโParameters:
โโโโ dilen (int)
โโโโ adxlen (int)
โโReturns: adx
Atr(length)
โโDynamic ATR
โโParameters:
โโโโ length (int)
โโReturns: ATR
Macd(source, fastLength, slowLength, signalSmoothing)
โโDynamic MACD
โโParameters:
โโโโ source (float)
โโโโ fastLength (int)
โโโโ slowLength (int)
โโโโ signalSmoothing (int)
โโReturns: macdLine, signalLine, histogram
ZigZag Library [TradingFinder]๐ต Introduction
The "Zig Zag" indicator is an analytical tool that emerges from pricing changes. Essentially, it connects consecutive high and low points in an oscillatory manner. This method helps decipher price changes and can also be useful in identifying traditional patterns.
By sifting through partial price changes, "Zig Zag" can effectively pinpoint price fluctuations within defined time intervals.
๐ต Key Features
1. Drawing the Zig Zag based on Pivot points :
The algorithm is based on pivots that operate consecutively and alternately (switch between high and low swing). In this way, zigzag lines are connected from a swing high to a swing low and from a swing low to a swing high.
Also, with a very low probability, it is possible to have both low pivots and high pivots in one candle. In these cases, the algorithm tries to make the best decision to make the most suitable choice.
You can control what period these decisions are based on through the "PiPe" parameter.
2.Naming and labeling each pivot based on its position as "Higher High" (HH), "Lower Low" (LL), "Higher Low" (HL), and "Lower High" (LH).
Additionally, classic patterns such as HH, LH, LL, and HL can be recognized. All traders analyzing financial markets using classic patterns and Elliot Waves can benefit from the "zigzag" indicator to facilitate their analysis.
" HH ": When the price is higher than the previous peak (Higher High).
" HL ": When the price is higher than the previous low (Higher Low).
" LH ": When the price is lower than the previous peak (Lower High).
" LL ": When the price is lower than the previous low (Lower Low).
๐ต How to Use
First, you can add the library to your code as shown in the example below.
import TFlab/ZigZagLibrary_TradingFinder/1 as ZZ
Function "ZigZag" Parameters :
๐ฃ Logical Parameters
1. HIGH : You should place the "high" value here. High is a float variable.
2. LOW : You should place the "low" value here. Low is a float variable.
3. BAR_INDEX : You should place the "bar_index" value here. Bar_index is an integer variable.
4. PiPe : The desired pivot period for plotting Zig Zag is placed in this parameter. For example, if you intend to draw a Zig Zag with a Swing Period of 5, you should input 5.
PiPe is an integer variable.
Important :
Apart from the "PiPe" indicator, which is part of the customization capabilities of this indicator, you can create a multi-time frame mode for the indicator using 3 parameters "High", "Low" and "BAR_INDEX". In this way, instead of the data of the current time frame, use the data of other time frames.
Note that it is better to use the current time frame data, because using the multi-time frame mode is associated with challenges that may cause bugs in your code.
๐ฃ Setting Parameters
5. SHOW_LINE : It's a boolean variable. When true, the Zig Zag line is displayed, and when false, the Zig Zag line display is disabled.
6. STYLE_LINE : In this variable, you can determine the style of the Zig Zag line. You can input one of the 3 options: line.style_solid, line.style_dotted, line.style_dashed. STYLE_LINE is a constant string variable.
7. COLOR_LINE : This variable takes the input of the line color.
8. WIDTH_LINE : The input for this variable is a number from 1 to 3, which is used to adjust the thickness of the line that draws the Zig Zag. WIDTH_LINE is an integer variable.
9. SHOW_LABEL : It's a boolean variable. When true, labels are displayed, and when false, label display is disabled.
10. COLOR_LABEL : The color of the labels is set in this variable.
11. SIZE_LABEL : The size of the labels is set in this variable. You should input one of the following options: size.auto, size.tiny, size.small, size.normal, size.large, size.huge.
12. Show_Support : It's a boolean variable that, when true, plots the last support line, and when false, disables its plotting.
13. Show_Resistance : It's a boolean variable that, when true, plots the last resistance line, and when false, disables its plotting.
Suggestion :
You can use the following code snippet to import Zig Zag into your code for time efficiency.
//import Library
import TFlab/ZigZagLibrary_TradingFinder/1 as ZZ
// Input and Setting
// Zig Zag Line
ShZ = input.bool(true , 'Show Zig Zag Line', group = 'Zig Zag') //Show Zig Zag
PPZ = input.int(5 ,'Pivot Period Zig Zag Line' , group = 'Zig Zag') //Pivot Period Zig Zag
ZLS = input.string(line.style_dashed , 'Zig Zag Line Style' , options = , group = 'Zig Zag' )
//Zig Zag Line Style
ZLC = input.color(color.rgb(0, 0, 0) , 'Zig Zag Line Color' , group = 'Zig Zag') //Zig Zag Line Color
ZLW = input.int(1 , 'Zig Zag Line Width' , group = 'Zig Zag')//Zig Zag Line Width
// Label
ShL = input.bool(true , 'Label', group = 'Label') //Show Label
LC = input.color(color.rgb(0, 0, 0) , 'Label Color' , group = 'Label')//Label Color
LS = input.string(size.tiny , 'Label size' , options = , group = 'Label' )//Label size
Show_Support= input.bool(false, 'Show Last Support',
tooltip = 'Last Support' , group = 'Support and Resistance')
Show_Resistance = input.bool(false, 'Show Last Resistance',
tooltip = 'Last Resistance' , group = 'Support and Resistance')
//Call Function
ZZ.ZigZag(high ,low ,bar_index ,PPZ , ShZ ,ZLS , ZLC, ZLW ,ShL , LC , LS , Show_Support , Show_Resistance )
Liquidity Finder Library๐ต Introduction
You may intend to utilize the "Liquidity" detection capability in your indicators. Instead of writing it, you can import the "Liquidity Finder" library into your code. One of the advantages of this approach is time-saving and reduction in scripting errors.
๐ต Key Features
Identification of "Statics Liquidity"
Identification of "Dynamics Liquidity"
๐ต How to Use
Firstly, you can add the library to your code as shown in the example below :
import TFlab/LiquidityFinderLibrary/1 as Liq
The parameters of the "LLF" function are as follows :
sPP : A float variable ranging from 0 to 0.4. Increasing this number decreases the sensitivity of the "Statics Liquidity Line Detection" function and increases the number of detected lines. The default value is 0.3.
dPP : A float variable ranging from 0.4 to 1.95. Increasing this number increases the sensitivity of the "Dynamics Liquidity Line Detection" function and decreases the number of detected lines. The default value is 1.
SRs : An int variable. By default, it's set to 8. You can change this number to specify the periodicity of static liquidity pivot lines.
SRd : An int variable. By default, it's set to 3. You can change this number to specify the periodicity of dynamic liquidity pivot lines.
ShowHLLs : A bool variable. You can enable or disable the display of "High Statics Liquidity Line".
ShowLLLs : A bool variable. You can enable or disable the display of "Low Statics Liquidity Line".
ShowHLLd : A bool variable. You can enable or disable the display of "High Dynamics Liquidity Line".
ShowLLd : A bool variable. You can enable or disable the display of "High Dynamics Liquidity Line".
๐ฃRecommendation
You can use the following code snippet to import Liquidity Finder into your code for time-saving.
//import Library
import TFlab/LiquidityFinderLibrary/1 as Liq
//input
SLLS = input.float(0.30 , 'Statics Liquidity Line Sensitivity', maxval = 0.4 ,minval = 0.0, step = 0.01) // Statics Liquidity Line Sensitivity
DLLS = input.float(1.00 , 'Dynamics Liquidity Line Sensitivity', maxval = 1.95 ,minval = 0.4, step = 0.01) // Dynamics Liquidity Line Sensitivity
SPP = input.int(8 , 'Statics Period Pivot') // Statics Period Pivot
DPP = input.int(3 , 'Dynamics Period Pivot') // Dynamics Period Pivot
ShowSHLL = input.bool(true , 'Show Statics High Liquidity Line')
ShowSLLL = input.bool(true , 'Show Statics Low Liquidity Line')
ShowDHLL = input.bool(true , 'Show Dynamics High Liquidity Line')
ShowDLLL = input.bool(true , 'Show Dynamics Low Liquidity Line')
//call function
Liq.LLF(SPP,DPP,SLLS,DLLS,ShowSHLL,ShowSLLL,ShowDHLL,ShowDLLL)
LTI_FiltersLinear Time-Invariant (LTI) filters are fundamental tools in signal processing that operate with consistent behavior over time and linearly respond to input signals. They are crucial for analyzing and manipulating signals in various applications, ensuring the output signal's integrity is maintained regardless of when an input is applied or its magnitude. The Windowed Sinc filter is a specific type of LTI filter designed for digital signal processing. It employs a Sinc function, ideal for low-pass filtering, truncated and shaped within a finite window to make it practically implementable. This process involves multiplying the Sinc function by a window function, which tapers off towards the ends, making the filter finite and suitable for digital applications. Windowed Sinc filters are particularly effective for tasks like data smoothing and removing unwanted frequency components, balancing between sharp cutoff characteristics and minimal distortion. The efficiency of Windowed Sinc filters in digital signal processing lies in their adept use of linear algebra, particularly in the convolution process, which combines input data with filter coefficients to produce the desired output. This mathematical foundation allows for precise control over the filtering process, optimizing the balance between filtering performance and computational efficiency. By leveraging linear algebra techniques such as matrix multiplication and Toeplitz matrices, these filters can efficiently handle large datasets and complex filtering tasks, making them invaluable in applications requiring high precision and speed, such as audio processing, financial signal analysis, and image restoration.
Library "LTI_Filters"
offset(length, enable)
โโCalculates the time offset required for aligning the output of a filter with its input, based on the filter's length. This is useful for centered filters where the output is naturally shifted due to the filter's operation.
โโParameters:
โโโโ length (simple int) : The length of the filter.
โโโโ enable (simple bool) : A boolean flag to enable or dissable the offset calculation.
โโReturns: The calculated offset if enabled; otherwise, returns 0.
lti_filter(filter_type, source, length, prefilter, centered, fc, window_type)
โโGeneral-purpose Linear Time-Invariant (LTI) filter function that can apply various filter types to a data series. Can be used to apply a variety of LTI filters with different characteristics to financial data series or other time series data.
โโParameters:
โโโโ filter_type (simple string) : Specifies the type of filter. ("Sinc", "SMA", "WMA")
โโโโ source (float) : The input data series to filter.
โโโโ length (simple int) : The length of the filter.
โโโโ prefilter (simple bool) : Boolean indicating whether to prefilter the input data.
โโโโ centered (simple bool) : Determines whether the filter coefficients are centered.
โโโโ fc (simple float) : Filter cutoff. Expressed like a length.
โโโโ window_type (simple string) : Type of window function to apply. ("Hann", "Hamming", "Blackman", "Triangular", "Lanczos", "None")
โโReturns: The filtered data series.
lti_sma(source, length, prefilter)
โโApplies a Simple Moving Average (SMA) filter to the data series. Useful for smoothing data series to identify trends or for use as a component in more complex indicators.
โโParameters:
โโโโ source (float) : The input data series to filter.
โโโโ length (simple int) : The length of the SMA filter.
โโโโ prefilter (simple bool) : Boolean indicating whether to prefilter the input data.
โโReturns: The SMA-filtered data series.
lti_wma(source, length, prefilter, centered)
โโApplies a Weighted Moving Average (WMA) filter to a data series. Ideal for smoothing data with emphasis on more recent values, allowing for dynamic adjustments to the weighting scheme.
โโParameters:
โโโโ source (float) : The input data series to filter.
โโโโ length (simple int) : The length of the WMA filter.
โโโโ prefilter (simple bool) : Boolean indicating whether to prefilter the input data.
โโโโ centered (simple bool) : Determines whether the filter coefficients are centered.
โโReturns: The WMA-filtered data series.
lti_sinc(source, length, prefilter, centered, fc, window_type)
โโApplies a Sinc filter to a data series, optionally using a window function. Particularly useful for signal processing tasks within financial analysis, such as smoothing or trend identification, with the ability to fine-tune filter characteristics.
โโParameters:
โโโโ source (float) : The input data series to filter.
โโโโ length (simple int) : The length of the Sinc filter.
โโโโ prefilter (simple bool) : Boolean indicating whether to prefilter the input data.
โโโโ centered (simple bool) : Determines whether the filter coefficients are centered.
โโโโ fc (simple float) : Filter cutoff. Expressed like a length.
โโโโ window_type (simple string) : Type of window function to apply. ("Hann", "Hamming", "Blackman", "Triangular", "Lanczos", "None")
โโReturns: The Sinc-filtered data series.






















