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

Re: [EquisMetaStock Group] Re: Strange



PureBytes Links

Trading Reference Links

Jose,
     Thank U very much....
I tried your code as Indicator and as Explorer (removing "Inputs")
and I works fine!
Now, All is right :)
Thanks again,
              Pablo

PS: mil gracias por molestarte!!!!

              
JS> Pablo, look for something very strange somewhere between chair and 
JS> keyboard - four conditions (or more) in an If() statement work fine:

JS> ==============
JS> test indicator
JS> ==============
JS> ---8<----------------------------

JS> { Plots TRUE (1) if all conditions are met,
JS>  plots FALSE (0) if not all conditions are met.}

JS> { User inputs }
JS> x1:=Input("1st test number",0,1000,10);
JS> x2:=Input("2nd test number",0,1000,20);
JS> x3:=Input("3rd test number",0,1000,30);
JS> x4:=Input("4th test number",0,1000,40);
JS> x5:=Input("5th test number",0,1000,50);
JS> x6:=Input("6th test number",0,1000,60);

JS> { Test multiple conditions }
JS> test:=
JS>   If(x1=10
JS>  AND x2=20
JS>  AND x3=30
JS>  AND x4=40
JS>  AND x5=50
JS>  AND x6=60
JS> ,TRUE,FALSE);

JS> { Plot in own window }
JS> test

JS> ---8<----------------------------


JS> jose '-)
JS> http://www.metastocktools.com




JS> --- In equismetastock@xxxxxxxxxxxxxxx, Paolo <italoarg76@xxx> wrote:
>>
>> Hi!
>>     I´ve seen something very strange coding for MS 9.1
>> If I write a large conditional (IF) then the conditions are not
>> evaluated!!
>> It was the reason because I should to cut the following code.
>> One IF with the 4 conditions does NOT work!!!!!
>> 
>> Pablo
>> 
>> ColA
>> ====
>> CMFctrl:=CMF(14)>Ref(CMF(14),-1)
>> AND  Ref(CMF(14),-1)>Ref(CMF(14),-2);
>> MOctrl:=Mo(C,12)>Ref(Mo(C,12),-1)
>> AND Ref(Mo(C,12),-1)>Ref(Mo(C,12),-2);
>> CMFctrl AND MOctrl //  It checks BOTH conditions at the same time.
>> 
>> Filter
>> ======
>> ColA<>0








 
JS> Yahoo! Groups Links





  

Pablo







 
Yahoo! Groups Links

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

<*> 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/