XRP / TetherUS

The strategy will be this using the TM indicator, the RSI indica

81
strategy("risk to reward 1:1", overlay=true)

//Buy entry
longEntryCondition = close > nz(longEntryCondition[1],open) and (close - open)[1] > 0
if longEntryCondition and not nz(longExitCondition[1],false)
strategy.entry("Long", strategy.long, comment="Buy")

//Stoploss
stopLevel = open - (open - close)[1]
if longEntryCondition
strategy.exit("StopLoss", "Long", stop=stopLevel, comment="StopLoss")

//Take profit
takeProfitLevel = entryPrice + (open - close)[1]
if longEntryCondition
strategy.exit("TakeProfit", "Long", profit=takeProfitLevel, comment="TakeProfit")

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.