Skip to content

botum/trendline-indicator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Advice

All this code is very experimental, not even close to having a release, has flaws all over, not efficient at all. WIP

trendline-indicator

Ads trend-lines to the passed dataframe

How?

This is first approach. Takes dataframe, process to peaks with a customized zig-zag library implementation and then finds trends with those points.

Trends are found through a simple loop over the highs and lows, called 'A' (ax,ay), and the peaks that follow them called 'B' (bx, by) that are "seen" from the A point. I call this the Light House Trend Line, there might be a term already for this sure, but this is all about imagination, mainly spatial.

Then we'll be adding more parameters to the processing to have finest trends needed for strategies.

Doc

  • Paramters:
    • tolerance: Tolerance for difference tolerable for points
    • confirmations: how many low/high where exactly in the sup/res trend respectively.
    • slope_min: minimal angle of valid trendlines
    • slope_max: maximum angle of valid trendlines

To do

  • Sort trends by criterial to define sup/res
  • Save trends to database (marketstore)
  • Log scale option ()

About

Ads trend-lines to the passed dataframe

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published