an specific Trend Line Draw for financial Markets in python
Simple! Clone or download it. install requ and pass it a dataframe like example in main file
pip install plotly
pip install numpy
pip install pandas
it has a lot options like degree limit on sides. check validation of trend define by you, and you can see al detailes on tags
df = pd.read_csv("xauusd.csv", header=0,
usecols=["close", 'high', 'low', 'time', 'open', 'time'])
df = df[-1000:].reset_index()
model = {
"pivot_connect1": 2,
"counter_limit1": 100,
"degree_limit1": 1,
"distance_limit1": 10,
"countinues_limit1": 3,
"swing_percentage1": 0.03,
"degree_side_limit1": "up",
"band_perc1": 0.007,
"band_increase_step1": 0.000025,
}
_,_,_,_=draw_trendline(model,df['close'],df['high'],df['low'],df['open'],df.index,True)
you can email me or text me : email : [email protected] telegram : +989137070309