TradeStation - VolVsRange
futures io


Categories Help    

TradeStation
TradeStation Downloads / TradeStation Indicators

Share TradeStation indicators, EasyLanguage indicators.


Entries
VolVsRange
An indi for TradeStation designed to show high-volume bars
without having to devote a separate pane to an indi. It
marks them with the character in the variable vChar - "o" in
the picture.
It simply plots an ma of volume and marks bars which exceed
it by the value in the variable vadjust.
The bottom pane in the picture, which is a different but
similar indi, shows the principle.
Why the longest volume bar in that pane is not signalled by
VolVsRange I don't know - unless it's off the chart.

The code (let me know if there are errors in it - it was one
of my first tries) :

 
Code
{ Indicator } 

Inputs: 
UpColor(Black) , DnColor(Red) , vAvg.length(9) , vadjust(1.8) , VolAlert(false) , vChar("o"), offset(0.5) ; 

Variables: 
vol(0) , avgv (0) , volvlen(0) , barlength(0) ;

If BarType >= 2 then vol = Volume else vol = Ticks;    

vol = volume ;
barlength = H - L ;
if vol > 0 and barlength > 0 then 
   volvlen = vol / barlength 
else 
   volvlen = 0 ;

avgv = averageFc(volvlen, vAvg.length) ;

if volvlen > avgv * vadjust and O[1] > C[1] then 
  begin
    Value1 = Text_New(D,T, Low - Range * offset, vChar );        // down bar 
    Value2 = Text_SetColor(Value1,UpColor);
    If VolAlert = True then 
      begin
      Alert("VolvLen down ");
      End;
   End;

if volvlen > avgv * vadjust and C[1] >= O[1] then 
  begin
    Value1 = Text_New(D,T, High + Range * offset, vChar ) ;     //up bar 
    Value2 = Text_SetColor(Value1,UpColor);
    If VolAlert = True then 
      begin
        Alert("VolvLen up ");
      End;
  End;


Category TradeStation 
 
Suggest other entries I might like
Details: VolVsRange
Category: TradeStation 


November 25th, 2011
Size: 8.11 KB
Downloaded: 250 times
 

 
Category
 



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), 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.