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

[amibroker] corrected: log time plot



PureBytes Links

Trading Reference Links

I need some help getting my LineArray indicator working properly. If I scroll past the drawn LineArray, The normal price bars get Compacted! Here is the code, You can decrease the span of the LineArray via parameters (CTRL-R) //10 Year Line Array - MA(60). UMA = Param("UserMA",60,1,100,1); DIS = Param("DaySP",2500,2,BarCount-1,1); // (2500 Aprox 10 Years). TMA = MA(Close,UMA); // X Month Average x0=IIf((BarCount>(DIS+UMA)),((BarCount)-DIS),UMA); x1=BarCount-1; y0=TMA[x0]; y1=TMA[x1]; line = LineArray(x0,y0,x1,y1,0,0); Plot(Line,"line",colorBlue); Color = IIf(O > C, colorBlack, colorYellow); Plot( Close, "Price", color, styleCandle ); YV=Year(); MV=Month(); DV=Day(); _N(Title= "\nBars   : "+x1+ "\nFrom  : "+DV[x0]+"/"+MV[x0]+"/"+YV[x0]+ "\n MA(C,"+UMA+")  : "+y0+ "\nTo  : "+DV[x1]+"/"+MV[x1]+"/"+YV[x1]+ "\n MA(C,"+UMA+")  : "+y1+ ""); 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 Sponsor ADVERTISEMENT 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 the Yahoo! Terms of Service.