Trigger Alert when %age in Volume Changes Within Timeframe - ThinkOrSwim Programming | futures io social day trading
futures io futures trading


Trigger Alert when %age in Volume Changes Within Timeframe
Updated: Views / Replies:3,622 / 3
Created: by MrAPod Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Trigger Alert when %age in Volume Changes Within Timeframe

  #1 (permalink)
Trading Apprentice
hamburg + germany
 
Futures Experience: Beginner
Platform: ThinkOrSwim
Favorite Futures: Stocks
 
Posts: 1 since Jul 2014
Thanks: 0 given, 0 received

Trigger Alert when %age in Volume Changes Within Timeframe

Hey guys,
I'm quite new here and to all of the ThinkScript stuff! I just wanted to ask real quick if there is a possibility to code a script / alert in TOS' thinkscript / thinkalert plattform that does the following:

- When a certain spike in volume occurs (for instance 15%+ gain in volume in trades @ one or more of my stocks on my watchlist) within a timeframe like 1m (one BAR in the one minute timeframe), an alert triggers!

alternatively (or as an addition) something that does the same but with the price per share of a stock: If a stock's price goes up like 10% in a specified timeframe like 1-2 minutes, it should fire off my alert.

Does someone know how to do it? Woudl be REALLY thankful

Reply With Quote
 
  #2 (permalink)
Trading Apprentice
Long Beach CA
 
Futures Experience: Beginner
Platform: ThinkorSwim
Favorite Futures: Options
 
Posts: 4 since Mar 2014
Thanks: 0 given, 1 received


MrAPod View Post
Hey guys,
I'm quite new here and to all of the ThinkScript stuff! I just wanted to ask real quick if there is a possibility to code a script / alert in TOS' thinkscript / thinkalert plattform that does the following:

- When a certain spike in volume occurs (for instance 15%+ gain in volume in trades @ one or more of my stocks on my watchlist) within a timeframe like 1m (one BAR in the one minute timeframe), an alert triggers!

alternatively (or as an addition) something that does the same but with the price per share of a stock: If a stock's price goes up like 10% in a specified timeframe like 1-2 minutes, it should fire off my alert.

Does someone know how to do it? Woudl be REALLY thankful

I will lead you in the right direction:

1) calculate the volume average
2) compare the volume to above volume average you want (might want to use input instead of def)
3) use def for the comparison
4) define a "plotter" def
5) define an alert plot using the comparison def that plots to plot the "plotter" def


Feel free to reply if you still need help

Reply With Quote
 
  #3 (permalink)
Trading Apprentice
Vancouver, Canada
 
Futures Experience: Intermediate
Platform: ThinkOrSwim
Favorite Futures: stocks
 
Posts: 1 since Nov 2014
Thanks: 0 given, 0 received


Hi kosnarf,

I had exactly the same question and eventually I found the solution - please see below:

def afterStart = secondsfromtime(1000)>0;
def beforeEnd = secondstilltime(1530)>0;
def conditionTrue = volume > 10*average(volume, 390);
plot alert = afterStart and beforeEnd and conditionTrue;


This alert will pop up when there is a volume spike in the stock. Please note - when you set the alert you should choose your aggregation period. I have chosen 5 min as I work with 5 min candles. You asked about 1 or 2 min, so you will have to set it to 1 or 2 min. The following values are used in this particular example:

1. afterStart is set to 1000 - meaning 10:00am, i.e. the alert will ignore any volume spikes in the first 30 minutes of trading because based on my experience, most of the stocks have increased volume during the first 30 minutes of trading, so if you dont ignore, you will have a lot of alerts (depending on how many stocks you are watching).

2. beforeEnd is set to 1530 - meaning 15:30 (3:30pm) same logic as above, but for the end of the trading day.

3. volume > 10 - meaning the volume of the current bar/candle is higher 10 times than the average for the last 390 bars/candles.

4. 390 - I set it to 390 because I'm using the aggregation period of 5 min, so for the whole trading day it's 5min x 390 = 6 hours and 30 min which is the length of the trading day.

So you will have to play with the values to fit them to your needs. I believe same logic will work for the price.

The only issue is that you will have to set this alert for every stock in your watchlist to be notified. I was trying to find a way to setup alert only once, but to apply it for the entire watchlist. I haven't succeeded yet. At the time I asked TOS support, but they said there was no such capability yet. I don't know whether it's been developed since then.

Good luck and let me know if it worked for you.

Reply With Quote
 
  #4 (permalink)
Elite Member
NW Florida
 
Futures Experience: Intermediate
Platform: OX and TOS
Favorite Futures: Futures Options, Stocks
 
opts's Avatar
 
Posts: 234 since Aug 2012
Thanks: 29 given, 107 received

So if I wanted to have an SMS alert sent to my phone instead of plotting the alert on the chart how would that be done?

I want to add the alert to several tickers in my watchlist and look for volume spikes between 12:30 pm and up until the close at 3pm CST. I think the code has to be changed from plot to alert but not sure how to do that...

Thanks.

Reply With Quote

Reply



futures io > > > > > Trigger Alert when %age in Volume Changes Within Timeframe

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Volume alert indicator gain247 The Elite Circle 160 September 11th, 2015 07:46 PM
Volume Spectrum With Alert southerntower ThinkOrSwim Programming 1 May 5th, 2012 02:04 PM
Volume Threshold alert? Surly NinjaTrader 0 September 30th, 2011 12:39 AM
Volume Trigger joe11 NinjaTrader 1 November 1st, 2010 01:47 PM
sensitivity multi-timeframe trick (small timeframe on bigger one) SARdynamite NinjaTrader Programming 4 July 15th, 2010 03:57 PM


All times are GMT -4. The time now is 12:12 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-12-12 in 0.08 seconds with 19 queries on phoenix via your IP 54.145.16.43