Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

  • Welcome Guests

    Welcome. You are currently viewing the forum as a guest which does not give you access to all the great features at Traders Laboratory such as interacting with members, access to all forums, downloading attachments, and eligibility to win free giveaways. Registration is fast, simple and absolutely free. Create a FREE Traders Laboratory account here.

topbadbady

Howto Remove Spkies in MC

Recommended Posts

I'm backtest EE Universial Clone in Multicharts 5.5.

It seems profitable. but my datafeed contained some spkies, which I don't know how to remove them automatically. Does multicharts provide some functions just like Quotetracker did (ALT+CTRL+H/L).

 

attachment.php?attachmentid=16795&stc=1&d=1261524212

spkies.JPG.627db5771bd242a5f2035e42626a3a21.JPG

Share this post


Link to post
Share on other sites
Does multicharts provide some functions just like Quotetracker did (ALT+CTRL+H/L).

 

It's been a few versions back since I've done this but after you edit as Tams mentioned, you should clear cache (also from QuoteManager) then reload the symbol from the View menu.

Edited by ochie

Share this post


Link to post
Share on other sites

No way to remove those spkies automatically in MC? I just dont want to review 10 years 1 minute data all by hand..... that's the worst choice.

 

why TSsupport team don't provide us this feature?

 

I have to write some python scripts to review data file before import into MC database...

Share this post


Link to post
Share on other sites

I write a python script to remove those spikes before import data into MC.

 

In my case, I use MAEnvelope(5,0.01) and MAEnvelope(5,0.02) filter out spikes and then replaced those spike high/low with nearby bar's high/low. In most cases, MAE(5,0.01) already fulfil my needs. but market volatility changes from time to time. so MAE(5,0.02) is needed when market volatility is too high. If somebody wants to use it on their own case, u'd better change it according to your own market volatility.

 

This script works in most case. but still have a lot of room to improve.

 

Btw, This script can process very large data file, let's say 10G or even bigger. what it only takes is time. but it's very fast though. I built up a datafile which contained 40 years 1 minute data. it takes me 160 seconds to revise.

 

 

Here are some snaps.

attachment.php?attachmentid=16820&stc=1&d=1261602470

 

If highest or lowest price is the close or open price. this script just ignore it.

 

attachment.php?attachmentid=16824&stc=1&d=1261602470

5aa70f88afdfa_2009-12-23142446.thumb.png.18b64b6ac8e0c26dc7c90a8c0bbd72b9.png

5aa70f88b79f6_2009-12-23142711.thumb.png.3591d5ecdfc7734cd4ac0a5f4e740fe6.png

5aa70f88c1564_2009-12-23142838.thumb.png.b849635068232c9d2cf17c87e5a5e1b6.png

5aa70f88ceb15_2009-12-23142924.thumb.png.c0a41d8270f8f9a62fe1a2a33f22ac82.png

5aa70f88d6efa_2009-12-23142956.thumb.png.1ef6a7c72b778520a7411454c77eab22.png

5aa70f88df6f3_2009-12-23143217.thumb.png.0498dbd17c467692e2273f988bccf49f.png

5aa70f88e876f_2009-12-23152943.thumb.png.adc4fd6a195413af414b366c3e6f90c7.png

5aa70f88ef463_2009-12-23153001.thumb.png.42a82eb3d94665638c4a722d1089f6fb.png

5aa70f8900686_2009-12-23153036.png.3911fb4d1c016c700df95f2f2b6abe19.png

5aa70f8909be5_2009-12-23153121.png.e17cc91c01bcbbabf0444490f5dabe10.png

removespikes.rar

Edited by topbadbady

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.