[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Re: Better volume Indicator pls Can afl experts make an afl out of this TS code


  • Date: Sun, 29 Nov 2009 13:45:01 +0100
  • From: reinsley <reinsley@xxxxxxxx>
  • Subject: Re: [amibroker] Re: Better volume Indicator pls Can afl experts make an afl out of this TS code

PureBytes Links

Trading Reference Links

Hans,

I have added the rules and I modified the default params.

Best regards


// Better Volume Indicator

// http://emini-watch.com/free-stuff/volume-indicator/
/*
The Better Volume indicator improves on your typical volume histogram by 
coloring the bars based on 5 criteria:

     * Volume Climax Up – high volume, high range, up bars (red)
     * Volume Climax Down – high volume, high range, down bars (white)
     * High Volume Churn – high volume, low range bars (green, PaintBar 
blue)
     * Volume Climax plus High Volume Churn – both the above conditions 
(magenta)
     * Low Volume – low volume bars (yellow)
     * When there are no Volume signals the default histogram bar 
coloring is cyan


		

Better Volume Indicator: Summary

								 Bottom | Start Up Trend | Up Trend Continue | Top | Start 
Down Trend	| Down Trend Continue | Indicator Color
  Volume Climax Up 	  			     |	    Yes 	  	 | 
      				| Yes 	|						|		Yes            |		Red
  Volume Climax Down 				Yes  | 	  			 |      Yes 	  		|		| 
    Yes 	  	 	|						  |		White
  High Volume Churn 				Yes  | 	  			 |		 
  | Yes 	|  	  	 				|					     |		Green/Blue
  Hi Vol Churn + 
Climax 			Yes  |  	  		     |						| Yes 	| 						|						  |		Magenta
  Low Volume 						Yes  |					 |			Yes        | Yes |						|		Yes 
       |		Yellow



*/

SetChartBkColor(16 ) ;

_SECTION_BEGIN("EMA");
P = Volume;
Periods = Param("PeriodsEMA", 9, 2, 300, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), colorRed, styleLine | 
styleThick );
_SECTION_END();

Period = Param("Period", 10, 2, 300, 1, 10 );;
LowColor = colorYellow;
ClimaxColor = colorRed;
ChurnColor = colorGreen;
ClimaxChurnColor=colorBlue;
LowChurnColor= colorWhite;

Value1 = V;
Value2 = V*(H-L);
Value3 = V/(H-L);

BarColor = IIf( (Value1 == LLV(Value1,Period)), LowColor,

IIf( (Value2 == HHV(Value2,Period)), ClimaxColor,

IIf( (Value3 == HHV(Value3,Period)), ChurnColor,

IIf( ((Value2 == HHV(Value2,Period) AND (Value3 == 
HHV(Value3,Period)))), ClimaxChurnColor,

IIf( (Value3 == LLV(Value3,Period)), LowChurnColor, colorBlueGrey)))));

_SECTION_BEGIN("Volume");
Plot( Volume, _DEFAULT_NAME(), BarColor, ParamStyle( "Style", 
styleHistogram | styleThick, maskHistogram ), 2 );
_SECTION_END();


