TradingView
Sarahann999
2 สิงหา 2022 เวลา 1 นาฬิกา 55 นาที

RSI Mean Reversion Strategy 

Bitcoin / TetherUS PERPETUAL CONTRACTBinance

คำอธิบาย

This is a scalping strategy designed to be used for crypto trading. It uses an Exponential Moving Average with a default length of 100 in order to identify the trend of the market. If the price is trading above 100, it will only take long trades, and vice versa for shorts. It places long orders when the RSI value closes below 40, and the price is also above the 100 EMA. It places short orders when the RSI value is above 60, and the price is below the 100 EMA.

*Note: for custom alert messages to be read, "{{strategy.order.alert_message}}" must be placed into the alert dialogue box when the alert is set.

เอกสารเผยแพร่

Added additional input settings.
ความคิดเห็น
aryashiv
jai mata di
aryashiv
great work . buy no alert generated
aryashiv
@aryashiv, dynamic alert not working in tradetron
Sarahann999
@aryashiv, Hi, strategy alerts work differently on TradingView from indicator alerts. At the time you create the alert, paste "{{strategy.order.alert_message}}" into the alert message, and your alert should populate with the custom messages set by my script, ie: "Enter Long"/ "Enter Short."
aryashiv
@Sarahann999, thanx dear, but still confused. tried but fail.
aryashiv
@Sarahann999, dear sarahann, we put up in dialogue box {strategy.order:buy, auth-token: xxx } but
Sarahann999
@aryashiv, paste "{{strategy.order.alert_message}}" at the time you make the alert message. If you are going to use this for webhooks/automated trading, please keep in mind that the stoplosses will not print until the candle closes, so you could end up losing more than anticipated if your exits are determined by the strategy alerts. I know there are a few webhook services that offer built in risk management, like 3commas and PineConnector.

Here is the part of the script that determines what the alert will read, if you want to create webhooks you can replace where I've put "Add alert syntax here" with the syntax needed from your third party service. Please be cautious with this however, and keep in mind that backtest results do not guarantee future profitability.
// Submit entry orders
if buySignal and long_entry
strategy.entry(id="Long", direction=strategy.long, alert_message="Add alert syntax here")

if sellSignal and short_entry
strategy.entry(id="Short", direction=strategy.short, alert_message="Add alert syntax here")

//Submit exit orders based on take profit price
if (strategy.position_size > 0)
strategy.exit(id="Long TP/SL", limit=longExitPrice, stop=longStopPrice, alert_message=" Add alert syntax here ")
if (strategy.position_size < 0)
strategy.exit(id="Short TP/SL", limit=shortExitPrice, stop=shortStopPrice, alert_message=" Add alert syntax here ")
aryashiv
@aryashiv, EVERYTHINK IS OK . tradetron alert not generated.
เพิ่มเติม