Successes and Failures are Parts of Trading. They are Not Permanent.
 photo TheDailyHINT01_zpsae8386eb.png

Post Reply 
AMIBROKER AFL CODE
03-05-2012, 02:42 PM
Post: #1
AMIBROKER AFL CODE
2
0
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

Get Yourself a Daily Stock Guide with
TheDailyHINT
Get Stock Update with TheTrulyRich Club
Grab FREE Stock reports from Pinoy Investor!
Visit this user's website Find all posts by this user
Quote this message in a reply
 photo TheDailyHINT01_zpsae8386eb.png
03-05-2012, 02:50 PM
Post: #2
RE: AFL CODE
0
1
...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
Visit this user's website Find all posts by this user
Quote this message in a reply
03-05-2012, 02:52 PM
Post: #3
RE: AFL CODE
1
1
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);

Get Yourself a Daily Stock Guide with
TheDailyHINT
Get Stock Update with TheTrulyRich Club
Grab FREE Stock reports from Pinoy Investor!
Visit this user's website Find all posts by this user
Quote this message in a reply
03-05-2012, 07:52 PM
Post: #4
RE: AFL CODE
0
1
uy ayos ito indo ha... try ko sa weekend.
Visit this user's website Find all posts by this user
Quote this message in a reply
03-05-2012, 10:07 PM
Post: #5
RE: AFL CODE
0
1
...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
Visit this user's website Find all posts by this user
Quote this message in a reply
03-06-2012, 05:33 PM
Post: #6
RE: AFL CODE
0
1
you can downnload also afl codes.. google lng katapat.. Tongue

gap finder.. harmonics.. etc..

when GOD steps in, MIRACLE happens.....

It's more fun in FOREX!!!
Find all posts by this user
Quote this message in a reply
03-07-2012, 12:30 AM
Post: #7
RE: AFL CODE
0
1
...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

Get Yourself a Daily Stock Guide with
TheDailyHINT
Get Stock Update with TheTrulyRich Club
Grab FREE Stock reports from Pinoy Investor!
Visit this user's website Find all posts by this user
Quote this message in a reply
03-17-2012, 01:28 PM
Post: #8
RE: AMIBROKER AFL CODE
0
1
Happy weekend SMP!

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

Get Yourself a Daily Stock Guide with
TheDailyHINT
Get Stock Update with TheTrulyRich Club
Grab FREE Stock reports from Pinoy Investor!
Visit this user's website Find all posts by this user
Quote this message in a reply
03-17-2012, 01:35 PM
Post: #9
RE: AMIBROKER AFL CODE
0
1
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();

Get Yourself a Daily Stock Guide with
TheDailyHINT
Get Stock Update with TheTrulyRich Club
Grab FREE Stock reports from Pinoy Investor!
Visit this user's website Find all posts by this user
Quote this message in a reply
03-27-2012, 08:17 AM
Post: #10
RE: AMIBROKER AFL CODE
0
1
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
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)
 photo TheDailyHINT01_zpsae8386eb.png


Disclaimer: All trademarks and company logos appearing herein are the properties of their respective owners, and that StockMarketPILIPINAS disclaims any ownership in such third-party marks. The use of any third party trademarks and logos are for informational and visual enhancement purposes only, and does not imply nor constitute an actual endorsement by the admin of StockMarketPILIPINAS to buy or sell the said stocks. Furthermore, that the views and opinions expressed herein are solely those of the writer and not of the admin of StockMarketPILIPINAS in general. Readers discretion is advised at all times.