freqtrade / freqtrade-strategies

Free trading strategies for Freqtrade bot
GNU General Public License v3.0
3.23k stars 1.1k forks source link

Volatility Strategy #283

Closed FahadAziz closed 1 year ago

FahadAziz commented 1 year ago

Step 1: What indicators are required?

Here is a link to the strategy which uses modified ATR with a pinescript. https://www.tradingview.com/script/3hhs0XbR/

Step 2: Explain the Buy Strategy

Code provided above

Step 1: Explain the Sell Strategy

Code provided above

Source

What come from this strategy? Cite your source:

https://www.tradingview.com/script/3hhs0XbR/

Other Strategy modifications:

Strategy works best on a 3h timeframe and I am not sure how to work around the timeframes provided by exchange.

They workflow of the strategy should be like this.

1- Long/short entry signal found for a pair, bot should place an order of 50% of the stake amount. 2- If another entry signal is found on the same direction, it should place the other 50%. 3- If a long/short exit entry is found, bot will exit full position and simultaneously place an order on the opposite direction. at least this is how it works on tradingview.

Thanks

xmatthias commented 1 year ago

First off, switching positions (from long to short) within the same candle is not supported by freqtrade.

The rest is actually pretty simple. Getting to 3h is as easy as resampling a 1h timeframe to 3 hours.

Please give https://github.com/freqtrade/freqtrade-strategies/pull/287 a try.

FahadAziz commented 1 year ago

Thank you Matt much appreciated. I am commenting in pull request itself as I am testing and checking if it is working as intended.