Fave This

Thursday, 4 April 2013

[Komunitas AmiBroker] Ask AFL buy 1 point above Fractal



Dear all senior,

dengan menggunakan AFL Fractal biasa,
apa Amibroker kita melakukan BACKTEST dengan menggunakan logika buy 1 point diatas upfractal, jadi bukan menggunakan next day (open) price ?

begitu pula dengan sell menggunakan logika sell 1 point dibawah downfractal.

Mohon bantuannya,

berikut AFL fractal dari buku pak Husni:

_SECTION_BEGIN("Price");
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_N(Title = StrFormat("P r o f i t u n i t y  : {{NAME}} - {{INTERVAL}} {{DATE}} O %g, H %g, L %g, C %g (%.1f%%)  " +  " {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
_SECTION_END();

_SECTION_BEGIN("Fractal");

UpFractal= ValueWhen(
  (Ref(H,-2) > Ref(H, -4)) AND
  (Ref(H,-2) > Ref(H, -3)) AND
  (Ref(H,-2) > Ref(H, -1)) AND
  (Ref(H,-2) > H), Ref(H,-2));

DownFractal= ValueWhen(
  (Ref(L,-2) <= Ref(L, -4)) AND
  (Ref(L,-2) <=  Ref(L, -3)) AND
  (Ref(L,-2) <=  Ref(L, -1)) AND
  (Ref(L,-2) <=  L), Ref(L,-2));


// Menampilkan garis Fractal Up dan Fractal Down

PlotFractalUp=ParamToggle("Plot Fractal Up ?","No|Yes",1);
if ( PlotFractalUp )
{
Plot(UpFractal, "UF", ParamColor("Up Fractal Color",colorBlue),
ParamStyle("Up Fractal Style", styleThick|styleDashed));
}

PlotFractalDown=ParamToggle("Plot Fractal Down ?","No|Yes",1);
if ( PlotFractalDown )
{
Plot(DownFractal, "DF",ParamColor("Down Fractal
Color",colorRed), ParamStyle("Down Fractal Style", styleThick|styleDashed));
}

UF=UpFractal;
DF=DownFractal;

_SECTION_END();


__._,_.___


Harga Software AmiBroker:
- Versi Professional: Rp 2,500,000
- Versi Standard: Rp 2,000,000

Harga Paket Realtime Intraday Data:
1 bulan Rp 250,000
3 bulan Rp 675,000 @225rb/bulan
6 bulan Rp 1,200,000 @200rb/bulan
12 bulan Rp 2,100,000 @175rb/bulan

Pemesanan:
E-Mail: sales@integrity.co.id
Ph: 021-57936155
SMS: 08159304868
Pin: 285844A8
http://www.integrity.co.id




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

No comments:

Post a Comment