Monday, August 23, 2010

Tips Coding Bikin Lebar dan Maju Mundur suatu Array di AmiBroker

TIPS # 1 : Cara plot Array supaya tampak Melebar

Try this contoh:

EMA5 = EMA(C,5);
LebSemp = Param("Faktor Pelebaran", 0.005, 0.00005, 5); //Buat ngatur pelebaran
Lebarin =LebSemp*EMA5;
Lebar1 = EMA5+Lebarin;
Lebar2 = EMA5-Lebarin;
Plot(EMA5,"EMA5", colorYellow, styleLine|styleThick|styleOwnScale);
PlotOHLC(Lebar1 ,Lebar1 ,Lebar2,Lebar2,"",colorDarkGrey, styleCloud|styleOwnScale);

TIPS #2 - Cara memajukan atau memundurkan suatu Array


Try this contohnya:

Displace = Param("Displace by", 2, -10, 10, 1); // Buat ngatur maju mundur berapa bar
EMA15 = EMA(C, 15);
Plot(EMA15,"EMA15Displace", colorRed, styleLine,0,0,Displace);


Pengertian ARRAY :
1. Dari menu Help AmiBroker:  An array is simply a list (or row) of values.
2. Dari Kamus:
     - Lay out orderly or logically in a line or as if in a line
    - Align oneself with a group or a way of thinking


=============================
Semoga bermanfaat.
Eco Syariah