[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Metastockusers] Digest Number 1003



PureBytes Links

Trading Reference Links

Hi Gus,

With the MDK you need to return data within a given "start" and "end"
period.  You can't start returning values then stop for a few bars then
start again a few bars later unfortunately.

However, if you're not interested in backtesting and only want it on the
most recent set of data where it might be valid that could be done (eg your
indicator is within range in the last 8 bars then plot it, otherwise leave
it invisible).  You might be able to do this yourself with standard
Metastock language too using the following construct:

Eg.  Let's say your condition is that we want to plot a line at the low
price of the day when when have a moving average cross:

condition:=Cross(Mov(C,8,S),Mov(C,33,S));
day:=Cum(1);
lastcross:=LastValue(ValueWhen(1,condition,day));
negative:=ValueWhen(1,lastcross<day,day);
valuewanted:=ValueWhen(1,lastcross=day,L);
If(day>=lastcross,valuewanted,negative);

What does it mean:
Condition is the moving average crossover.

The day represents the bar # on the chart, which we use in subsequent
conditions.

Lastcross is the last bar # on the chart that we had a crossover

Negative is an invalid condition for the vast majority of the chart.  This
condition is use to allow us to plot a "blank" indicator across the chart.

Valuewanted is the value we want to plot (in this case, the Low on the
crossing day)

The final line tells us to plot the valuewanted only if we are beyond the
start date, and the "negative" value is used to stop the indicator plotting
before the desired date.

A neat little trick for Metastock for sure...  Only works when you just want
to see what is happening NOW - not for backtesting at all.

Cheers,
Richard Dale.
Norgate Investor Services
- Premium Quality Stock and Futures Data for
  Australian, Asian, European & US Markets -
www.premiumdata.net 
 

-----Original Message-----
From: sayakat@xxxxxxxx [mailto:sayakat@xxxxxxxx] 
Sent: Thursday, 22 January 2004 8:17 AM
To: Metastockusers@xxxxxxxxxxxxxxx
Subject: Re: [Metastockusers] Digest Number 1003


Richard or someone else with a developer's kit:

Is there a way using the developer's kit, to clear the value of an indicator
when the price goes away from the level of the indicator. Let me clarify, in
MS if you set an indicator that has direct relation to the price like
certain levels e.g. a formula that draws a line at the H,L,C of yesterday,
if the price is way away from those levels, e.g. it gaps up $2 today, then
the chart is squashed since MS tries to show all data including the
indicator's. I wanted to create a formula that shows the line only when it
is within 10c of the price, this way MS adjust to the price rather than all
the indicator on that pane. In other words, the program would have to reset
the variable and recalculate when the price comes into range.

Is this possible?

Gus




-- Metastockusers@xxxxxxxxxxxxxxx wrote:

There are 7 messages in this issue.

Topics in this digest:

      1. Re: MetaStock Developer's Kit
           From: "Jim Fox" <elnanalo@xxxxxxxxx>
      2. Import Excel Stock List into Metastock
           From: "mickie_pitts" <jaguarvp@xxxxxxxxxxxxxxxx>
      3. ###MOST USEFUL HYIP service!, Avoid Scams, make 1000%+ of your
money###
           From: Tim Wilson <hyiprofit2004@xxxxxxxxx>
      4. Re: Import Excel Stock List into Metastock
           From: Ron <ronber@xxxxxxxxxxxxx>
      5. XP and METASTOCK bug.
           From: "swing72000" <azer789@xxxxxxx>
      6. RE: XP and METASTOCK bug.
           From: "Richard Dale" <richard@xxxxxxxxxxxxxxx>
      7. Re: XP and METASTOCK bug.
           From: "Dusant" <dusant@xxxxxxxxxxxxxxxxxx>


________________________________________________________________________
________________________________________________________________________

Message: 1
   Date: Tue, 20 Jan 2004 17:51:36 -0000
   From: "Jim Fox" <elnanalo@xxxxxxxxx>
Subject: Re: MetaStock Developer's Kit

Thanks Richard,

This is what I expected.  I'm surprised that MetaStock developers 
have not improved the way parameters are optimized at this late date. 
Since the advent of low priced computing, the field of Operations 
Research has produced many algorythms to speed up the process of 
finding global optimum solutions.  Single stepping through all 
possible combinations is low tech, at best!

