TradingView
pernath
29 מאי 2022 20:51

EMA_TREND_CATCHER 

Bitcoin / TetherUS PERPETUAL CONTRACTBinance

תיאור

Simple strategy based on the crossing of moving averages of 50,100 and 200 periods. Designed to identify trends
You are ready to use trading bots (all you have to do is fill in "Variables for Alert"). However, it can also be used for discretionary operations.

BTCUSDT FUTURES BINANCE
4H
תגובות
Lordmat1982
Hello, what is media_1 and 2?
Can you add parameters for ema?
pernath
@Lordmat1982, Hi! they are not used, but their function was to serve as parameters, before being ema fixed at "55" and "100".
To put parameters, just replace this (ta.ema(close,55) with this (ta.ema(close,media_1) for example.
At the top you must add as many variables as you want.
media_1=input(title='media_1', defaultval=55)
media_2=input(title='media_2', defaultval=100)
media_3=input(title='media_3', defaultval=200)
עוד