indiciatorhead
New member
Thank you so much! this is exactly what I wanted
Join useThinkScript to post your question to a community of 21,000+ developers and traders.
Did you ever get the Ut bot to work in tos??I am searching for a functional script of UT Bot Alerts, a trading indicator that signals buying and selling, on Thinkorswim platform. Although I used Chat GPT to convert the script, it didn't provide me with a working version. Is there anyone who can assist me by sharing a functional script?
This version "should" show arrows on mobile:Any way to port this to work on the mobile ToS app?? Maybe it doesn't work simply because it's a strategy and not a study but im not sure!
I am searching for a functional script of UT Bot Alerts, a trading indicator that signals buying and selling, on Thinkorswim platform. Although I used Chat GPT to convert the script, it didn't provide me with a working version. Is there anyone who can assist me by sharing a functional script?
This is the most current version. It has arrows and alerts:Did you ever get the Ut bot to work in tos??
Hi @ttsdmagic , could I get a copy of your latest Ut Bot alert indicators? Maybe you could share a copy that I could import for I am new to using TOS. Also, any suggestions on the best settings for a 1-min and 5-min chart are appreciated. My thanks in advance.Interesting. It would be great if one of the developers here could compare the original TradingView to the conversion to validate the quality of the conversion. Any takers?
I use the code posted by samer800Hi ttsdmagic, could I get a copy of your latest Ut Bot alert indicators? Maybe you could share a copy that I could import for I am new to using TOS. Also, any suggestions on the best settings for a 1-min and 5-min chart are appreciated. My thanks in advance.
I know this is light lift but I'm not sure how to do it. is there a way to modify the code on the watchlist column to stay red or green as long as the signal is vaild, what happening now is that the background color goes to gray once the signal is met. I would like for it to stay red or green as long as the signal is a valid. ThanksThank you @ttsdmagic for posting this indicator. It works great. Since I use 2 min and 5 min timeframe to trade, but the watchlist doesn't get updated within that timeframe when using the scan search posted in #7 . I hope it is alright that I took the liberty to modify the indicator so that would work in the watchlist column. I'm still new to code in thinkscript. All I did was really simple. I added the three lines of code below right after the statement (def sell = src < xATRTrailingStop and below) and then delete the rest of the code. The 1 and -1 is just random numbers for me to sort the column and also can be displayed on my mobile app. I hope this help!
Code:plot UT_Bot = if buy then 1 else if sell then -1 else 0; AssignBackgroundColor(if buy then color.dark_green else if sell then color.red else color.gray); UT_Bot.assignValueColor(color.black);
Here is what the column looks like.
View attachment 17468
That's a good idea. Maybe @samer800 can help with this? Or any of the other gurus on the site. Following.I know this is light lift but I'm not sure how to do it. is there a way to modify the code on the watchlist column to stay red or green as long as the signal is vaild, what happening now is that the background color goes to gray once the signal is met. I would like for it to stay red or green as long as the signal is a valid. Thanks
replace background color code with this.That's a good idea. Maybe @samer800 can help with this? Or any of the other gurus on the site. Following.
def UT_Bot = if buy then 1 else if sell then -1 else UT_Bot[1];
AssignBackgroundColor(if UT_Bot>0 then color.dark_green else
if UT_Bot<0 then color.red else color.gray);
if you want a count of how many bars the UT Bot has been in Buy or Sell mode, here is the snippet of code to add to your watchlist column :That's a good idea. Maybe @samer800 can help with this? Or any of the other gurus on the site. Following.
Try this :Is it possible for one of you genius's to add a way to off the buy or sell signal. I am finding that buy signal and sell signals may occur best on different settings. The chart looks very confusing with 2 sets of UT Bot signals. So if I was able to turn off the buy on one set and the sell on the other....that would be awesome!!
As always...I appreciate your knowledge and willingness to help in this matter
UT Bot Strategy For ThinkOrSwimIs there a way to make this indicator have actual buy and sell signals that will give you a floating P&L? This is my first post so take it easy on me, I dont always know what I am doing or asking
Is there a way to make the UT BOT indicator have actual buy and sell signals that will give you a floating P&L?
This is my first post so take it easy on me, I dont always know what I am doing or asking.
# ATR Trailing Stop STRATEGY only. MUST be pasted in the Strategy tab
# https://usethinkscript.com/threads/ut-bot-for-thinkorswim.12640/#post-116615
input Key_Vaule = 1.0;
def a = key_vaule;# input(1, title = "Key Vaule. 'This changes the sensitivity'")
input atr_period = 10;
def c = atr_period; # input(10, title = "ATR Period")
input Signals_from_Heikin_Ashi_Candles = no;
def h = signals_from_Heikin_Ashi_Candles; # input(false, title = "Signals from Heikin Ashi Candles")
input SignalStyle = {Default "Arrow", "Label", "None"};
def na = Double.NaN;
defineglobalColor("Green", color.Green);
defineglobalcolor("Red", color.Red);
def arrow = SignalStyle==SignalStyle."Arrow";
def Label = SignalStyle==SignalStyle."Label";
def SigStyle = if arrow then 1 else if Label then -1 else 0;
def xATR = atr(c);
def nLoss = a * xATR;
def src = if h then (open + high + low + close) / 4 else close;
script nz{
input x = close;
input y = 0;
plot result = if isnan(x) then y else x;
}
#xATRTrailingStop = 0.0
def xATRTrailingStop =compoundValue(1, if(src > nz(xATRTrailingStop[1], 0) and src[1] > nz(xATRTrailingStop[1], 0), max(nz(xATRTrailingStop[1]), src - nLoss),
if(src < nz(xATRTrailingStop[1], 0) and src[1] < nz(xATRTrailingStop[1], 0), min(nz(xATRTrailingStop[1]), src + nLoss),
if(src > nz(xATRTrailingStop[1], 0), src - nLoss, src + nLoss))),0);
#pos = 0
def pos = compoundValue(1, if(src[1] < nz(xATRTrailingStop[1], 0) and src > nz(xATRTrailingStop[1], 0), 1,
if(src[1] > nz(xATRTrailingStop[1], 0) and src < nz(xATRTrailingStop[1], 0), -1, nz(pos[1], 0))) , 0);
def ema = expaverage(src,1);
def above = crosses(ema, xATRTrailingStop, crossingDirection.ABOVE);
def below = crosses(xATRTrailingStop, ema, crossingDirection.ABOVE);
def buy = src > xATRTrailingStop and above ;
def sell = src < xATRTrailingStop and below;
def barbuy = src > xATRTrailingStop ;
def barsell = src < xATRTrailingStop ;
plot ArrowUp = if Arrow and buy then low - ATR(5)/10 else na;
ArrowUp.SetPaintingStrategy(PaintingStrategy.ARROW_UP);
ArrowUp.SetDefaultColor(globalColor("Green"));
ArrowUp.SetLineWeight(2);
plot ArrowDn = if Arrow and sell then high + ATR(5)/10 else na;
ArrowDn.SetPaintingStrategy(PaintingStrategy.ARROW_DOWN);
ArrowDn.SetDefaultColor(globalColor("Red"));
ArrowDn.SetLineWeight(2);
addchartbubble(Label and buy, low, "B", globalColor("Green"), no);
addchartbubble(Label and sell, high, "S", globalColor("Red"), yes);
input price_color_on = yes;
assignPriceColor(if !price_color_on then color.current else if barbuy then globalColor("Green") else color.CURRENT);
assignpriceColor(if !price_color_on then color.current else if barsell then globalColor("Red") else color.currENT);
input alert_sound_on = no;
alert(buy, "UT Long", alert.bar,if alert_sound_on then sound.ring else sound.NoSound);
alert(sell, "UT Short", alert.bar,if alert_sound_on then sound.bell else sound.NoSound);
AddOrder(OrderType.BUY_to_OPEN, buy, tickColor = GetColor(1), arrowColor = GetColor(1), name = "UT");
AddOrder(OrderType.SELL_TO_CLOSE, sell, tickColor = GetColor(2), arrowColor = GetColor(2), name = "ut");
I really like the indicator now I"m going to test it to see if it repaints. How would we be able to scan with this? I posted the script on custom scan and says "exactly one plot is expected"?
Hey @samer800 I want to be able to scan for stocks using this script. I posted the script in thinkorswim to custom scan and it says "exactly one plot is expected" What am I doing wrong?
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
Repaints Cup and Handle Indicator for ThinkorSwim | Indicators | 24 | ||
The Ultimate Buy and Sell Indicator for ThinkOrSwim | Indicators | 4 | ||
S | SharkWaveTrend For ThinkOrSwim | Indicators | 46 | |
Repaints Smart Money Breakouts [ChartPrime] for ThinkOrSwim | Indicators | 15 | ||
Repaints Smart Money Range [ChartPrime] for ThinkOrSwim | Indicators | 11 |
Start a new thread and receive assistance from our community.
useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.
We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.
If you are new, or just looking for guidance, here are some helpful links to get you started.