--Jim Fox
p.s. My remarks refer to experience with MS 7.22.


--- In Metastockusers@xxxxxxxxxxxxxxx, "Richard Dale" <richard@xxxx> 
wrote:
> Quick answer is "no".
>  
> The way that the DLL-developed indicators work is that they work on 
all the
> input data first (ie all the price/vol/oi info plus any variables 
you pass
> into them).  When you work out what to return you basically create 
a loop
> which returns a value for each day passed into the indicator.
>  
> You only get the chance to set each result "once".
>  
> Unless you can work around the optimisation capabilities of the 
system
> tester then you won't get much additional use out of the MDK, 
although it
> allows you to do some fairly creative things that the Metastock 
language
> can't do without serious workarounds.
>  
> Cheers,
> Richard Dale.
> Norgate Investor Services
> - Premium Quality Stock and Futures Data for
>   Australian, Asian, European & US Markets -
>  <http://www.premiumdata.net/> www.premiumdata.net 
>  
>   _____  
> 
> From: Jim Fox [mailto:elnanalo@x...] 
> Sent: Tuesday, 20 January 2004 4:48 PM
> To: Metastockusers@xxxxxxxxxxxxxxx
> Subject: [Metastockusers] MetaStock Developer's Kit
> 
> 
> Does the Developer's Kit interface library contain the necessary 
> hooks to grab control of the sequencing of variables?  In normal 
> usage, you specify a start, end, and step value for each parameter 
in 
> a system test optimization.  I want to be able to choose my own 
order 
> of substitution of variables(optx).  My guess is that the answer to 
> my question is NO, that the DLL's created with the kit can only act 
> on input price data streams, and pass back results of calculations 
on 
> this data - but it sure would be nice if it IS possible!
> --Jim



________________________________________________________________________
________________________________________________________________________

Message: 2
   Date: Wed, 21 Jan 2004 00:21:41 -0000
   From: "mickie_pitts" <jaguarvp@xxxxxxxxxxxxxxxx>
Subject: Import Excel Stock List into Metastock

I use the ICE Program to scan for stocks.  I then cut and paste the 
symbols from ICE to excel.  Is there a way to import the symbol list 
from Excel into a Metastock File?



________________________________________________________________________
________________________________________________________________________

Message: 3
   Date: Tue, 20 Jan 2004 18:17:14 -0800 (PST)
   From: Tim Wilson <hyiprofit2004@xxxxxxxxx>
Subject: ###MOST USEFUL HYIP service!, Avoid Scams, make 1000%+ of your
money###

Hello Investor,
 
HYIProfit is expanding service and just set up our website. If you want to
avoid scams and make 1000%+ of your money quite quickly, please visit-- 

www.hyiprofit.com
 

_________________
Tim Wilson 
Co-founder and director of communications 
HYIProfit 



















---------------------------------
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes

[This message contained attachments]



________________________________________________________________________
________________________________________________________________________

Message: 4
   Date: Tue, 20 Jan 2004 21:48:18 -0500
   From: Ron <ronber@xxxxxxxxxxxxx>
Subject: Re: Import Excel Stock List into Metastock

The list must take one of two forms -

a list of just tickers
AAPL
PEP
MSFT

or a list of in the form company name, ticker
Apple Computer,AAPL
Pepsico,PEP
Microsoft,MSFT


After creating the files you must change the extension to .sym. (from .txt)

The file must be placed in the folder that holds the Downloader (e.g. 
C:\Programs/Equis/Downloader)




mickie_pitts wrote:

>I use the ICE Program to scan for stocks.  I then cut and paste the 
>symbols from ICE to excel.  Is there a way to import the symbol list 
>from Excel into a Metastock File?
>
>
> 
>
>Yahoo! Groups Links
>
>To visit your group on the web, go to:
> http://groups.yahoo.com/group/Metastockusers/
>
>To unsubscribe from this group, send an email to:
> Metastockusers-unsubscribe@xxxxxxxxxxxxxxx
>
>Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/ 
>
>
>
>  
>




________________________________________________________________________
________________________________________________________________________

Message: 5
   Date: Wed, 21 Jan 2004 08:26:01 -0000
   From: "swing72000" <azer789@xxxxxxx>
