PureBytes Links
Trading Reference Links
|
Please ignore my previous answer, Brett - I didn't understand the question.
Below is sample signals indicator which illustrates the difference between
OR and XOR.
===========
XOR signals
===========
---8<-------------------------------
{ Indicator output choice }
plot:=Input("plot: [1] <OR>, [2] <XOR>, [3]Conditions 1-2",1,3,2);
{ Sample conditions }
cond1:=C>Ref(C,-5);
cond2:=C>Ref(C,-21);
{ OR - inclusive OR:
returns a value of TRUE (+1) if
either or both conditions are TRUE }
incl:=cond1 OR cond2;
{ XOR - exclusive OR:
returns a value of TRUE (+1) if
only one condition is TRUE }
excl:=cond1 + cond2 = TRUE;
{ Plot in own window }
If(plot=1,incl,If(plot=2,excl,cond1));
If(plot=1,incl,If(plot=2,excl,-cond2))
---8<-------------------------------
jose '-)
http://www.metastocktools.com
--- In equismetastock@xxxxxxxxxxxxxxx, "Jose Silva" <josesilva22@xxx>
wrote:
>
>
> { Exclusive }
> conditionX AND condition1
> OR conditionX AND condition2
> OR conditionX AND condition3;
>
> { Inclusive }
> conditionX AND
> (condition1 OR condition2 OR condition3);
>
>
> jose '-)
> http://www.metastocktools.com
>
>
>
> --- In equismetastock@xxxxxxxxxxxxxxx, Brett Sinclair
> <brett_j_sinclair@> wrote:
>
> Can someone provide me with a sample of both the exclusive OR and the
> non-exclusive 'OR' in Metastock?
>
> Thanks, Brett
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/
|