wayneL
VIVA LA LIBERTAD, CARAJO!
- Joined
- 9 July 2004
- Posts
- 25,751
- Reactions
- 12,937
I use 1mJust wondering what base time interval others are using for real time database ?
I think it's the tick backfills from IB that are mucking my database up
I use 1mJust wondering what base time interval others are using for real time database ?
I think it's the tick backfills from IB that are mucking my database up
Or, is the signal being generated from the day before signal, and using next day to buy/sell ?
Now trading EOD, you could only buy/sell next day based on the signal during the scan. Is this correct ?
Or, is the signal being generated from the day before signal, and using next day to buy/sell ?
You are correct. And Kolonel is right, you need to have trade delays set for buy and sell (assuming a long only system) for 1 period. Within the backtester you should make sure that you are running in 'daily' mode, then 1 period is a day.
Goal is to have a system up and running by end of financial year, and then hit the hard stuff.....real money
The walk forward is still in the beta version I believe. I look forward to seeing how it is implemented but I steer clear of beta versions.The walk forward optimisation capabilities of Amibroker released a few weeks ago take system testing to a whole new level.
The walk forward is still in the beta version I believe. I look forward to seeing how it is implemented but I steer clear of beta versions.
I just ordered Howard's book and, based on Howard's contributions to this forum, look forward to reading it.
The walk forward is still in the beta version I believe. I look forward to seeing how it is implemented but I steer clear of beta versions.
I just ordered Howard's book and, based on Howard's contributions to this forum, look forward to reading it.
stevo
Calling all AB / TradeSim users
Hello All,
I'm currently experiencing some serious problems with regard to exporting trades from AB into TradeSim.
The problem I have is that for some reason not all trades are being exported. I believe this is the case because when I run a simple exploration in AB, I receive many more trade results.
I have mananged to locate 2 versions of the code which is required for exporting the tradefile from AB into a format which can be loaded directly into TradeSim.
One version of the code (which I have been using for many months now) only caters for Long Trades, whilst the other version (which is now available on another forum) caters for both Long / Short trades. However, regardless of which version I use, the number of trade results which are available in TradeSim vary greatly than if I perform a simple exploration in AB. Even the results obtained using the 2 versions of the code also varies!!!!
Consequently, I'm now really stuck and don't know how to proceed as I now longer have any confidence in getting the correct number trades into TradeSim.
As an example, if you perform a simple explorationin AB using the following basic system (with the following parameters), I receive a total of 2335 rows / trades.
If you then export the results of this system using either of the versions of the code mentioned above, the number of trades found in the database drops significantly, which means that any further testing I do in TradeSim is inaccurate.
If anyone can help me out here I would really be grateful, as I no longer know how to proceed. In addition all the development / testing which I have completed to date, now seems a waste of time!!! :-(
Many Thanks in advance,
Confused Chorlton
AB Parameters used:
Exchange: ASX200
Timeframe: Daily
Date Range: 01/01/2005 to 31/12/2007
Simple System
/// ***** PARAMETERS ***** ///
SetTradeDelays(1, 0, 0, 0);
////////// BUY CONDITIONS //////////
Buy = L > Ref(H,-1) AND C>O AND Volume > Ref(Volume,-1) AND C > EMA(C,30);
BuyPrice = Open;
////////// SELL CONDITIONS //////////
Initial = Close - (0.03*Close);
stop[0] = Close[0];
for( i = 1 ; i < BarCount; i++)
{
if( Close > stop[i-1])
{
stop = Max( initial, stop[i-1] );
}
else { stop = initial; }
}
Sell = L <=Ref(stop,-1) OR (DateNum() == 1041231); // close long positions on 31 Dec 2004 if stop not already activated;
SellPrice = Ref(stop,-1);
Buy = ExRem( Buy, Sell );
Sell = ExRem( Sell, Buy );
Plot( C, " Close Price", colorGrey50, styleBar );
PlotShapes( shapeUpArrow*Buy, colorGreen, 0, L, -12 );
PlotShapes( shapeDownArrow*Sell, colorRed, 0, H, -12 );
//// ********* EXPLORATION ********* ////
Buy = Ref(Buy,-1);
Filter =Buy;
dt = DateTime();
EntryPrice = ValueWhen( Buy, BuyPrice);
AddColumn( EntryPrice, "EntryPrice", 1.3 );
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.