TradingView
QuantNomad
7 มีนา 2018 เวลา 22 นาฬิกา 28 นาที

Kozlod - Yet Another Moving Average Cross Alerts (9 MA types) 

Bitcoin / United States DollarCoinbase

คำอธิบาย

You can choose one of these MA types in params:
Simple Moving Average ( SMA )
Exponential Moving Average ( EMA )
Weighted Moving Average ( WMA )
Arnaud Legoux Moving Average ( ALMA )
Hull Moving Average ( HMA )
Volume-weighted Moving Average ( VWMA )
Least Square Moving Average ( LSMA )
Smoothed Moving Average ( SMMA )
Double Exponential Moving Average ( DEMA )

Also you can select SL/PT % levels.

There are 4 alerts available: LONG/SHORT/EXIT LONG/EXIT SHORT

Same script as strategy: tradingview.com/script/PevJdTsm-Kozlod-Yet-Another-Moving-Average-Cross-Strategy-9-MA-types/
ความคิดเห็น
cryptomustache
what about trailing stop there is a way to implement trailing stop off set?
QuantNomad
@cryptomustache, Good idea, will try to add when will have some time.
cryptomustache
@Kozlod,

Thanks for your replay.
i use Autoview for some bot implementation.
Do you have any knowledge about Python and Api implementation specifically for Bitmex.
I'm building it my self, but I would love to hire some one and speed up the process. Thanks and wish you well.
cryptomustache
@Kozlod,


Also I have noticed one thing, with this code (that I have seen in your vid):
There is the problem that the first trade signal is not showed on the chart.
From the second on is equal to the strategy but the first it fails to show on the chart.

Do you know how to fix this?


long_filt = longCond and not shortCond
short_filt = shortCond and not longCond

prev = 0

prev := long_filt ? 1 : short_filt ? -1 : prev[1]

long_final = long_filt and prev[1] == -1 or 0
short_final = short_filt and prev[1] == 1 or 0
perx
Thank you man, awsome work, please add tema also. tnx
GarethSA
Could you add TEMA ?
Steve1337
Thank you, very useful! I was struggling before I found your script.
เพิ่มเติม