Hi Allan --
To my thinking, Norgate Premium Data is the gold standard.
If you have not already read it, my "Introduction to AmiBroker" describes in detail how to set up both free and subscription data services for AmiBroker, including Premium Data. You can download a free copy of the book from the book's website. Start here:
http://www.introductiontoamibroker.com/
Best regards,
Howard
Hi Frank --
If there is no statement "OptimizerSetEngine", then the search is exhaustive.
The difference in run count may be due to rounding error in adding floating point values.
Best regards,
Howard
I'm trying to work out the best way to get started without running into problems down the track.
.
Howard is correct. It is a result of floating point arithmetic as documented by AmiBroker here http://www.amibroker.com/kb/2010/07/20/about-floating-point-arithmetic/
Rather use
Code:N = Optimize( "N", 3, 1, 7, 1 ); HoldDays = Optimize( "HoldDays", 7, 1, 7, 1 ); ProfitTarget = Optimize( "ProfitTarget", 4, 2, 40, 2 ) / 10;
or as seen in the link
Code:N = Optimize( "N", 3, 1, 7, 1 ); HoldDays = Optimize( "HoldDays", 7, 1, 7, 1 ); step = 0.2; ProfitTarget = Optimize( "ProfitTarget", 0.4, 0.2, 4 + step/2, step );
That's one issue crossed off the list!
Norgate PremiumData does all that for you. It is a widely used quality EOD vendor with low monthly fees. Can't do much wrong with them.
Hi Allan --
Trash is giving good advice.
I don't think there is much value in buying historical data and then trying to keep that database maintained from some free source. Duplicate databases quickly get out of sync and are impossible to get resynchronized.
Most subscription (not free) vendors of data, including Norgate Premium Data, store the data they provide in a database that they maintain. After buying a package of historical data from them, you would not be able to add daily updates yourself. You need their maintenance programs, which come with a subscription to their service, to do that.
If you are thinking of updating using Yahoo, you might as well start with Yahoo and AmiQuote. If / when you later switch to Norgate, or even some other free vendor, do not merge databases, if it is even possible, without verifying in detail that data is reported and stored consistently. Watch for things like handling of distributions, scaling of the volume field, special characters in symbols (such as ^$-.), etc.
Best,
Howard
FWIW as soon as I installed Ami I ran in to problems. I then added to them by postponing subscribing to Norgate, which I think was time wasted. Ami throws enough of a learning curve without adding to it by spending additional time on what turns out to be a dead end, dealing with data issues. You can buy a chunk of data from Norgate without committing to a monthly contract. That's my hindsight from where I'm sitting, just a personal opinion.
Hi
Attempting to set up a shorting strategy and struggling. So backtrack and revert to Mean Reversion Trading Strategies . 9.1 3 Day High Low long strategy from MRTS works fine
BuyPrice = SellPrice = Close;
Buy = FilterRule1 AND EntryRule1 AND EntryRule2;
Sell = ExitRule1;
But then 9.2 short strategy with code
ShortPrice = CoverPrice = Close;
Short = FilterRule1 AND EntryRule1 AND EntryRule2;
Cover = ExitRule1;
produces error message 'Error 701. Missing buy/sell variable assignments'. (which was the same stumbling block I'd hit in my earlier attempts).
Help please? Thanks in anticipation...
Again another user error.
Most probable solution ...
Either go to backtest settings and set "Positions" to just "Short" from currently set "Long and short".
Or a more flexible way ...
Keep Long and Short in backtest settings
and in code add line
Buy = Sell = 0;
Next one please...
BTW, this one goes on the list of the most ridiculous sentences of year 2014. Congratulations because right now you are favorite of winning the whole award -> a big cup of milk.I don't appreciate the aggression, which is why you're on my list of Amibroker issues.
Help Needed to access exploration result columns in rt scan.
Hi all
So I have exploration results from an EOD trading system that has 2 columns, Ticker and buyprice. The buyprice is below the EOD close price(really like a limit order). The exploration may have anything from 1 result to 100. I have added these results to a watchlist.
The next trading morning I open IB live data feed and I want to continually scan this watchlist for the current ask to trade at or below the buyprice.
If current ask for ticker below buyprice then buy.
What's the coding for my rt formula to loop through the watchlist and access the second column of exploration called buyprice.
I just need coding for this part of formula all the rest of coding with IB controller I'm right with at this stage.
Thanks heaps for any help anyone may be able to give.
Cheers
wlnum = 0; // your watchlist number
if ( Status("actionex") == actionExplore and InWatchlist( wlnum ) )
{
// your exploration code here
Filter = ....
}
Either save your exploration as project file (.apx extension) after setting Apply to: to Filter -> including your watchlist (side note, project files save all backtest and toolbar settings plus your entire AFL code)
or/and
In your exploration block you add InWatchlist( wlnum )
Ie.
Code:wlnum = 0; // your watchlist number if ( Status("actionex") == actionExplore and InWatchlist( wlnum ) ) { // your exploration code here Filter = .... }
Howard Bandy has written books about trading systems and there are codes at the AFL online library.What would be the best approach for people new to system trading?
Type into the search box on this forum and you could find related information. Remember that prices go up, down and sideways.Have read Nick Radge's Unholy Grail and been looking for TechTrader's trading system without any luck.
Contemplating to join The Chartist but read somewhere that a decent trading system has to fit the trader's own
Hi All,
I realised there is no in-built system in AB to learn and practice with.
Problem is that I have no programming background and AFL seems a little bit daunting for a newbie.
What would be the best approach for people new to system trading?
Any good books to read?
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?