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

[amibroker] Re: Plotting a moving average for a fixed number of day For Dimitris



PureBytes Links

Trading Reference Links

CondL=L==HHV(L,12);//Plot(L*CondL,"",2,2);
Plot(IIf(BarsSince(CondL)<=4,MA(L,5),-1e10),"",4,1);
CondH=H==LLV(H,12);//Plot(H*CondH,"",1,2);
Plot(IIf(BarsSince(CondH)<=4,MA(H,5),-1e10),"",5,1);

a. Uncomment the // to see the CondL, CondH points
b. Note some overlapping days, where both MAs are plotted.
DT
--- In amibroker@xxxxxxxxxxxxxxx, "epintoem" <epintoem@xxxx> wrote:
> If a low is higher than the preceedin 12 days lows then a 5 day 
moving
> average of the lows is calculated for the next 4 days
> If a high is lower than the preceeding 12 days highs then a 5 day
> moving average of the highs is calculated for the next 4 days.
> 
> either of the following options can be taken
> a. a 5 day moving average of the highs
> b. a 5 day moving average of the lows
> c. Nothing...which would accounts for the breaks...
> 
> 
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS" 
<TSOKAKIS@xxxx>
> wrote:
> > In order to plot a continuous line, what do you want to plot when 
the 
> > Condition is not true ?
> > This will help to give a reply.
> > DT
> > --- In amibroker@xxxxxxxxxxxxxxx, "epintoem" <epintoem@xxxx> 
wrote:
> > > Condition : If the low is higher than the lows of the previous 
12
> > > days. I want to plot a moving average of the lows for the next 
4 
> > days
> > > ....HOw can one do that?
> > > 
> > > 
> > > Thanks RLB for your help with coloring bars, also Anthony.
> > > 
> > > TIA


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs from home.
Over 14,500 titles. Free Shipping
& No Late Fees. Try Netflix for FREE!
http://us.click.yahoo.com/BVVfoB/hP.FAA/uetFAA/GHeqlB/TM
---------------------------------------------------------------------~->

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 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/