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

Re: [EquisMetaStock Group] Re: Explorer



PureBytes Links

Trading Reference Links

Jose,
     Thank U very much! It works! :)
Pablo
     
JS> MetaStock Explorations can't accept user inputs.
This was my throuble.

JS> Try this:
JS> Column A: Signals
JS> ---8<------------------------------------

JS> { Variables }
JS> thr:=1.5; {Divergence strength threshold %}
JS> pds:=20;  {Divergence periods}

JS> { Indicators }
JS> ds:=LinRegSlope(LinRegSlope(C,pds),3);
JS> dsEma:=Mov(ds,pds,E);
JS> PrcEma:=Mov(C,pds,E);

JS> { Divergences }
Bull:=If(ds>>dsEma
JS>    AND ds>Ref(ds,-pds)
JS>    AND C<PrcEma
JS>    AND C<Ref(C,-pds),
JS>    Mov(ds,pds,S)/Mov(ds,100,S),0)
JS>   >thr;
JS> Bear:=If(ds<dsEma
JS>    AND ds<Ref(ds,-pds)
JS>    AND C>PrcEma
JS>    AND C>Ref(C,-pds),
JS>    Mov(ds,pds,S)/Mov(ds,100,S),0)
JS>   >thr;

JS> { Signals }
JS> If(bull=1,bull,If(bear=1,-bear,0))

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


JS> ======
JS> Filter
JS> ======
JS> ColA<>0



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




JS> --- In equismetastock@xxxxxxxxxxxxxxx, Paolo <italoarg76@xxx> wrote:
>>
>> Ciao!!
>>        I've seen many times something like this:
>> LinRegSlope( LinRegSlope(C,20),3); {DLRS for me}
>> 
>> That's good to see divergences with close price so I've used a
>> modified (by Jose Silva) indicator to find the divergences.
>> I was interested to make an EXPLORER from the code but I tryied
>> and I failed!
>> Some help will be appreciated!! :)
>> 
>> The indicator code is:
>> 
>> { DLRP-DIV:
>>   Attempt at finding divergences DLRS and Price }
>> 
>> { User inputs }
>> thr:=Input("Divergence strength threshold %",0,100,1.5);
>> pds:=Input("Divergence periods",1,260,20);
>> 
>> ds:= LinRegSlope( LinRegSlope(C,20),3);
>> 
>> dsEma:=Mov(ds,pds,E);
>> PrcEma:=Mov(C,pds,E);
>> 
>> 
>> { Divergences }
>> Bull:=If(ds>dsEma
>>   AND ds>Ref(ds,-pds)
>>   AND C<PrcEma
>>   AND C<Ref(C,-pds),
>>   Mov(ds,pds,S)/Mov(ds,100,S),0)
>>  >thr;
>> Bear:=If(ds<dsEma
>>   AND ds<Ref(ds,-pds)
>>   AND C>PrcEma
>>   AND C>Ref(C,-pds),
>>   Mov(ds,pds,S)/Mov(ds,100,S),0)
>>  >thr;
>> 
>> { Plot signals }
>> If(bull=1,bull,If(bear=1,-bear,0));
>> 
>> { Jose Silva's aid was used }









 
JS> Yahoo! Groups Links







Pablo Bozzolo

---
Contact info:

Movil: 221 5384617
E-mail: italoarg76@xxxxxxxx
MSN: italoarg76@xxxxxxxxxxx
ICQ: 77207033




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/BefplB/TM
--------------------------------------------------------------------~-> 

 
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/