Quantcast MetaStock Exploration question - Aussie Stock Forums

Results 1 to 8 of 8
  1. #1

    Default MetaStock Exploration question

    Hi,
    Can someone help me with an exploration for finding a stochastics crossover.
    eg when the %K line crosses the %D line (not looking for when it cross the 80 or 20).
    Something along the lines of when the %K equals the %D, or something to do with the "cross" function.
    I've been trying to work it out myself and have seen "cross" used in other explorations but I dont know how to "cross" the K and D.

    Also, can someone tell me how to save the settings to display a certain time period (say 6 months) but load the whole lot of data. I know how to change it in the chart when its open already, but i can't save it so it always opens to display that time period first up. It will save alot of time when doing quick eyeball scans.

    cheers

  2. #2

    Default Re: MetaStock Exploration question

    Have any of you code gurus got any ideas?
    It would really make my life easier...

  3. #3

    Smile Re: MetaStock Exploration question

    Quote Originally Posted by kingie_d View Post
    Hi,
    Can someone help me with an exploration for finding a stochastics crossover.
    eg when the %K line crosses the %D line (not looking for when it cross the 80 or 20).
    Something along the lines of when the %K equals the %D, or something to do with the "cross" function.
    I've been trying to work it out myself and have seen "cross" used in other explorations but I dont know how to "cross" the K and D.

    Also, can someone tell me how to save the settings to display a certain time period (say 6 months) but load the whole lot of data. I know how to change it in the chart when its open already, but i can't save it so it always opens to display that time period first up. It will save alot of time when doing quick eyeball scans.

    cheers
    =====



    Hi kingie,

    First, set one chart up exactly as you need it, then save it as a
    template ..... and be sure to save it as the default template as well,
    as that is what makes it opens each chart in the desired format,
    every time .....

    As for the formulas ..... for a mountain of stuff, just go to:

    http://www.google.com.au/search?q=metastock+formulas&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-GBfficial&client=firefox-a

    happy days

    paul



    =====

  4. #4

    Default Re: MetaStock Exploration question

    I reckon an even better resource than Google for MS formulas is the MS User Manual that comes with the application! Read the instructions from cover to cover, then read it again. Then, download the free Equis Formula Primer and work through the exercises contained therein. In no time, you will be your own code guru!

    In the mean time, try this; in the explorer filter, add the following code:

    Code:
    Kprd:=5;
    Kslow:=3;
    Dprd:=3;
    
    K:=Stoch(Kprd,Kslow);
    D:=Mov(K,Dprd,S);
    
    Cross(K,D);
    Make sure to load at least 100 bars of data when you run this exploration (or more, just to be on the safe side)

    Hope this helps.

    wabbit

  5. #5

    Default Re: MetaStock Exploration question

    Hi guys,
    Thanks for the replies. I read through the Formula Primer and figured out how to find the stoch cross. But...
    I am now trying to make up the system tester and I've put in Long Buy and Short Sell orders which are working as advertised in the tester.
    However, for the exits, I am trying to use a trailing stop of 1 ATR away from the highest low (for longs) and lowest high (for shorts).
    Here is the formula for the ATR BAND (light blue bands in pic) indicator which gives me the bands so I can manually trail the stop:

    stdha := Mov(H,1,E)+1*(ATR(10));
    stdla := Mov(L,1,E)-1*(ATR(10));
    stdha;
    stdla

    So using those bands, I am trying to set my sell order formula (for longs) and buy to cover shorts (for shorts).

    I'll use BOL with a short order as an example
    If (in real life) I was to set an auto stop at the band, and trail it down (but never up)as the days go, then I would be stopped out if on a day where the high was higher than the band/stop.
    So I figure that to code this into the system tester I would use the formula which is in the pic:
    H>LLV((Mov(H,1,E)+1*(ATR(10))),5)

    eg. close position if the HIGH is greater than the LOWEST LOW VALUE of "THE UPPER ATR BAND" of the last 5 days.

    I used 5 days because I wasn't sure how to make it start trailing from when the position was opened.

    But as you can see in these pics, a short position was opened the day after the cross (as per the short formula) - BUT - the system closed the position the next day (6/22/2007) which it should only do if there was a trigger the day before.
    You can see in the pic that the high is way below the upper atr band (and even the lowest low of that band for the last 5 days) so why I ask you, did it trigger to close the position.

    Can someone help me to rearrange my close position formula to match the intended purpose. I look at the formula I have worked out for it, and it seems to make sense to me! (except maybe the five day thing - if anyone can help to make it start when the position is opened then that would be great too)
    Attached Images

  6. #6

    Default Re: MetaStock Exploration question

    Here is the system tester pics
    Attached Images

  7. #7

    Default Re: MetaStock Exploration question

    kingie,

    Swing past the Equis Forum at http://forum.equis.com and find a copy of the Forum.dll (it contains a really useful (but generically programmed) latch function) and then visit Richard Dale's site at http://www.tradernexus.com/ and grab a copy of his Advanced Trailing Stop.

    Both of these tools can help alleviate the troubles of trying to "bend" MS to do things it doesn't do naturally.


    wabbit

  8. #8

    Default Re: MetaStock Exploration question

    Cheers mate

Similar Threads

  1. MetaStock vs. AmiBroker
    By nizar in forum Software and Data
    Replies: 39
    Last Post: 10th-September-2008, 08:28 AM
  2. Trading question
    By ans25 in forum Beginner's Lounge
    Replies: 10
    Last Post: 30th-April-2008, 01:03 PM
  3. Metastock Question
    By Chorlton in forum Software and Data
    Replies: 16
    Last Post: 27th-September-2007, 02:40 PM
  4. Stupid Question number 3057
    By alankew in forum Beginner's Lounge
    Replies: 3
    Last Post: 31st-October-2006, 08:23 PM
  5. Question and Answer Game!
    By Jesse Livermore in forum General Chat
    Replies: 21
    Last Post: 6th-August-2005, 08:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Aussie Stock Forums