Is there anyway to set up an alert on a Range Chart in TOS?


0
0

Hi Mr. Hahn

I have tried to set up alerts for EMA crossings and strategies on a TOS Range Chart and nothing seems to work. Do you have a solution to this problem?

 

RESOLVED
Marked as spam
Posted by (Questions: 2, Answers: 3)
Asked on March 12, 2017 1:23 am
839 views
1
Private answer

Without any source code I have no way to give you a solution that is 100% matched to your situation. I can tell you that the Range chart is almost certainly not a factor. I can’t tell for sure without seeing the code you are working with.

In the mean time, I can give you a very basic example of adding alerts to a moving average crossover. This works on all charts, except Monkey Bars.

plot ma1 = Average(close, 8);
plot ma2 = Average(close, 21);
def crossAbove = ma1[1] < ma2[1] and ma1 > ma2;
def crossBelow = ma2[1] < ma1[1] and ma2 > ma1;
Alert(crossAbove, "Crossing Above", Alert.BAR, Sound.RING);
Alert(crossBelow , "Crossing Below, Alert.BAR, Sound.RING);

Marked as spam
Posted by (Questions: 37, Answers: 4079)
Answered on March 12, 2017 8:44 am
0
Hi Mr Hahn, The code that I am working is as follows: MovingAverage(\”data\” = CLOSE, \”length\” = 2) crosses below MovingAverage(\”data\” = CLOSE, \”length\” = 4) The chart that I am working with is a 1y100tick chart. The TOS chat line attendant stated \”Unfortunately alerts can only be set up for time aggregations. Tick alerts are not available at this time.\” I have heard different answers from friends.
( at March 14, 2017 8:18 pm)
0

Have you tested the code I provide above? I just tested it and confirmed it works on a 5 tick range chart of /YM. You are using a 100 tick range chart but did not mention the instrument. As long as you can plot the ma’s and see those cross, the alerts will trigger. If you are not getting alerts then you probably have them turned off in your application settings.

( at March 15, 2017 7:32 am)
0

You can tell I am new at this. ? The instrument was a AUD/USD and it was a 100 tick range. What time frame did you use during your test with /YM? I will also try the 5 tick range.

( at March 15, 2017 9:08 am)
0

Thank you Mr.Hahn. I installed it right on the third try. Now is there a way to have it alert me by text or e-mail?

( at March 15, 2017 6:56 pm)
0

Unfortunately the range bars are not supported in Study Alert or Scans. And those are the only two ways you can setup alerts to send email/text notifications. Be sure to contact support at TD Ameritrade to request they add this in a future release of the Thinkorswim platform.

( at March 15, 2017 7:16 pm)