You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your code is well-written and works nicely. However, I think it has a significant shortcoming. I couldn't add the pivot levels to your code because I don't know how to do it. That's why I decided to write to you. Also, I think the window scanning is not very reliable. I believe it should be dynamic and all swings should be analyzed in relation to each other.
Your code signals in circles
df = yf.download('BTC-USD', period='3mo',interval='1d') used below graph.
`# Define your swing function
def swing(df, i):
if i == 0 or i == len(df) - 1:
return None # Return None for the first and last indices
Your code is well-written and works nicely. However, I think it has a significant shortcoming. I couldn't add the pivot levels to your code because I don't know how to do it. That's why I decided to write to you. Also, I think the window scanning is not very reliable. I believe it should be dynamic and all swings should be analyzed in relation to each other.
![Adsız](https://private-user-images.githubusercontent.com/93832503/338010146-b85da911-f31f-40ba-83fe-886406e46783.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAxNTI2NDgsIm5iZiI6MTcyMDE1MjM0OCwicGF0aCI6Ii85MzgzMjUwMy8zMzgwMTAxNDYtYjg1ZGE5MTEtZjMxZi00MGJhLTgzZmUtODg2NDA2ZTQ2NzgzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA1VDA0MDU0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlhMWI5MmU0MWY5MzJmMTU3YjhkNjdkMzgzN2M2MDhiNzI2YzY2ZDI3OTIyZWI1MWFhODQyNDcxNjVjNjQxZWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.jLFY5FC1SXdv5j-HVLzdWw2MND5AWDRkct0Ge26wfZE)
Your code signals in circles
df = yf.download('BTC-USD', period='3mo',interval='1d') used below graph.
`# Define your swing function
def swing(df, i):
if i == 0 or i == len(df) - 1:
return None # Return None for the first and last indices
The text was updated successfully, but these errors were encountered: