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

Re: [amibroker] Re: Watchlist sorting



PureBytes Links

Trading Reference Links

Thanks,

I've seen some awesome charts with range bars from eSignal and 
Ensign.  It would be great if AB could do it too!



--- In amibroker@xxxxxxxxxxxxxxx, "TaoTrader" <taotrader@xxxx> wrote:
> I've inquired before here about Renko charts for AB, but didn't get 
a response.  I've not been successful in programming Renkos in afl 
(though my skills are limited).  I've come across some Metastock code 
(see below), which may or may not work.  Maybe somebody can take a 
stab at it in afl.  It would be greatly appreciated.
> 
> Gernot
> 
> Inputs: K(1),
> vars:Brick(0) ,DN(0), UP(0), BricksUp(0), BricksDn(0);
> 
> If BarNumber = 1 Then Begin
> Up = H;
> Dn = L;
> Brick = K*(H - L);
> End;
> If BarNumber > 1 then begin
> If C > UP + Brick Then begin
> BricksUp = IFF(Brick = 0, 0, Floor((C - Up)/Brick)*Brick);
> UP = Up + BricksUp;
> DN = Up - Brick;
> BricksDn = 0;
> End;
> If C < Dn - Brick Then begin
> BricksDn = IFF(Brick = 0, 0, Floor((Dn - C)/Brick)*Brick);
> Dn = Dn - BricksDn;
> Up = Dn + Brick;
> BricksUp = 0;
> End;
> End;
> 
> Plot1(UP, "Up");
> Plot2(DN, "Dn");
> 
> 
>   ----- Original Message ----- 
>   From: Graham 
>   To: amibroker@xxxxxxxxxxxxxxx 
>   Sent: Wednesday, August 11, 2004 10:39 PM
>   Subject: RE: [amibroker] Momentum Bars in AB ? Renko bars in AB?
> 
> 
>   I have not come across the constant range bars before, so I will 
have a look
>   and see if it is relatively easy to put together.
>   Renko would be similar in construction to P&F with modifications 
of course
> 
>   Cheers,
>   Graham
>   http://e-wire.net.au/~eb_kavan/
> 
>   -----Original Message-----
>   From: n7wyw [mailto:dennisljohnston@x...] 
>   Sent: Thursday, August 12, 2004 9:54 AM
>   To: amibroker@xxxxxxxxxxxxxxx
>   Subject: [amibroker] Momentum Bars in AB ? Renko bars in AB?
> 
>   I want to have constant range bars like are described below:  
does 
>   anyone know how to do it?  eSignal and ensignsoftware charts can 
do 
>   it but I want to do it in Amibroker.  Also, eSignal can do renko 
>   bars, does anyone know how to do that in AB?
> 
>   Thanks
> 
> 
>   http://ensignsoftware.com/tips/tradingtips49.htm
> 
>   Two articles in the Stocks, Futures & Options magazine 
>   (www.sfomag.com) introduced a new charting concept.  The first 
>   article was 'Paradigm Shift Lights the Way to Momentum Bars' by 
>   Desmond MacRae, SFO Feb 2003.  The follow-up article 
was 'Momentum 
>   Bars: The Sequel ...' by Desmond MacRae, SFO Apr 2003.  These 
>   articles describe a charting concept developed by Danton Long 
called 
>   Momentum Bars.
> 
>   Momentum Bars are basically constant range bars.  The bars look 
like 
>   standard chart bars with an open, high, low, close and volume.   
The 
>   high-low range of each bar is constant.  A new bar does not start 
>   until a price tick is received that would exceed the fixed range 
of 
>   the current bar.   Momentum Bar charts have the following 
>   characteristics: 
> 
>   Each bar is the same height because the range is constant. 
>   The close of a bar is always at the high or low of the bar. 
>   The open of a bar is always one tick below or above the close of 
the 
>   preceding bar. 
>   The time period covered by each bar varies. 
>   All gaps are filled with inserted 'phantom' bars. 
> 
> 
> 
> 
> 
>   Check AmiBroker web page at:
>   http://www.amibroker.com/
> 
>   Check group FAQ at:
>   http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
>   Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
>   Check AmiBroker web page at:
>   http://www.amibroker.com/
> 
>   Check group FAQ at: 
http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> 
> 
>         Yahoo! Groups Sponsor 
>               ADVERTISEMENT
>              
>        
>        
> 
> 
> --------------------------------------------------------------------
----------
>   Yahoo! Groups Links
> 
>     a.. To visit your group on the web, go to:
>     http://groups.yahoo.com/group/amibroker/
>       
>     b.. To unsubscribe from this group, send an email to:
>     amibroker-unsubscribe@xxxxxxxxxxxxxxx
>       
>     c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service. 
> 
> 
> 
> [Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

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/