Subject: XP and METASTOCK bug.

Hi,

I have install XP pro for 2 weeks and after I run "the explorer" ,if 
i will "open chart" (20 chart for exemple), sometimes it's ok and 
sometimes i have the message "MSWIN.EXE made an error..." and 
Metastock close and when i retry ,it's ok .
Somebody have this problem and what is the solution ?

Thanks.




________________________________________________________________________
________________________________________________________________________

Message: 6
   Date: Wed, 21 Jan 2004 19:39:27 +1100
   From: "Richard Dale" <richard@xxxxxxxxxxxxxxx>
Subject: RE: XP and METASTOCK bug.

1.    Try updating your Video Graphics drivers.
2.    If you have lots of indicators in your default template, try reducing
the number of indicators.  Metastock used to have a bug whereby if it tried
to open multiple charts, it would "reduce" the size of the chart window but
if there were too many indicators it would crash.
3.    Which version of Metastock are you running?  Metastock v7.00 and v7.01
had significant problems with Windows XP.
 
Cheers,
Richard Dale.
Norgate Investor Services
- Premium Quality Stock and Futures Data for
  Australian, Asian, European & US Markets -
 <http://www.premiumdata.net/> www.premiumdata.net 
 
 
  _____  

From: swing72000 [mailto:azer789@xxxxxxx] 
Sent: Wednesday, 21 January 2004 7:26 PM
To: Metastockusers@xxxxxxxxxxxxxxx
Subject: [Metastockusers] XP and METASTOCK bug.


Hi,

I have install XP pro for 2 weeks and after I run "the explorer" ,if 
i will "open chart" (20 chart for exemple), sometimes it's ok and 
sometimes i have the message "MSWIN.EXE made an error..." and 
Metastock close and when i retry ,it's ok .
Somebody have this problem and what is the solution ?



[This message contained attachments]



________________________________________________________________________
________________________________________________________________________

Message: 7
   Date: Wed, 21 Jan 2004 14:14:07 +0530
   From: "Dusant" <dusant@xxxxxxxxxxxxxxxxxx>
Subject: Re: XP and METASTOCK bug.

That's a unique problem being faced by you. What I suggest is that you
download all the windows patches and updates. Maybe that should help you.
Dusant
Chief Architect
www.candlestrength.com
  ----- Original Message ----- 
  From: swing72000 
  To: Metastockusers@xxxxxxxxxxxxxxx 
  Sent: Wednesday, January 21, 2004 1:56 PM
  Subject: [Metastockusers] XP and METASTOCK bug.


  Hi,

  I have install XP pro for 2 weeks and after I run "the explorer" ,if 
  i will "open chart" (20 chart for exemple), sometimes it's ok and 
  sometimes i have the message "MSWIN.EXE made an error..." and 
  Metastock close and when i retry ,it's ok .
  Somebody have this problem and what is the solution ?

  Thanks.


[This message contained attachments]



________________________________________________________________________
________________________________________________________________________




------------------------------------------------------------------------
Yahoo! Groups Links

To visit your group on the web, go to:
 http://groups.yahoo.com/group/Metastockusers/

To unsubscribe from this group, send an email to:
 Metastockusers-unsubscribe@xxxxxxxxxxxxxxx

Your use of Yahoo! Groups is subject to:
 http://docs.yahoo.com/info/terms/ 
-----------------------------------------------------------------------

________________________________________________________________
The best thing to hit the internet in years - Juno SpeedBand!
Surf the web up to FIVE TIMES FASTER!
Only $14.95/ month - visit www.juno.com to sign up today!

 

Yahoo! Groups Links

To visit your group on the web, go to:
 http://groups.yahoo.com/group/Metastockusers/

To unsubscribe from this group, send an email to:
 Metastockusers-unsubscribe@xxxxxxxxxxxxxxx

Your use of Yahoo! Groups is subject to:
 http://docs.yahoo.com/info/terms/ 




 

Yahoo! Groups Links

To visit your group on the web, go to:
 http://groups.yahoo.com/group/Metastockusers/

To unsubscribe from this group, send an email to:
 Metastockusers-unsubscribe@xxxxxxxxxxxxxxx

Your use of Yahoo! Groups is subject to:
 http://docs.yahoo.com/info/terms/