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

Re: [amibroker] Renko chart code revC



PureBytes Links

Trading Reference Links

Try this:

Pd1=Param("EMA 1 Period",5,2,200,1);
Pd2=Param("EMA 2 Period",8,2,200,1);

Plot(EMA(C,pd1), "EMA 1",ParamColor( "Color EMA", colorYellow ), styleThick);
Plot(EMA(C,pd2), "EMA 2",ParamColor( "Color WMA", colorBlue ), styleThick);

HaClose = (O+H+L+C)/4;
HaOpen = AMA( Ref( HaClose, -1 ), 0.5 );
HaHigh = Max( H, Max( HaClose, HaOpen ) );
HaLow = Min( L, Min( HaClose, HaOpen ) );
PlotOHLC( HaOpen, HaHigh, HaLow, HaClose, "Modified " + Name(),   
colorBlack, styleCandle );

Title= EncodeColor(colorBlack)+ "  HaOpen " + WriteVal(HaOpen/1,1.2) 
+ "    HaHigh " + WriteVal(HaHigh/1,1.2) + "    HaLow " + WriteVal
(HaLow/1,1.2) + "    HaClose " + WriteVal(HaClose/1,1.2) + "       
Date/Time " + WriteVal( DateTime(),formatDateTime) + "    Volume  " + 
WriteVal(Volume,1.0); 

Regards,
Gernot

  ----- Original Message ----- 
  From: Dean Hodgins 
  To: amibroker@xxxxxxxxxxxxxxx 
  Sent: Saturday, August 14, 2004 4:55 PM
  Subject: [amibroker] Adding EMA's to Custom Hekin Ashi Chart


  I suspect this can be done but darned if I can figure out how. ( I 
  know there's info in the manual but usually a mystery to me )

  I have the following Heikin Ashi candles that plot nicely but I'd 
  like to add a couple of EMA's based on standard closing values; 
  namely 5 and 8 day EMA plots. 

  Here's what I'm using now:  Thanks & Regards,

  Dean H.

  HaClose = (O+H+L+C)/4;
  HaOpen = AMA( Ref( HaClose, -1 ), 0.5 );
  HaHigh = Max( H, Max( HaClose, HaOpen ) );
  HaLow = Min( L, Min( HaClose, HaOpen ) );
  PlotOHLC( HaOpen, HaHigh, HaLow, HaClose, "Modified " + Name(),   
  colorBlack, styleCandle );

  Title= EncodeColor(colorBlack)+ "  HaOpen " + WriteVal(HaOpen/1,1.2) 
  + "    HaHigh " + WriteVal(HaHigh/1,1.2) + "    HaLow " + WriteVal
  (HaLow/1,1.2) + "    HaClose " + WriteVal(HaClose/1,1.2) + "       
  Date/Time " + WriteVal( DateTime(),formatDateTime) + "    Volume  " + 
  WriteVal(Volume,1.0); 







  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 --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/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/