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