Custom Column for percent off Intraday High on mobile app


Category:
0
0

Hi Hahn,

I’ve create a custom column to calculate and display the % diff from the last price against Intraday high. I’m able to use it on Desktop Windows ThinkorSwim application. However, it doesn’t work on my iPad Pro, it doesn’t display any value.

 

# Show % Off high of Days
def Higher = high(period = “day”);
plot OffHigh = Round( 100 * ((Higher-close) / Higher));
AddLabel(yes, OffHigh + “%”, (if OffHigh < 10 then color.GREEN else color.GRAY) );

Please help, thanks !
Tony

 

RESOLVED
Marked as spam
Posted by (Questions: 1, Answers: 0)
Asked on April 30, 2020 10:11 pm
68 views
0
Private answer

I moved this post out of the "Frequently Asked Questions" topic and into the "Watch Lists" topic, since that is what you are requesting. I also updated the question title to include the fact you are requesting this for the mobile app.

The mobile app is not able to display all the custom code that can be used on the desktop version. If you want to understand those limitations (and more importantly, how to get around some of them), then you will want to view the following video we published on custom watchlist columns for the mobile app:

https://www.hahn-tech.com/thinkorswim-mobile-watch-list/

You will find that custom watchlist columns on the mobile app are currently only able to display numeric values and cannot display text values or change background colors. So you will need to remove the "AddLabel()" statement in your code. The plot statement will display the numeric value. This is as far as we can take the mobile app at this point in time.

Marked as spam
Posted by (Questions: 37, Answers: 4117)
Answered on May 1, 2020 7:58 am