@Warr87 I was wondering what index filter you settled on?Index is up
Index is up and I have 6 buy signals. Orders placed. What a good feeling.
Fingers are crossed that no whipasaw is coming.
I am also making headway with putting a strat into python. I will post some info later on this, and my buys.
At the moment I don't have a sector filter (and i'm not sure how to implement one too).
_SECTION_BEGIN("ASX200 Sector ID");
{
// Map the sector ID for this symbol to an index that represents the sector
SectorIndexID = sectorID( ); // 1 Retrieves current stock sector name, 0 retrieves number
switch(SectorIndexID)
{
case 1: tkSector200 = "$XEJ"; break; // ASX 200 Energy
case 2: tkSector200 = "$XMJ"; break; // ASX 200 Materials
case 3: tkSector200 = "$XNJ"; break; // Industrials
case 4: tkSector200 = "$XDJ"; break; // Consumer Discretionary
case 5: tkSector200 = "$XSJ"; break; // Consumer Staples
case 6: tkSector200 = "$XHJ"; break; // Health Care
case 7: tkSector200 = "$XFJ"; break; // Financials
case 8: tkSector200 = "$XIJ"; break; // Information Technology
case 9: tkSector200 = "$XTJ"; break; // Communication Services
case 10: tkSector200 = "$XUJ"; break; // Utilities
case 11: tkSector200 = "$XRJ"; break; // Real Estate
default: tkSector200 = "$XAO"; break;
}
SectorIndex = Foreign(tkSector200,"C"); // Brings in sector index name XEJ, XMJ etc
/*
SectorIndexImported = ****** add your Filter test here *****;
*/
_SECTION_END();
}
Oh, I also forgot one thing from above with python. It's relatively easier to do machine learning in python too, making strategy research and exploration easy. I realise not everyone wants to run multiple strategies that are automated, or run ML on financial data, but for those who are interested AB won't cut it.
I just ran my code against my new Norgate database in AB. It only brought up 1 buy instead of the 6 it should have. Any ideas? I changed my ticker for index to $XAO.au as this is the new convention, but I'm not sure what else I may be missing. Ideas? @Skate
Thanks Peter2. I noticed that after I had posted lol.
@Skate that didn't work. I did 'backtest' and that enters 6 positions so some how my explore code is now not correct. I will have to have a look at it later and see where I went wrong (or start again as its pretty sloppy).
I did 'backtest' and that enters 6 positions so some how my explore code is now not correct.
@Warr87 I wish to make a few comments for others reading the banter between you & @Newt about Python & AI.
Technical analysis
For a start technical analysis isn’t becoming obsolete for the average punter & Amibroker is not obsolete when compared to advancement in technology. Amibroker uses a “Decision Tree process” to find signals whereas AI uses the "Machine Learning process" to find signals. Trading is not an exact science but a mathematics game, a game of probabilities & not percentages. AI is great at finding static positions (see definition below) whereas the market are very fluid driven by rational people making irrational decisions & that's why there isn't mass take up at present. A supercomputer using AI would have no idea what my the next word is going to be let alone what I am thinking.
Systematic trading
Let's compare - A Trading strategy that uses a “Decision Tree process” finds conditions that have been pre-programmed into code, whereas AI find conditions then goes about looking for the reason that preceded that condition. (Simple difference but it's more than that)
AI advancements in medical research
"AI" is a godsend in medical research, it's the equivalent of a medical breakthrough for that industry.
Definition
Static positions for example can be a cancer cell or comparing genomes. Fluid position are constantly changing (decisions made by emotions)
Quoting Dr Howard Bandy
“The business of trading is changing with astonishing speed. It is now about applied mathematics, machine learning, Bayesian statistics. Traders without skills in math, programming, statistical analysis, and scientifically developed trading techniques are at a severe disadvantage"
Quoting Dr Tomasz Janeczko (Founder of Amibroker)
“In my opinion throwing more languages (like Python) into the mix just makes things harder, not easier, and is not really necessary as everything is doable within AmiBroker itself, but Howard Bandy and others have other opinion. People have tendency to think in terms "more = better". But the truth is that in programming less is more. And less is better. So don't add complexity when it is not needed”
Summary
Traditional trading system platforms as AmiBroker, TradeStation & NinjaTrader uses a decision tree model. AmiBroker, TradeStation & NinjaTrader the traditional platforms apply an indicator, then see what happens whereas Machine learning such Python identifies something important then see what came before it.
Skate.
Hello and welcome to Aussie Stock Forums!
To gain full access you must register. Registration is free and takes only a few seconds to complete.
Already a member? Log in here.