Hi dutchy,
I`ve checked the site
http://emini-watch.com and i found the "better volume indicator" very powerfull (even better, if combined with the sinewave you are developing).
I´ve tried to pass the code (wich is in "easy language" (tradestation)) for the
prorealtime language, but i couldn´t.
Could you help me doing that?
I would be very happy if so.
The code (for tradestation) and the conditions are the followns:
Inputs: Color(Cyan), LowColor(Yellow), ClimaxColor(Red), ChurnColor(Green), ClimaxChurnColor(Magenta), LowChurnColor(White), AvgColor(Red);
Variables: BarColor(Cyan);
BarColor = Color;
Value1 = V;
Value2 = V*Range;
If Range <> 0 then Value3 = V/Range;
Value4 = Average(Value1,100);
If Value1 = Lowest(Value1,20) then BarColor = LowColor;
If Value2 = Highest(Value2,20) then BarColor = ClimaxColor;
If Value3 = Highest(Value3,20) then BarColor = ChurnColor;
If Value2 = Highest(Value2,20) and Value3 = Highest(Value3,20) then BarColor = ClimaxChurnColor;
If Value3 = Lowest(Value3,20) then BarColor = LowChurnColor;
Plot1(Value1,"Volume",BarColor);
Plot2(Value4,"Avg",AvgColor);
And the conditions:
"TradeStation EasyLanguage code for the Better Volume indicator is shown above. The typical volume histogram can be improved by coloring bars based on 5 criteria:"
Climax volume - high volume and high range
High volume churn - high volume but low range
Climax volume plus High volume churn - both the above conditions (rare)
Low volume churn - low volume and high range
Low volume - just low volume but not a low volume churn
bar
Volume Climax is identified by multiplying volume with range and then looking for the highest value in the last 20 bars. In the code above, Value2 is used to make the calculation and comparisons. Volume Climax indicates large volume demand that results in bidding up prices. The bars are colored red.
Volume Churn is simply the
bar's volume divided by the
bar's high to low range. When Volume Churn is high it indicates demand is being met by new supply at tops or supply is being met by new demand at bottoms - in effect, price is not able to advance as new supply or demand enters the market.
When Volume Churn is low it indicates that price has moved quickly on very little volume. In the code above, Value 3 is used to make the Volume Churn calculation and comparisons. A look-back period of 20 bars is used and the bars are colored green.
Occasionally Volume Climax and High Volume Churn bars coincide and these bars are colored magenta. Lastly, any low volume bars (and not Low Churn bars) are colored yellow. When there are no volume signals to highlight the default
bar coloring is cyan.
The Better Volume indicator uses a look-back period for determining high and low values of 20 bars - a typical cycle length. I have "hard coded" the value of 20 but it is easy enough to change or use an input variable instead.
For aditional help check the site :
http://emini-watch.com/free-stuff/volume-indicator/
Thank you very much for the atention.