Comments (4)
well the problem with pinescript is that it's not really fully open source - and we've observed time and time again that results do actually differ when transferred 1:1 to python.
Your 2nd call definitely also has a syntax problem.
freqtrade strategies usually use the abstract interface (import talib.abstract as ta
)
that means, the first parameter is expected to be a dataframe (ta.MOM returns a series).
so
dataframe['mom1'] = ta.MOM((ta.MOM(dataframe, timeperiod=12)), timeperiod=1)
would have to become
dataframe['mom1'] = ta.MOM(dataframe, timeperiod=1, price='mom0')
.
now i'm not sure on the internal calculation of MOM ...
Ad hock, i'd say it's as simple as the following based on the tradingview code... but it's untested so take with caution.
lag = 12
dataframe['mom0'] = dataframe['close'] - dataframe['close'].shift(12)
dataframe['mom1'] = dataframe['mom0'] - dataframe['mom0'].shift(12)
I think both options should work - now if they yield what you expect / align with tradingview is an entirely different question ...
from freqtrade-strategies.
thank you for your help,
your paramaters work, but this time exits are not correct,
it will not wait enough,
it might be with related with this line "stop=high+syminfo.mintick"
can we change this line to python?
from freqtrade-strategies.
i've got no clue what high+syminfo.mintick
is supposed to mean. Best look through the tradingview / pine documentation to find out.
from freqtrade-strategies.
@zeytindali83 hey! do you complete your adaptation or need help with?
from freqtrade-strategies.
Related Issues (20)
- External Signal provider HOT 3
- GodStra strat can't find ta module HOT 3
- How to get funding rate to use as indicator on freqtrade HOT 8
- Volatility Strategy HOT 2
- Lookahead for Strategy002 and 004 HOT 5
- cannot use the timeframe i want HOT 4
- GodStra not results available HOT 1
- GodStraHo: Impossible to load Strategy 'GodStraHo'. This class does not exist or contains Python code errors.
- GodStraHo: Impossible to load Strategy 'GodStraHo'. This class does not exist or contains Python code errors. #294 HOT 3
- Unable to retrieve candlestick information from dataframe HOT 1
- BB_RSI_ATR HOT 5
- ta not installing on Google cloud instance and all futures strategies are not working HOT 3
- No module named 'ta' HOT 1
- incorrect times displayed in FreqUI HOT 4
- AlphaTrend Strategy HOT 3
- Error using MACD indicator from qtpylib indicators.py
- WARNING - Unable to analyze candle (OHLCV) data for pair {pair}: Dataframe returned from strategy has mismatching last close price. HOT 2
- finta problem HOT 2
- supertrend different timeframe
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freqtrade-strategies.