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

[amibroker] Re: Sigma Bands



PureBytes Links

Trading Reference Links

I am getting an error with listing two of the Heikin-ashi method in 
this months stock & commodities magazine article

HaClose = (O+H+L+C)/4;
HaOpen = AMA( Ref( HaClose, -1 ), 0.5 );
HaHigh = Max( H, Max( HaClose, HaOpen ) );
HaLow = Min( L, Min( HaClose, HaOpen ) );
HaDiffCO = HaClose - HaOpen;
per = Param("MA Periods", 3, 3, 50, 1 );
Plot( HaDiffCo, "HaDiffCO", colorRed );
Plot( MA( HaDiffCo, per ), "MA("+per+")", colorBlue );

The error I'm getting is:

Operation not allowed
 at line 13, column 7:


Plot( MA( HaDiffCo, per ), "MA("+per+
------------------------------------^

any suggestions
TIA



Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/