NexusFi: Find Your Edge


Home Menu

 





Volume Spectrum With Alert


Discussion in ThinkOrSwim

Updated
    1. trending_up 5,946 views
    2. thumb_up 2 thanks given
    3. group 1 followers
    1. forum 1 posts
    2. attach_file 1 attachments




 
Search this Thread

Volume Spectrum With Alert

  #1 (permalink)
 southerntower 
Charleston SC
 
Experience: Intermediate
Platform: TOS
Trading: Money
Posts: 1 since Apr 2012
Thanks Given: 1
Thanks Received: 1

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.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
Vol.SetLineWeight(3);
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));
VolAvg.SetDefaultColor(GetColor(8));
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.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
Vol.SetLineWeight(3);
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
Click image for larger version

Name:	2012-04-04-TOS_CHARTS.png
Views:	465
Size:	53.9 KB
ID:	68879  
Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Cheap historycal L1 data for stocks
Stocks and ETFs
About a successful futures trader who didnt know anythin …
Psychology and Money Management
What broker to use for trading palladium futures
Commodities
 
  #2 (permalink)
 trdrtr 
Los Angeles,CA
 
Experience: Beginner
Platform: thinkorswim
Trading: futures
Posts: 4 since May 2011
Thanks Given: 2
Thanks Received: 3

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




Last Updated on May 5, 2012


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts