Volume Spectrum With Alert - ThinkOrSwim Programming | futures.io
futures.io futures trading

Go Back   futures.io

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > ThinkOrSwim > ThinkOrSwim Programming

Volume Spectrum With Alert
Started:April 4th, 2012 (10:46 AM) by southerntower Views / Replies:2,764 / 1
Last Reply:May 5th, 2012 (01:04 PM) Attachments:1

Welcome to futures.io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • 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, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Volume Spectrum With Alert

Old April 4th, 2012, 10:46 AM   #1 (permalink)
Trading Apprentice
Charleston SC
Futures Experience: Intermediate
Platform: TOS
Favorite Futures: Money
Posts: 1 since Apr 2012
Thanks: 0 given, 1 received

Volume Spectrum With Alert

I use volume for all of my trades.
I took the spectrum volume and added an alert.
I also change the colors to all green or red for price movements and volume.
plot Data = close;

declare lower;
declare zerobase;

input length = 50;

plot Vol = volume;
plot VolAvg = Average(volume, length);

Vol.DefineColor("Up", Color.UPTICK);
Vol.DefineColor("Down", Color.DOWNTICK);
Vol.AssignValueColor(if close > close[1] then Vol.color("Up") else if close < close[1] then Vol.color("Down") else GetColor(1));
alert( Crosses( Vol, VolAvg, CrossingDirection.ABOVE), concat("Vol has exceeded the ", concat(length, " bar VolAvg")),Alert.ONCE,Sound.Ring);

input length2 = 10;
input paintBars = no;

def isGreen = close > close[length2] and volume > volume[length2];
def isBlue = close > close[length2] and volume < volume[length2];
def isOrange = close < close[length2] and volume < volume[length2];
def isRed = close < close[length2] and volume > volume[length2];

Vol.DefineColor("Green", Color.GREEN);
Vol.DefineColor("Blue", Color.BLUE);
Vol.DefineColor("Orange", Color.ORANGE);
Vol.DefineColor("Red", Color.RED);
Vol.AssignValueColor(if isGreen then Vol.color("Green") else if isBlue then Vol.color("Blue") else if isOrange then Vol.color("Orange") else if isRed then Vol.color("Red") else Color.LIGHT_GRAY);

DefineGlobalColor("Green", Color.GREEN);
DefineGlobalColor("Blue", Color.BLUE);
DefineGlobalColor("Orange", Color.ORANGE);
DefineGlobalColor("Red", Color.RED);
AssignPriceColor(if !paintBars then Color.CURRENT else if isGreen then globalColor("Green") else if isBlue then globalColor("Blue") else if isOrange then globalColor("Orange") else if isRed then globalColor("Red") else Color.LIGHT_GRAY);

Attached Thumbnails
Volume Spectrum With Alert-2012-04-04-tos_charts.png  
Reply With Quote
The following 2 users say Thank You to southerntower for this post:

Old May 5th, 2012, 01:04 PM   #2 (permalink)
Elite Member
Los Angeles,CA
Futures Experience: Beginner
Platform: thinkorswim
Favorite Futures: futures
Posts: 4 since May 2011
Thanks: 2 given, 3 received

Volume Spectrum

Hi...thank you for your script...Can you please give me an example on how you would use this volume study to your trading setup.

Reply With Quote


futures.io > Futures Trading, News, Charts and Platforms > Platforms and Indicators > ThinkOrSwim > ThinkOrSwim Programming > Volume Spectrum With Alert

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Volume alert indicator gain247 The Elite Circle 160 September 11th, 2015 06:46 PM
SwamiCharts - spectrum representation of indicators gregid Platforms and Indicators 5 May 10th, 2012 10:28 AM
Volume/Avg volume for ES, TF emini_Holy_Grail Index Futures Trading 1 October 10th, 2011 07:33 AM
Volume Threshold alert? Surly NinjaTrader 0 September 29th, 2011 11:39 PM
Sinc spectrum cycle analyser Tanaka NinjaTrader 3 December 6th, 2010 05:28 AM

All times are GMT -4. The time now is 06:35 AM.

Copyright © 2016 by 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 2016-10-28 in 0.06 seconds with 20 queries on phoenix via your IP