I'm trying to do a backtest on particular sectors in the US stocks database. For some reason when i specify the sector, it just tells me there are no symbols to test, even if i specify the NYSE, or the S&P500, etc...
Can, sectors things like 'health care', ' utilities' and the like.
NYSE is an exchange, S&P500 is an index .....
Maybe you have a db config issue some other settings problem.
There should be a drop down in the selection box showing what sectors you can pick,
Try removing the Sector filter.
We are no longer populating the 2-level Sectors/Industries in AmiBroker. Instead, the GICS and ICB fields are now being populated to all 4 levels.
If I was going to learn a programming language, such as C, C#, C++ etc, which would best compliment .AFL ?
I thought I read somewhere that .afl was most like C++, but not sure where I read that.
Cheers.
So although it looks like C it is way more easy than C. What is single operator in AFL (like array addition) involves many line of code in C plus memory allocation/deallocation (and keeping track on all that). SIMPLICITY OF USE plus compactness of code is the paramount design decision. That's why arrays in AFL are automatically managed, have size that automatically refers to "visible" area, so you can simply add arrays with single + operator. With general purpose C language with "normal" arrays you would need to manage memory for arrays by yourself, alignment (if size differs which elements to add), looping (you need to perform calculations on individual elements of array). (maybe you don't know but in C and there are no built-in dynamic arrays, only fixed compile-time size is supported, and dynamic array is implemented via pointers and explicit memory allocation malloc/free)
As for "matrix" operations - that this does not belong to the definition of any general purpose language.
There are no "matrix" operations in any popular general purpose language C/C++/Java/JScript/Basic/Pascal. In C/C++ even scalar trigonometric operations like sin( x) or string concatenation are NOT part of the language.
The language itself defines:
a) syntax
b) basic arithmetic operators + precedence working on primitive types only (scalar integer and/or float)
c) flow control (conditional execution, loops)
d) structural concepts (variables/functions/procedures/structures/objects)
e) some miscellaneous stuff like run-time type info, exception handling etc.
And that's it.
Anything more is supplied by LIBRARIES. In C there is a library for basic string manipulation (such as concatenation - strcat) or floating point. The same with any high-level stuff like matrices - this is the area which is implemented by EXTERNAL libraries (not part of the language).
Libraries in AFL can be provided by:
a) #include - the AFL code implementing features via functions
b) AmiBroker Development Kit - allowing to write extensions (functions) as a DLL in any compiled language.
c) JScript/VBScript d) any external COM object http://www.amibroker.com/guide/a_aflcom.html
This covers any imaginable application and any imaginable need you may have.
.
.
.
Best regards,
Tomasz Janeczko
amibroker.com
AFL has syntax similar to C language and JScript. On top of that it adds native array operations.
If I was going to learn a programming language, such as C, C#, C++ etc, which would best compliment .AFL ?
I thought I read somewhere that .afl was most like C++, but not sure where I read that.
Cheers.
Thank you Howard, much appreciated.
When is your next book due for release?
Abyss
I feel that I am in the wrong place, I need assistance in obtaining the code for the attachment. I am an AB user. I have the above indicator, that is the top chart. I am looking for the bottom chart indicator. The above indicator "EquiVolume" can be obtained from the AB site, it was written by a A. Pipa.
Thanks in advance,
Ian
Hello,
Can anyone point me in the right direction here please;
I have set up an IB acct and connected to their data via amibroker ( very impressed with how easy that was actually, a credit to AB ).
I can access US tickers easily when I type them in, but how do I connect to ASX tickers?
I have subscribed to ASX data ( at least I went through the motions to the best of my knowledge at the time).
Also, do I have to manually input every ticker again and set up watch lists that I want to monitor when I log in to IBs data?
Thanks for your time.
yrange = Status("axismaxy") - Status("Axisminy");
prange = Status("pxchartbottom") - Status("pxcharttop");
toplabelmargin = 0;
bottomlabelmargin = 0;
px = 25;
ypos3 = (px*yrange)/prange + High[i] + (toplabelmargin*yrange)/prange;
Hi,
Any ideas whats wrong with this buy/sell code, It buys and sells just fine without the "< BuyLevel & > SellLevel"
statements added at the cross of "value 4" and "trigger", though not at the level required, but the system wont buy or sell with those statements added. I've tried different variations but to no avail.
Your help would be much appreciated thanks!
///////
Value4 = 2 * ( WMA( Value3, WMA_Length ) - 0.5 );
Trigger = Ref( Value4, -1 );
BuyLevel = Optimize ("BuyLevel", -1.0, -1.0, 0, 0.1 );
SellLevel = Optimize ("SellLevel", 0.8, 0, 1.0, 0.1 );
BuySignal = Cross(Value4, Trigger);
SellSignal = Cross(Trigger,Value4);
Buy = BuySignal < BuyLevel;
Sell = SellSignal > SellLevel;
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?