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

[amibroker] Re: Brian's Tether Code Help



PureBytes Links

Trading Reference Links

Patrick thanks,

I'm such an idiot ... i had actually fixed that but the problem was in
leaving the "close" instead of L and H.

Thanks again

--- In amibroker@xxxxxxxxxxxxxxx, "NW Trader" <47nwtrader@xxxx> wrote:
> Hi Alex,
> 
> Did you notice that you're using LLV twice?  Shouldn't you use HHV
for one?  Also you should use H and L, not C.  Your code:
> 
> Tether = (LLV(Close,HV) + LLV(Close, LV)) / 2;
> 
> My suggestion:
> 
> Tether = ( HHV(H, HV) + LLV(L, LV )  ) / 2 ;
> 
> Does this do what you expected?
> 
> Peace and Justice   ---   Patrick
>   ----- Original Message ----- 
>   From: Alex Dolaptchiev 
>   To: amibroker@xxxxxxxxxxxxxxx 
>   Sent: Thursday, June 16, 2005 10:37 PM
>   Subject: [amibroker] Brian's Tether Code Help
> 
> 
>   I am trying to convert the MS code for Brian's Tether.  I thought I
>   had it right but when I plot MY AB code the tether always remains
>   below the price.  This should not happen because at times price should
>   be above tether line (bullish scenarios).
> 
>   MS CODE:
>   TL = ( HHV(H,50) + LLV(L,50) ) / 2
> 
>   MY AB CODE:
>   //BRIAN'S TETHER
>   HV = Param("High Period", 50, 0, 100, 1);
>   LV = Param("Low Period", 50, 0, 100, 1 ); 
> 
>   Tether = (LLV(Close,HV) + LLV(Close, LV)) / 2;
> 
>   // plot tether line
>   Plot( Tether, "Tether Line", ParamColor("Color", colorBlue),
>   ParamStyle("style", styleLine ));
> 
> 
> 
> 
>   Please note that this group is for discussion between users only.
> 
>   To get support from AmiBroker please send an e-mail directly to 
>   SUPPORT {at} amibroker.com
> 
>   For other support material please check also:
>   http://www.amibroker.com/support.html
> 
> 
> 
> 
> 
>
------------------------------------------------------------------------------
>   Yahoo! Groups Links
> 
>     a.. To visit your group on the web, go to:
>     http://groups.yahoo.com/group/amibroker/
>       
>     b.. To unsubscribe from this group, send an email to:
>     amibroker-unsubscribe@xxxxxxxxxxxxxxx
>       
>     c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.





Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links

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

<*> 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/