hagus99se a écrit :
>  
> 
> 
> 
> Try this code, author unknown.
> 
> /* emini-watch.com better Volume */
> 
> SetChartBkColor(16 ) ;
> 
> _SECTION_BEGIN("EMA");
> P = Volume;
> Periods = Param("PeriodsEMA", 100, 2, 300, 1, 10 );
> Plot( EMA( P, Periods ), _DEFAULT_NAME(), colorRed, styleLine | 
> styleThick );
> _SECTION_END();
> 
> Period = Param("Period", 20, 2, 300, 1, 10 );;
> LowColor = colorYellow;
> ClimaxColor = colorRed;
> ChurnColor = colorGreen;
> ClimaxChurnColor=colorBlue;
> LowChurnColor= colorWhite;
> 
> Value1 = V;
> Value2 = V*(H-L);
> Value3 = V/(H-L);
> 
> BarColor = IIf( (Value1 == LLV(Value1,Period)), LowColor,
> 
> IIf( (Value2 == HHV(Value2,Period)), ClimaxColor,
> 
> IIf( (Value3 == HHV(Value3,Period)), ChurnColor,
> 
> IIf( ((Value2 == HHV(Value2,Period) AND (Value3 == 
> HHV(Value3,Period)))), ClimaxChurnColor,
> 
> IIf( (Value3 == LLV(Value3,Period)), LowChurnColor, colorBlueGrey)))));
> 
> _SECTION_BEGIN("Volume");
> Plot( Volume, _DEFAULT_NAME(), BarColor, ParamStyle( "Style", 
> styleHistogram | styleThick, maskHistogram ), 2 );
> _SECTION_END();
> 
> --- In amibroker@xxxxxxxxxxxxxxx <mailto:amibroker%40yahoogroups.com>, 
> reinsley <reinsley@xxx> wrote:
>  >
>  >
>  > In Easy Language :
>  >
>  > Range : The function performs the task of substacting the Low of a bar
>  > from the High
>  >
>  > Returns : The current (H-L) value
>  >
>  > Best regards
>  >
>  > Amon Ra a écrit :
>  > >
>  > >
>  > > It's no so hard if you know what means range in this code. I don't.
>  > >
>  > > --- On *Thu, 11/26/09, ram vel /<rvlv@xxx>/* wrote:
>  > >
>  > >
>  > > From: ram vel <rvlv@xxx>
>  > > Subject: Re: [amibroker] Better volume Indicator pls Can afl experts
>  > > make an afl out of this TS code
>  > > To: amibroker@xxxxxxxxxxxxxxx <mailto:amibroker%40yahoogroups.com>
>  > > Date: Thursday, November 26, 2009, 12:21 AM
>  > >
>  > >
>  > >
>  > > video link here
>  > > http://emini- watch.com/ free-stuff/ volume-indicator /
>  > > <http://emini-watch.com/free-stuff/volume-indicator/ 
> <http://emini-watch.com/free-stuff/volume-indicator/>>
>  > >
>  > >
>  > > --- On *Wed, 11/25/09, rvlv /<rvlv@xxx>/* wrote:
>  > >
>  > >
>  > > From: rvlv <rvlv@xxx>
>  > > Subject: [amibroker] Better volume Indicator pls Can afl experts
>  > > make an afl out of this TS code
>  > > To: amibroker@xxxxxxxxx ps.com
>  > > Date: Wednesday, November 25, 2009, 11:11 PM
>  > >
>  > >
>  > > Time again to bother you all afl experts.
>  > >
>  > > I wish to request you to see if this kind of thing is possible
>  > > for amibroker users.
>  > > For those who use data without bid-ask and those who use that.
>  > >
>  > > Better volume indicator
>  > > ============ ========= ====
>  > > please find time to watch it.
>  > >
>  > > The other thing is
>  > >
>  > > Is it possible to get this tradestation code in afl, sooner or later
>  > > ------------ --------- --------- --------- --------- --------- -
>  > > tradestation code-------- --not afl----
>  > > //Inputs: LowVol(True) , ClimaxUp(True) , ClimaxDown(True) ,
>  > > Churn(True) …
>  > > //Variables: BarColor(Cyan) ;
>  > > BarColor = Color;
>  > > //if BarType > 1 OR UseUpTicks = False then begin
>  > > if C > O AND Range <> 0 then Value1 = (Range/
>  > > (2*Range+O-C) )*UpTicks;
>  > > if C < O AND Range <> 0 then Value1 = ((Range+C-O) /
>  > > (2*Range+C-O) )*UpTicks;
>  > > if C = O then Value1 = 0.5*UpTicks;
>  > > Value2 = UpTicks-Value1;
>  > > //End;
>  > > if BarType <= 1 AND UseUpTicks then begin
>  > > Value1 = UpTicks;
>  > > Value2 = DownTicks;
>  > > //End;
>  > > Value3 = AbsValue(Value1+ Value2);
>  > > Value4 = Value1*Range;
>  > > Value5 = (Value1-Value2) *Range;
>  > > Value6 = Value2*Range;
>  > > Value7 = (Value2-Value1) *Range;
>  > > if Range <> 0 then begin
>  > > Value8 = Value1/Range;
>  > > Value9 = (Value1-Value2) /Range;
>  > > Value10 = Value2/Range;
>  > > Value11 = (Value2-Value1) /Range;
>  > > Value12 = Value3/Range;
>  > > //End;
>  > > ------------ --------- -------
>  > > please see pdf attachment as well.
>  > >
>  > > Hope you will find time to get something done on this
>  > > regards
>  > > thanks in advance
>  > > rvlv
>  > >
>  > >
>  > >
>  > >
>  >
> 
> 



------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    amibroker-digest@xxxxxxxxxxxxxxx 
    amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/