CanOz
Home runs feel good, but base hits pay bills!
- Joined
- 11 July 2006
- Posts
- 11,543
- Reactions
- 519
Can,
Have you been able to understand and convert the metastock code?
Weird uses a good style and his code is easy to follow.
"LE" = Long Entry
Substitute "Buy =" in AB
"ShE" = Short Entry
Substitute "Short =" in AB
From Doc's code:
"(2*Ref(Mov(V,13,E),-1))" converts to "(2*Ref(EMA(V,13),-1))"
"Ref(Mov(H-L,13,E),-1)" converts to "Ref(EMA(H-L,13),-1)"
It usually straightforward to convert most Metastock to AB or vice versa.
Ran some tests using weird and doc's code last night. Picked up a couple of illiquid stocks using the volume test of doc's. Doc made a comment related to the multiplier when he posted the code.
Let us know when you are ready Can and we can do some more work on this exercise. Hope your Internet conenction gets sorted out. Raise any questions that you may have along the way, as you can see there is always someone around who can help out.
Cheers.
I've got my AB setup on my lappy at work thru a flask disk (not perimitted to install programs on work PCs), but Premium Data won't install on the flash disk...so no i've got a whole new range of issues to deal with, AB and no data...nothings ever simple is it?
p1=Param("EMA Period",15,1,200,1);
p2=Param("Smoothening Period",15,1,200,1);
p3=Param("Bollinger Period",5,3,25,1);
p4=Param("Bollinger Band Width",1,0.5,3,0.1);
p5=Param("Period for Buy",9,3,50,1);
p6=Param("Period for Sell",3,3,50,1);
X=EMA(C,p1);Y=EMA(X,p2);
D=X-Y;
BBB=BBandBot(D,p3,p4);
BBT=BBandTop(D,p3,p4);
Buy=Cross(D,BBT) AND (C>=MA(C,p5));
Sell=Cross(BBB,D) AND (C<=MA(C,p6));
Buy=ExRem(Buy,Sell);
Sell=ExRem(Sell,Buy);
shape=Buy*shapeUpArrow+Sell*shapeDownArrow;
PlotShapes(shape,IIf(Buy,colorBrightGreen,colorRed),0,IIf(Buy,L,H));
G'day all.
This morning i started reading Howard Bandy's "Quantitative Trading Systems".
This was just released this year i believe. So far its very indepth and covering systems development in logical and more importantly, undetstandable steps. All, with AmiBroker
As far as the testing goes, i've tested Lesms code several times on my ASX data. Ron1n has tested it on ASX200. I tried to filter to this but the BT won't pick up anything, so i suspect its the way i have it setup....my data has warrants and options as well.
One thing i noticed about the system so far is that the MAXDD seemed high, to me anyway.
I can't post the report as i don't have MS word at home.
I might recap where we are at today or tomorrow, following along the lines of Bandy's suggested path for those of you that are interested.
After that i will most likely pick this up a bit as i make my way through his book and while i'm on my holidays starting the 18th of June.
If someone else could post a few back tests of Lesms code? Has anyone tried an different exit yet?
Another question, do the code settings always override the backtest settings?
Cheers,
Another question, do the code settings always override the backtest settings?
Can,
Wats a high maxDD to you?
>30% ??
Depends on the profits and trading timeframe i guess.
Also, you dont have MS word at home?
Are you serious??
Thats just weird....
Thanks for the title.
Its on the list.
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?