PureBytes Links
Trading Reference Links
|
Hi Folks,
Here is my dilemma.
I have been tinkling with a system, which is basically a cross over of
Emas, but sometimes the whip saws kill me. My terminology and system
is as follows. I use 10 minute charts for intra-day.
Small = 5;
Large = 75;
Diff = EMA(c,small)- EMA(c,large);
displacement = optimize("displacement",3,1,20,1);
// this is the value that Diff must have attained to save me from
whipsaws.
since = optimize("since",4,1,5,1);
// this is the number of 10 minute bars since the cross over to save
whip saw.
I have been trying various buys and sells without success as follows.
Buy[0]=0;
Buy = BarsSince(Cross(small,large)) > since AND Diff > displacement ;
Sell= BarsSince(Cross(large,small)) > since AND Diff < displacement ;
Short=Sell;
Cover=Buy;
Buy=ExRem(Buy,Sell);
Sell=ExRem(Sell,Buy);
NOW :
These buys and sells don't work. I do get buys and sells even before
the crossover actually happens. I know i am wrong somewhere.
Would some kind soul put in the right lines for me.
I want the emas cross each other first and then travel the optimized
no. of bars remaining crossed and also the optimized diff must also be
attained before any whip saw so that I enter into the trade.
If the displacement or diff criterion is NOT met the cross over
should be ignored as whip saw and we should go on looking for another
cross over and remain in the previous trade.
Goes without saying that at each signal, i would reverse my position.
If i was long by 100 units, i would short 200 and vice versa.
Kindly do suggest the values range for optimization of the
displacement and diff variables keeping in mind that I use 10 minute
charts and live in a pretty volatile market and whipsaws are pretty
common. My system does give me fair return but the usual winning to
loosing trade ratio is 1:4.
I can also provide the data and my back test results
Thanks in anticipation and lots of regards.
drk_411
------------------------ Yahoo! Groups Sponsor --------------------~-->
Transfer from your equities account.
Receive up to $1,000 from GFT. Click here to learn more.
http://us.click.yahoo.com/aZttyC/X_xQAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~->
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|