PureBytes Links
Trading Reference Links
|
dear senior members,
as i am new to amibroker coding langauge i would request senior
members to help me in converting this formula
{
***** Study name: 'BrainTrend2StopLine'
}
{ ***** DLLs Section ***** }
{ ***** INPUTs Section *****}
Inputs: Len(7), M(0.700000), s(2);
{ ***** VARs Section ***** }
Variables: temp(0), range1(0), r1(0), p(0), r(0);
{ ***** ARRAYs Section *****}
{ ***** CODE Section ***** }
#EVENTS OnDestroy = EasyLanguageRtlOnDestroy ;
#END ;
IF CUSTOMERID = 6946 AND DATE <= 1041105
THEN
BEGIN
temp = BrainTrend (Len, M) ;
range1 = AvgTrueRange (10) ;
IF CLOSE >= temp
THEN
BEGIN
IF
(LOW-range1*s) < r AND r <> 0 THEN r1 = r
ELSE
r1 = LOW-range1*s*1/3 ;
IF p = 2 THEN r1 = LOW-range1*s*1/3 ;
PLOT1 (r1, "BT2Stop", 2, DEFAULT, DEFAULT) ;
r = r1 ;
p = 1 ;
END
ELSE
BEGIN
IF (HIGH+range1*s) > r AND r <> 0 THEN r1 = r ELSE r1 =
HIGH+range1*s*1/3 ;
IF p = 1 THEN r1 = HIGH+range1*s*1/3 ;
PLOT1 (r1, "BT2Stop", 6, DEFAULT, DEFAULT) ;
r = r1 ;
p = 2 ;
END ;
END ;
i will be very greatful kindly help
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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
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/
<*> 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:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto: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/
|