Australian (ASX) Stock Market Forum

GP_Trendlines AmiBroker Plugin and AFL Files

Dear GP

your posts are a great help...

I am trying to convert an AFL into a DLL File using VC++, I have been successfully do the same except for the below mentioned two codes which I am not getting. Will be very greatfull to you if you Can kindly help with a code to get these two.



1. PreviousDayClose = TimeFrameGetPrice( "C", inDaily, -1 ); // Function in AFL

2. NewDay = Day()!= Ref(Day(), -1);
FDH = HHV( H, NewDay);

Thankyou & Best Regards

VC++ Codes..

AmiVar args7[3];
args7[0].type=VAR_FLOAT;
args7[0].val=sa.Close;
args7[1].type=VAR_STRING;
args7[1].string="inDaily" ;
args7[2].type=VAR_FLOAT;
args7[2].val= -1;


AmiVar PDC;

PDC=gSite.CallFunction("TimeFrameGetPrice",3,args7);
gSite.SetVariable("PDC", PDC);

Getting ERROR ::

How to solve this problem.

Today = gSite.CallFunction("day",0,NULL);



AmiVar ref_Today=gSite.AllocArrayResult();;
ref_Today=VRef(-1,Today.array);
gSite.SetVariable("ref_Today",ref_Today);

BOOL NewD ;
NewD = Today.array != ref_Today.array;
FDH1 = Vhhv(sa.High, NewD);
gSite.SetVariable("FDH1", FDH1);

Getting ERROR
 
Can any 1 code this AFL....this is the best AFL i have ever seen....
 

Attachments

  • southwind.png
    southwind.png
    52 KB · Views: 82
best performing bro....this afl is developed by a Bangladeshi guy.....he developed it by spending more than 2 years.....u ppl r not suppose to have this afl...thats why i was asking can any1 code this afl or not.....
 
i have some very good afl......this is 1 of them....
 

Attachments

  • Pattern Recognition with Shading.afl
    3.3 KB · Views: 206
Can any 1 code this AFL....this is the best AFL i have ever seen....

Dear gorilabd, i`m from Dhaka. An amibroker fan, even do blog on amibroker : http://tatunnel.blogspot.com. Aneway, i was very much eager to have a glance on Southbridge. Thnks for the post. Dear, would you tell me something about its performance? What are the main sections, southwind has used in the afl?
 
Anyone know if there's a sample AFL for automated trendlines? I'm new to Amibroker and would like to get up to speed quickly. The userguide is ok for introduction but not very helpful in showing how to do automated trendlines.
 
WiseTrader has Toolbox for sale at US$299, have you tried the Toolbox? If yes, any comments?
Just seen your question and no I haven't tried the Toolbox though neural networks looks like an interesting path to follow.
 
Dear gorilabd, i`m from Dhaka. An amibroker fan, even do blog on amibroker : http://tatunnel.blogspot.com. Aneway, i was very much eager to have a glance on Southbridge. Thnks for the post. Dear, would you tell me something about its performance? What are the main sections, southwind has used in the afl?



Southbreeze afl is an outstanding creation of the bangladeshi afl coder Southwind....this person also developed The Foundation by Southwind v-13.00 Int which is very popular all over the world....though Zultan renamed it by Zultan foundation and flashed it in such a way that he developed it...later he agreed that he did nothing in "The Foundation by Southwind v-13.00 Int"....Southbreeze afl is very complicated and works best as far as i know...some 1 posted Southbreeze in wisestocktrader.com and many other site but that afl is nothing but a modified version of pathfinder....this afl is not yet flashed out...because there r ppl who may rename it using their name and and take credit....
 
GP_Trendlines AmiBroker Plugin and AFL Files: issues with AB 5.40

Hello there,

has someone tried the GP_Trendline code under AB 5.40.3 ???

I had to comment it out, since it seems crashing AB. The culprit seems to be the function call, GP_DrawTrendLines(...). Up to AB 5.30.5 it worked perfectly well.
Maybe something changed in the parameter passing, but not really aware of.

GreatPig, if you still read the forum, could, you please check it ?? (Then there is a wish: have a 64 bits DLL, but it is just a wish :) )

Thanks & Regards

Marco
 
Here is the trend line drawing plugin for AmiBroker and AFL code to use it. Instructions are included in a PDF file as well as at the start of each AFL file.

While I think it works reasonably well now (although the backtester is pretty slow), I'll probably keep working on it and updating it here occasionally.

You are free to use it for personal, non-commercial use, and all use is at your own risk. While I haven't had any problems yet, I can't guarantee that there aren't any bugs in the DLL.

Any feedback welcome.

Cheers,
GP
ITS NOT WOTKING FOR AMIBROKER 6.002 VERSION---PLEASE PROVIDE AN UPDATED VERSION
 
The original poster put this on line almost 12 years ago. He does not appear to have posted on the forum in many, many years. The last post on this thread was almost 4 years ago.

If you are looking for trendlines in AmiBroker try the user library or the official knowledge base or the Traders Tips section. Some examples can be found,

http://www.amibroker.com/members/library/detail.php?id=3

http://www.amibroker.com/members/library/formula.php?id=1349

http://www.amibroker.com/kb/index.php?s=regression

http://www.amibroker.com/members/traders/11-2006.html

Or you can purchase a package of tools that appears to include a trendline scan (and I assume you would receive much needed tech support with your purchase),
http://www.wisetradertoolbox.com/trendline-scanner.html

Good luck.
 
Top