TradingView
SeaSide420
8 พฤศจิกา 2021 เวลา 0 นาฬิกา 32 นาที

UT Bot v5 

MILANO ITALIA BORSA INDEXTVC

คำอธิบาย

This is an update by request, on someone elses strategy! well more of an edit, but also update from pine v4 to pine v5.
//CREDITS to HPotter for the orginal code. The guy trying to sell this as his own is a scammer lol.
//Edited and converted to @version=5 by SeaSide420 for Paperina


The UT Bot v5 is Movinging average (the MA) vs ATR (the ATR is in the form intended for use as trailing stop loss (ATR_TSL))
Entry logic:
buy = the MA > ATR_TSL and Price > ATR_TSL
sell = the MA < ATR_TSL and Price < ATR_TSL

The Moving average type can be changed in the settings:
options = "SMA", "EMA", "WMA", "HMA"]

the edits i made were:
convert to v5
Add TP and SL
Add Buy only or Sell only option
Add MA type option
Add price source option
Draw MA and ATR_TSL on-chart
ความคิดเห็น
crsharma4295
Hello,
Just wanted to clear a doubt.
Is the trade automated if i connect to a tradingview connected broker ?
Or
Do i need to do anything else to make it automataed?
Kindly reply.
Thank you.
dnny26501
TakeProfit = input.int(defval=50000, is it in percentages?
StopLoss = input.int(defval=50000, is it in percentages?
crsharma4295
How do I add alerts to this for Buy, Sell & Stop Loss?
AraMoneyMan
That's a nice script what time frame is most accurate, and thanks for sharing.
gokhan34g
is that repainting ?
it-freak
Hi Seaside420,
nice strategy!
Can you please update the script to set TakeProfit and StopLoss in percentages?
rajshrestha75
how to include list of trades from just the chart time frame and not the entire range of a stock? newb question, but please advise.
koalid
@rajshrestha75, add this lines to the script :

// Date //
////////////////////////////////////////////////////
fromMonth = input.float(defval = 1, title = "From Month", minval = 1, maxval = 12)
fromDay = input.float(defval = 1, title = "From Day", minval = 1, maxval = 31)
fromYear = input.float(defval = 2021, title = "From Year", minval = 1970)
thruMonth = input.float(defval = 1, title = "Thru Month", minval = 1, maxval = 12)
thruDay = input.float(defval = 1, title = "Thru Day", minval = 1, maxval = 31)
thruYear = input.float(defval = 2112, title = "Thru Year", minval = 1970)
start = timestamp(minute, month, year) // backtest start window
finish = timestamp(minute, month, year) // backtest finish window
window() => time >= start and time <= finish ? true : false // create function "within window of time"
//////////////////////////////////////////////////////
linhlinh25197
@koalid, hi i added it to the script, it shows in the edit window, but when i edit the timeline nothing happens please help
koalid
เพิ่มเติม