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

Re: [amibroker] Need coding help, please!



PureBytes Links

Trading Reference Links

Try this:
Short = Cross(Signal(mfast, mslow, sigavg), MACD(mfast, mslow)) AND C <
MA(C,150);
Cover = Cross(MACD(mfast, mslow) , Signal(mfast, mslow, sigavg)) OR C >
MA(C,150);

To enter the short, the close must be below the 150 day moving average WITH
the cross.
To cover, either the cross OR the close going above the 150 day moving
average.
Frank

At 07:41 PM 6/28/02 +0000, you wrote:
>I'm trying to code the following set of conditions:
> 
>I want Analyzer formula below to function only if the closing price 
>is (and remains for the length of a possible trade) under the simple 
>150 moving average:
> 
> 
>mfast = 12;
>mslow = 29;
>sigavg = 6;
> 
>Short = Cross(Signal(mfast, mslow, sigavg), MACD(mfast, mslow));
>Cover = Cross(MACD(mfast, mslow) , Signal(mfast, mslow, sigavg));
>
> 
>How can I code this condition?
> 
>Thanks in advance!
> 
> 
>
>
>
> 
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
>