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

Re: [EquisMetaStock Group] Problems with this code



PureBytes Links

Trading Reference Links

Hi, you are using the ROC as a variable, but the MS detect it as a built in function and waiting for the completion of the ROC function, either use deferent variable in two locations for the ROC or add any thing to it, i.e. ROCA.
  your code will look like attached file.
  thanks
  jao...

Paul Harris <paul_vicmar@xxxxxxxxxxx> wrote:
          Thanxs Roy
Changed to Rocd, and no problems.
PAUL

--- In equismetastock@xxxxxxxxxxxxxxx, "Roy Larsen" <rlarsen@xxx> wrote:
>
> Hi Paul
> 
> 
> Roc cannot be used as a variable name because it is a reserved
function name - ROC().
> 
> 
> Regards
> 
> Roy
> www.metastocktips.co.nz
> 
> 
> ----- Original Message ----- 
> From: Paul Harris 
> To: equismetastock@xxxxxxxxxxxxxxx 
> Sent: Friday, July 06, 2007 8:13 PM
> Subject: [EquisMetaStock Group] Problems with this code
> 
> 
> Preston et al
> I have problems with this code as it is rejected by MS. And I can?t
> see why.
> 
> DemandInd:= If(Dema(DI(),8) > 5,+1,If(Dema(DI(),8) < -13,-1,0));
> LinReg:= If(Dema(10000*LinRegSlope(C,13)/C,13) > 5,+1,
> If(Dema(10000*LinRegSlope(C,13)/C,13) < -13,-1,0));
> Roc:= If(Dema(ROC(C,8,%),8) > 2,+1,If(Dema(ROC(C,8,%),8) < -2,-1,0));
> Mon:= If(Dema(MFI(8),8)-50 > 5,+1,If(Dema(MFI(8),8)-50 < -5,-1,0));
> DemandInd+LinReg+Roc+Mon
> 
> Anyone see what the problem is.
> Thanxs
> PAUL
> 
> 
> 
> 
> 
> __________ NOD32 2381 (20070706) Information __________
> 
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
> 
> 
> [Non-text portions of this message have been removed]
>



         

       
---------------------------------
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.

[Non-text portions of this message have been removed]



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/equismetastock/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:equismetastock-digest@xxxxxxxxxxxxxxx 
    mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx

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