Customize Message Center in ThinkorSwim

Hi,

When a person sets alerts, these are populated in ToS' "Message Center" (which is on the top right of the main ToS window, between the icons for "Home Screen" and "Support").

I was wondering if you guys can help me figure out how to change the default format of the messages.
For example, I just want the ticker symbol instead of the current format which is "CHART ALERT [ time frame, TICKER NAME, study name, study properties]. As you can see, the default format can get very lengthy.

Any suggestions or help will be greatly appreciated.

Thanks for reading!
 
Last edited by a moderator:
While the message center isn't customizable. It can be detached and resized so you can see at a glance what symbol is in the alert.

DyRRooW.png
 
Chart Alerts are sometimes slow being pushed to mobile phones... Whether slow signaling in Mobile TOS Apps is subjective...
Is there any way to auto get the message externally (not manually press the export button). E.g.
(1) Is there a log file where TOS store the message?
(2) Will TOS send chart alert through email & SMS?
Is anyone working on the same problem?
Is there any alternative ways to do it?
If not, I may start a project to work on it.
Thanks
 
Last edited:
@Jtopaz

1. No log file except whatever is being displayed in your Message Center
2. Yes, but only for a certain type of alert (i.e., alerts created by your scanner).
 
Is there a way to change what is displayed in my Alert?

I am trying to remove the (-2.0. 2.0 DAY) from the Alert so that it only display as VWAP UP or VWAP Down
Screenshot-2021-06-03-142848.png


My Current Code is


Code:
input numDevDn = -2.0;
input numDevUp = 2.0;
input timeFrame = {default DAY, WEEK, MONTH};
def cap = getAggregationPeriod();
def errorInAggregation =
timeFrame == timeFrame.DAY and cap >= AggregationPeriod.WEEK or
timeFrame == timeFrame.WEEK and cap >= AggregationPeriod.MONTH;
assert(!errorInAggregation, "timeFrame should be not less than current chart aggregation period");
def yyyyMmDd = getYyyyMmDd();
def periodIndx;
switch (timeFrame) {
case DAY:
periodIndx = yyyyMmDd;
case WEEK:
periodIndx = Floor((daysFromDate(first(yyyyMmDd)) + getDayOfWeek(first(yyyyMmDd))) / 7);
case MONTH:
periodIndx = roundDown(yyyyMmDd / 100, 0);
}
def isPeriodRolled = compoundValue(1, periodIndx != periodIndx[1], yes);
def volumeSum;
def volumeVwapSum;
def volumeVwap2Sum;
if (isPeriodRolled) {
volumeSum = volume;
volumeVwapSum = volume * vwap;
volumeVwap2Sum = volume * Sqr(vwap);
} else {
volumeSum = compoundValue(1, volumeSum[1] + volume, volume);
volumeVwapSum = compoundValue(1, volumeVwapSum[1] + volume * vwap, volume * vwap);
volumeVwap2Sum = compoundValue(1, volumeVwap2Sum[1] + volume * Sqr(vwap), volume * Sqr(vwap));
}
def price = volumeVwapSum / volumeSum;
def deviation = Sqrt(Max(volumeVwap2Sum / volumeSum - Sqr(price), 0));
plot vwapValue = price;
plot upperBand = price + numDevUp * deviation;
plot lowerBand = price + numDevDn * deviation;
plot crossingAbove = close[1] < vwapValue[1] and close > vwapValue;
crossingAbove.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
crossingAbove.SetDefaultColor(Color.CYAN);
crossingAbove.SetLineWeight(3);
plot crossingBelow = close[1] > vwapValue[1] and close < vwapValue;
crossingBelow.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
crossingBelow.SetDefaultColor(Color.MAGENTA);
crossingBelow.SetLineWeight(3);
Alert(crossingAbove[1], "Cross Above VWAP", Alert.BAR, Sound.RING);
Alert(crossingBelow[1], "Cross Below VWAP", Alert.BAR, Sound.RING);
 
@Stockleed Maybe this . . . didn't test it
Code:
def periodIndx = getYyyyMmDd();
def isPeriodRolled = compoundValue(1, periodIndx != periodIndx[1], yes);
def volumeSum;
def volumeVwapSum;
def volumeVwap2Sum;
if (isPeriodRolled) {
volumeSum = volume;
volumeVwapSum = volume * vwap;
volumeVwap2Sum = volume * Sqr(vwap);
} else {
volumeSum = compoundValue(1, volumeSum[1] + volume, volume);
volumeVwapSum = compoundValue(1, volumeVwapSum[1] + volume * vwap, volume * vwap);
volumeVwap2Sum = compoundValue(1, volumeVwap2Sum[1] + volume * Sqr(vwap), volume * Sqr(vwap));
}
def price = volumeVwapSum / volumeSum;
def deviation = Sqrt(Max(volumeVwap2Sum / volumeSum - Sqr(price), 0));
plot vwapValue = price;
plot upperBand = price + 2 * deviation;
plot lowerBand = price - 2 * deviation;
plot crossingAbove = close[1] < vwapValue[1] and close > vwapValue;
crossingAbove.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
crossingAbove.SetDefaultColor(Color.CYAN);
crossingAbove.SetLineWeight(3);
plot crossingBelow = close[1] > vwapValue[1] and close < vwapValue;
crossingBelow.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
crossingBelow.SetDefaultColor(Color.MAGENTA);
crossingBelow.SetLineWeight(3);
Alert(crossingAbove[1], "VWAP UP", Alert.BAR, Sound.RING);
Alert(crossingBelow[1], "VWAP DOWN", Alert.BAR, Sound.RING);
 
I know chart alert shows will pop-up if triggered.
Is there any way to get the all the triggered chart alert log?
Thanks.
Hope it's not too late to reply, but if you click on the hamburger icon (3 stacked lines) on the top right corner, you can "export to file" to Excel. You can view the log in that spreadsheet for that day.
 

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
397 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

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.

How do I get started?

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.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top