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

Re: More indicator questions??? Help!



PureBytes Links

Trading Reference Links

A few hints

Del the superflouis separator " ; " at the end of the var call, since MSK might
expect you to give the next call straight thereafter, but which isn't there.

Then place each varaible into their own section using () parenthisises or brackets:

CDL:=(X01)+(X02)+(X03)+(X04)+(X05)+(X06);
CDL

The parenths will force MSK to first calculate each var indepently + separately, and
only then make the next step, the later on finishing addition calc.
Basicaly too, you are then here also tempering the program's "calc speed",
which might have got your calc to go haywire, ending up in nowhereland. 

Should the above indicator fail to calc succesfully, then test each var separately
by { } commenting out the others:

CDL:=(X01) {+(X02)+(X03)+(X04)+(X05)+(X06)};
CDL

This should succesfully calc+plot the ind based on the first variable X01.

Continue the testcalc by one by one adding the next following var to the ind:

CDL:=(X01)+(X02) {+(X03)+(X04)+(X05)+(X06)};
CDL

This should succesfully calc+plot the ind now based on the first two
vars X01 and X02.

Should MSK choke on either one of the vars, then immediatly you will now
know the wrongdoer. 

Regards,
Ton Maas
ms-irb@xxxxxxxxxxxxxxxx
Dismiss the ".nospam" bit (including the dot) when replying.
Homepage  http://home.planet.nl/~anthmaas


----- Oorspronkelijk bericht ----- 
Van: "Guy Tann" <grt@xxxxxxxxxxxx>
Aan: "Metastock User Group" <metastock-list@xxxxxxxxxxxxx>
Verzonden: donderdag 28 september 2000 5:28
Onderwerp: More indicator questions??? Help!


> List,
> 
> Well, I'm still playing with MS and trying to convert some of these
> indicators.  This has gotten to be one of my longest conversions ever.
> 
> To bring everyone and anyone up to date, I resolved my problem with MS'
> basic calculations by putting in my own code to handle simple addition and
> subtraction.  Next, I ordered and installed v7.02 and didn't see any
> problems.  I also was able to validate the calculations using Ref() and they
> all work.  I decided, at that point, that since I had used individual
> indicators for each one of my Ref() calculations, that I would probably
> benefit from combining them into 2 indicators.  I copied the 18 Ref()
> variables into 2 indicators (I don't want to push it too much, so I limited
> myself to 9 variables per indicator).
> 
> I then checked out each variable again, validating them individually and
> they all work correctly.  So far, so good!
> 
> Now I'm trying to add the next bunch of variables in three different
> indicators.  MS hangs completely and I have to End Task to shut it down.  I
> thought I might have made a mistake in one of my new variables, so I copied
> them into Note Pad and deleted them all from MS.
> 
> OK, for now, here's where we stand.  First I rebooted the system to insure
> everything was fresh and clean.  Next, I added a very simple variable to one
> of my Ref() indicators.
> 
> Indicator X01X09 contains 9 Ref() variables.  They work!  Next I add a very
> simple variable to the indicator.  Before adding this variable, X01X09
> contained 9 variables (which should be substantially less than MS' 20
> variable limit for one indicator).  The system hangs completely again.  This
> variable looks like:
> CDL:= X01 + X02 + X03 + X04 + X05 + X06;
> CDL;
> 
> Now this variable is in the same indicator as X01 through X06 (but I have
> tried it in an indicator on it's own referencing those detailed variables in
> X01X09) so no indirect referencing should be necessary.
> 
> I am at a total loss.  MS hangs completely.  If I go back and bracket this
> last variable out, MS still hangs.  If I delete the code from the indicator
> and reboot the system it starts to work again, until I add my next
> indicator.  I've tried adding a different indicator and that dies as well.
> I went so far as to add a simple variable like CDL:= X01;
> CDL;
> 
> And that didn't work either.  If I didn't know better (or maybe I don't) I
> would assume I've reached MS' variable limit.
> 
> I understand the MS 20 variable limit per indicator and MS' limit of 1,000
> indicators and I am nowhere near either of these.  Are there other internal
> limits that I don't know about?  Is there an internal timeout within MS and
> if my calculations take too long, MS assumes that the system died and shuts
> itself down?  Does MS do anything internally with my indicators that could
> affect the variable count or indicator count.  The last 18 variables use the
> Ref() function.
> Tomorrow, I'm going to try deleting these Ref() variables and then try to
> add the one that's been failing.  Again, even with 40 years experience
> programming, I'm having problems that shouldn't hamper a neophyte. :)
> Thanks,
> 
> Guy
> 
> " If at first you don't succeed, skydiving is not for you."
> 
>