Modify Indicator for Mobile

ahibbitts

New member
VIP
Hello, as I understand you cant use bubbles or clouds on mobile. what can I add to my code below to make it useful for mobile? If I can keep the bubbles on Desktop but make them maybe Green and Red Arrows on mobile would be an idea.

Code:
#hint:<b>Basic RSI Indicator</b>

input below = 35;
input above = 65;
input aggregationPeriod = AggregationPeriod.DAY;

def rsi = reference RSI()."RSI" ;
def yesterday_high = high(period = aggregationPeriod)[1];
def yesterday_low = low(period = aggregationPeriod)[1];
def limit_high = !IsNaN(close) and IsNaN(close [-1] ) && HighestAll(BarNumber());
def limit_low = !IsNaN(close) and IsNaN(close [-1] ) && LowestAll(BarNumber());

plot SellSignal = rsi crosses above (above);
plot BuySignal = rsi crosses below (below);

AddChartBubble(SellSignal, high + .5, "Sell", Color.LIGHT_RED, yes);
AddChartBubble(BuySignal, low - .5, "Buy", Color.LIGHT_GREEN, no);

Alert( rsi crosses below (below), "Buy" , Alert.BAR, Sound.Bell);
Alert( rsi crosses above (above), "Sell" , Alert.BAR, Sound.Bell);
 
Solution
How about the Alerts? they don't seem to trigger on Mobile? DO I need to format them different?

There is only one way to code in Thinkscript... What Mobile doesn't recognize, it doesn't process... Mobile is coded to be lean on purpose, to improve performance... While some Alerts can be configured to send alerts as Texts and emails, others cannot...

ahibbitts

New member
VIP
Okay figured out how to add the Arrows but is there a way to make it where it recognizes Mobile?

Code:
BuySignal.SetPaintingStrategy(PaintingStrategy.Boolean_Arrow_Up);
BuySignal.SetLineWeight(3);
BuySignal.SetDefaultColor(Color.GREEN);
SellSignal.SetPaintingStrategy(PaintingStrategy.Boolean_Arrow_Down);
SellSignal.SetLineWeight(3);
SellSignal.SetDefaultColor(Color.RED);
 

rad14733

Well-known member
VIP
How about the Alerts? they don't seem to trigger on Mobile? DO I need to format them different?

There is only one way to code in Thinkscript... What Mobile doesn't recognize, it doesn't process... Mobile is coded to be lean on purpose, to improve performance... While some Alerts can be configured to send alerts as Texts and emails, others cannot...
 
Last edited by a moderator:
Solution
Top