please note : try to use earlier passwords or try password reset
please note : newly registered users (not existing in earlier forum) need registration again :(


image host
AMIBROKER AFL CODE
#1
Happy Trading SMPipz!!! Big Grin

pansin ko lang parang marami dito sa SMP gumagamit ng amibroker at cguro naman may ilan din na gumagawa ng AFL (amibroker formula language) codes para sa pag scan ng stocks winking alam ko hindi madali gumawa ng codes Huh ilang oras, araw o gabi na puyatan ang aabutin nito depende sa degree of difficulty sa ginagawa mong AFL code Angry

I decided to make this thread kasi hirap akong mag formulate ng mga codes na profitable Tongue... dahil na rin kay sir ippfx na nagbigay ng "catalyst" for me to do this Big Grin.... sana may mag CARE TO SHARE their winning codes para mahawaan naman kaming mga newbie Big Grin

...sana maimprove din ng mga master yong AFL code na ipost ko dito into a more profitable code Rolleyes

“Give to others, and God will give to you. Indeed, you will receive a full measure, a generous helping, poured into your hands — all that you can hold.” – Luke 6:38
Reply
image host
#2
...ok good INDO...
Facebook Link to our 2017 SMP Charity Pictures https://www.facebook.com/SMPBack2School2017/
Thanks To ALL Donors, Bawiin Naman Natin sa Profits
Reply
#3
para sa unang AFL code na nagawa ko: nabasa ko kasi somewhere sa thread ni sir spy na ang isang stock is a good to buy if RSI(30) is above 50 and current price is more than 50MA or higher than sa bollingerband... i try to make an AFL CODE, para pag scan sa stocks na nag meet sa criteria: sana may magcomment how to improve nito hehehe... kung sino man may trip mag testing din nito, just copy and paste sa fomula editor ng amibroker.

TimeFrameSet(inWeekly);
weeklyRSI = RSI(30) >= 50;
weeklyMA50 = Close >= MA(Close,50);
weeklybband = Close >= BBandTop(Close,50,0.2);
weeklycandle = Close > Open;
TimeFrameRestore();

DailyFilter1 = Close >= MA(Close,50) OR Close >= BBandTop(Close,50,0.2);
DailyFilter = RSI(30) >= 50 AND DailyFilter1;

WeeklyFilter1 = TimeFrameExpand(Weeklybband,inWeekly) OR TimeFrameExpand(WeeklyMA50,inWeekly);
WeeklyFilter = TimeFrameExpand(WeeklyRSI,inWeekly) AND WeeklyFilter1;

above50kiss = DailyFilter OR WeeklyFilter;

Buy = above50kiss AND Ref(L,-2) > Ref(L,-1) AND L > Ref(L,-1) AND C > O AND TimeFrameExpand(Weeklycandle,inWeekly);

Sell = O > C AND H < Ref(H,-1) AND Ref(H,-2) < Ref(H,-1);
Reply
#4
uy ayos ito indo ha... try ko sa weekend.
Reply
#5
...pwede nyo rin ba ito ituro sa kumander ninyo? hehehe Big Grin
Facebook Link to our 2017 SMP Charity Pictures https://www.facebook.com/SMPBack2School2017/
Thanks To ALL Donors, Bawiin Naman Natin sa Profits
Reply
#6
you can downnload also afl codes.. google lng katapat.. :p

gap finder.. harmonics.. etc..
when GOD steps in, MIRACLE happens.....

It's more fun in FOREX!!!

Reply
#7
...salamat boss chu at mukhang nagustuhan mo Big Grin

...boss vester salamat sa info... try ko search nga pala.. will post here na lang kung pwede natin magamit pang scan Smile

...comm Ollie, di po ako magaling nito, basic programming lang background ko at di pa nahasa hehe, baka may iba dito marunong magturo, papaturo din ako heheBig Grin
Reply
#8
Happy weekend SMP!

share ko lang 'tong napulot kong AFL code (attached file)... sana makatulong Smile

Reply
#9
Hindi pala ako allowed mag attach ng file, wala kasi akong nakitang option para mag attach.. dito na lang din, buti nalang konti lang ang code Big Grin

Good Luck!

SetChartBkColor(28);
_SECTION_BEGIN("RSI EMA");
Plot (EMA(RSI(14),5), "Smoothed RSI-5", colorYellow , styleNoLabel | styleThick);
Plot (EMA(RSI(14),20), "Smoothed RSI-14", colorLime , styleNoLabel | styleThick);

Buy= Cross(EMA (RSI(14),5), EMA (RSI(14), 20));
Sell = Cross(EMA (RSI(14),20), EMA (RSI(14), 5));


PlotShapes(IIf(Buy,shapeUpArrow,shapeNone) ,colorBrightGreen);
PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed);

_SECTION_END();
Reply
#10
share ko lang sana magamit nyo din..

// PSE Board Lot and Minimum Fluctuation Table
function BoardLot() {
CurrentPrice = Close[BarCount-1];
result = 0;
if (CurrentPrice >= 0.0001 AND CurrentPrice <= 0.0099) result = 1000000;
if (CurrentPrice >= 0.0100 AND CurrentPrice <= 0.0490) result = 100000;
if (CurrentPrice >= 0.0500 AND CurrentPrice <= 0.4950) result = 10000;
if (CurrentPrice >= 0.5000 AND CurrentPrice <= 4.9900) result = 1000;
if (CurrentPrice >= 5.0000 AND CurrentPrice <= 49.9500) result = 100;
if (CurrentPrice >= 50.0000 AND CurrentPrice <= 999.5000) result = 10;
if (CurrentPrice >= 1000.0000) result = 5;
return result;
}

function OneTick() {
CurrentPrice = Close[BarCount-1];
result = 0;
if (CurrentPrice >= 0.0001 AND CurrentPrice <= 0.0099) result = 0.0002;
if (CurrentPrice >= 0.0100 AND CurrentPrice <= 0.2490) result = 0.0010;
if (CurrentPrice >= 0.2500 AND CurrentPrice <= 0.4950) result = 0.0050;
if (CurrentPrice >= 0.5000 AND CurrentPrice <= 9.9900) result = 0.0100;
if (CurrentPrice >= 10.0000 AND CurrentPrice <= 19.9800) result = 0.0200;
if (CurrentPrice >= 20.0000 AND CurrentPrice <= 99.9500) result = 0.0500;
if (CurrentPrice >= 100.0000 AND CurrentPrice <= 199.9000) result = 0.1000;
if (CurrentPrice >= 200.0000 AND CurrentPrice <= 499.8000) result = 0.2000;
if (CurrentPrice >= 500.0000 AND CurrentPrice <= 999.5000) result = 0.5000;
if (CurrentPrice >= 1000.0000 AND CurrentPrice <= 1999.0000) result = 1.0000;
if (CurrentPrice >= 2000.0000 AND CurrentPrice <= 4998.0000) result = 2.0000;
if (CurrentPrice >= 5000.0000) result = 5.0000;
return result;
}
"A man should look for what is, and not for what he thinks should be." - Albert Einstein
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)