| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | Better Volume Indicator Better Volume Indicator Inputs: LowVol(True), ClimaxUp(True), ClimaxDown(True), Churn(True), ClimaxChurn(True), Color(Cyan), LowVolColor(Yellow), ClimaxUpColor(Red), ClimaxDownColor(White), ChurnColor(Green), ClimaxChurnColor(Magenta) , AvgColor(Red); Variables: BarColor(Cyan), Lookback(20); BarColor = Color; If BarType > 1 then begin Value1 = V; Value2 = V*Range; If Range <> 0 then Value3 = V/Range; Condition1 = Value1 = Lowest(Value1,Lookback); Condition2 = Value2 = Highest(Value2,Lookback); Condition3 = Value3 = Lowest(Value3,Lookback); Condition4 = Value3 = Highest(Value3,Lookback); If LowVol and Condition1 then BarColor = LowVolColor; If ClimaxUp and Condition2 and C > O then BarColor = ClimaxUpColor; If ClimaxDown and (Condition2 or Condition3) and C < O then BarColor = ClimaxDownColor; If Churn and Condition4 then BarColor = ChurnColor; If ClimaxChurn and Condition4 and ((Condition2 and C > O) or ((Condition2 or Condition3) and C < O)) then BarColor = ClimaxChurnColor; End; If BarType <= 1 then begin Value1 = UpTicks+DownTicks; Value2 = UpTicks*Range; Value3 = (UpTicks-DownTicks)*Range; Value4 = DownTicks*Range; Value5 = (DownTicks-UpTicks)*Range; If Range <> 0 then begin Value6 = UpTicks/Range; Value7 = (UpTicks-DownTicks)/Range; Value8 = DownTicks/Range; Value9 = (DownTicks-UpTicks)/Range; Value10 = (UpTicks+DownTicks)/Range; End; Condition1 = Value1 = Lowest(Value1,Lookback); Condition2 = Value2 = Highest(Value2,Lookback); Condition3 = Value3 = Highest(Value3,Lookback); Condition4 = Value4 = Highest(Value4,Lookback); Condition5 = Value5 = Highest(Value5,Lookback); Condition6 = Value6 = Lowest(Value6,Lookback); Condition7 = Value7 = Lowest(Value7,Lookback); Condition8 = Value8 = Lowest(Value8,Lookback); Condition9 = Value9 = Lowest(Value9,Lookback); Condition10 = Value10 = Highest(Value10,Lookback) ; If LowVol and Condition1 then BarColor = LowVolColor; If ClimaxUp and (Condition2 or Condition3 or Condition8 or Condition9) and C > O then BarColor = ClimaxUpColor; If ClimaxDown and (Condition4 or Condition5 or Condition6 or Condition7) and C < O then BarColor = ClimaxDownColor; If Churn and Condition10 then BarColor = ChurnColor; If ClimaxChurn and Condition10 and (((Condition2 or Condition3 or Condition8 or Condition9) and C > O) or ((Condition4 or Condition5 or Condition6 or Condition7) and C < O)) then BarColor = ClimaxChurnColor; End; Plot1(Value1,"Volume",Bar Color); Plot2(Average(Value1,100) ,"Avg",AvgColor); {************************ ** Change Log: ************************* *} {23 November 2007 - Added LowChurn colored volume bars } {19 April 2008 - Got rid of LowChurn and replaced with ClimaxDown } {19 April 2008 - Added open & close conditions with ClimaxUp and ClimaxDown } {19 April 2008 - Added different calculations for tick/intra-day charts } Better Volume PaintBar Inputs: LowVol(True), ClimaxUp(True), ClimaxDown(True), Churn(True), ClimaxChurn(True), LowVolColor(Yellow), ClimaxUpColor(Red), ClimaxDownColor(White), ChurnColor(Blue), ClimaxChurnColor(Magenta) , Lookback(20); Variables: BarColor(Green); BarColor = Green; If BarType > 1 then begin Value1 = V; Value2 = V*Range; If Range <> 0 then Value3 = V/Range; Condition1 = Value1 = Lowest(Value1,Lookback); Condition2 = Value2 = Highest(Value2,Lookback); Condition3 = Value3 = Lowest(Value3,Lookback); Condition4 = Value3 = Highest(Value3,Lookback); If LowVol and Condition1 then BarColor = LowVolColor; If ClimaxUp and Condition2 and C > O then BarColor = ClimaxUpColor; If ClimaxDown and (Condition2 or Condition3) and C < O then BarColor = ClimaxDownColor; If Churn and Condition4 then BarColor = ChurnColor; If ClimaxChurn and Condition4 and ((Condition2 and C > O) or ((Condition2 or Condition3) and C < O)) then BarColor = ClimaxChurnColor; End; If BarType <= 1 then begin Value1 = UpTicks+DownTicks; Value2 = UpTicks*Range; Value3 = (UpTicks-DownTicks)*Range; Value4 = DownTicks*Range; Value5 = (DownTicks-UpTicks)*Range; If Range <> 0 then begin Value6 = UpTicks/Range; Value7 = (UpTicks-DownTicks)/Range; Value8 = DownTicks/Range; Value9 = (DownTicks-UpTicks)/Range; Value10 = (UpTicks+DownTicks)/Range; End; Condition1 = Value1 = Lowest(Value1,Lookback); Condition2 = Value2 = Highest(Value2,Lookback); Condition3 = Value3 = Highest(Value3,Lookback); Condition4 = Value4 = Highest(Value4,Lookback); Condition5 = Value5 = Highest(Value5,Lookback); Condition6 = Value6 = Lowest(Value6,Lookback); Condition7 = Value7 = Lowest(Value7,Lookback); Condition8 = Value8 = Lowest(Value8,Lookback); Condition9 = Value9 = Lowest(Value9,Lookback); Condition10 = Value10 = Highest(Value10,Lookback) ; If LowVol and Condition1 then BarColor = LowVolColor; If ClimaxUp and (Condition2 or Condition3 or Condition8 or Condition9) and C > O then BarColor = ClimaxUpColor; If ClimaxDown and (Condition4 or Condition5 or Condition6 or Condition7) and C < O then BarColor = ClimaxDownColor; If Churn and Condition10 then BarColor = ChurnColor; If ClimaxChurn and Condition10 and (((Condition2 or Condition3 or Condition8 or Condition9) and C > O) or ((Condition4 or Condition5 or Condition6 or Condition7) and C < O)) then BarColor = ClimaxChurnColor; End; If BarColor <> Green then PlotPaintBar(H,L,O,C,"Bet terVol",BarColor); | ||
| |
|
| | #2 | ||
![]() | Re: Better Volume Indicator If you have TS or MC, why not verify and save the text as an .eld on that platform? | ||
|
| | #3 | ||
![]() | Re: Better Volume Indicator | ||
| |
|
| | #4 | ||
![]() | Re: Better Volume Indicator Quote:
In addition, I am a new TS user and totally illiterate when it comes to anything beyond point-n-click; hence my request for the ELD from you of you kind souls who knows what they're doing. Last edited by user237509837; 08-27-2008 at 06:14 PM. | ||
| |
|
| | #5 | ||
![]() | Re: Better Volume Indicator | ||
| |
|
| | #6 | ||
![]() | Re: Better Volume Indicator Quote:
![]() You should just download the eld from that site if you are unable to verify the source. Code: {***** Copyright www.Emini-Watch.com All rights reserved *****} | ||
| |
|
| The Following User Says Thank You to thrunner For This Useful Post: | ||
| | #7 | ||
![]() | Re: Better Volume Indicator Quote:
| ||
| |
|
| | #8 | ||
![]() | Re: Better Volume Indicator Quote:
The first search result from the above google search should be it. There is a big button that says 'Free Code' on that page. | ||
| |
|
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Up/Down Volume Indicator | Blu-Ray | Trading Indicators | 6 | 12-12-2010 05:10 PM |
| Cumulative Volume(Delta Buy/Sell) Indicator | mdtmn | Market Profile | 5 | 07-27-2010 05:32 AM |
| Volume + Price Action Momentum Indicator | Tresor | Coding Forum | 4 | 03-04-2010 02:14 PM |
| Volume Delta Indicator | Soultrader | Trading Indicators | 29 | 05-22-2009 01:08 AM |
| Volume Gradient + Heikin Ashii Trend Indicator | GCB | Trading Indicators | 27 | 04-07-2007 08:29 AM |