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

[amibroker] Re: Indicator Help/Jayson



PureBytes Links

Trading Reference Links

this compresses time more as the plot moves back in time.  this is the
same idea as a log price scale.  have fun, feel free to modify and
debug if necessary.

/jeff

//Log Time

s=Param("speed",0,0,0.03,0.0001);
b=BarCount-1;
bc=b;
Hx=0;Lx=0;Ox=0;Lx=0;
Hy=Null;Ly=Null;Oy=Null;Ly=Null;

do
{
Cy[bc]=C[b];
f=int(exp(s*(BarCount-bc+1)));
b1=b-f;

while (b>b1 AND b>0)
{
if (H[b]>Hx) Hx=H[b];
if (L[b]>Lx) Lx=L[b];
b--;
}

Hy[bc]=Hx;Ly[bc]=Lx;Oy[bc]=O[b+1];
Hx=0;Lx=0;Ox=0;Lx=0;
bc--;

} while (b>0);
ml=LastValue(Lowest(L));mh=LastValue(Highest(H));
PlotOHLC(Oy,Hy,Ly,Cy,"",1,styleCandle|styleOwnScale,ml,mh);



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/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 
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/