PureBytes Links
Trading Reference Links
|
<font
size=1 color=green face=Tahoma>Try this, but you have to insert your own conditions…
<font
size=1 color=green face=Tahoma>Mr Valley
<font
size=1 color=green face=Tahoma>
<font
size=1 color=green face=Tahoma>/* Counter Custom */<font size=1 color=black
face=Tahoma>
<font
size=1 color=black face=Tahoma>
<font
size=1 color=black face=Tahoma>Cond1= mvh > <font size=1 color=fuchsia
face=Tahoma>1<font
size=1 color=black face=Tahoma>;<span
>// put your condition
here
<font
size=1 color=black face=Tahoma>CondCounter1=Cond1*<font size=1 color=blue
face=Tahoma>BarsSince<font
size=1 color=black face=Tahoma>(NOT(Cond1));
<font
size=1 color=blue face=Tahoma>Plot<span
>(Cond1,<font
size=1 color=fuchsia face=Tahoma>"Cond1"<font size=1 color=black
face=Tahoma>,<font
size=1 color=fuchsia face=Tahoma>1<span
>,<font
size=1 color=fuchsia face=Tahoma>2<span
>);
<font
size=1 color=blue face=Tahoma>Plot<span
>(CondCounter1,<font
size=1 color=fuchsia face=Tahoma>"CondCounter1"<font size=1 color=black
face=Tahoma>,<font
size=1 color=fuchsia face=Tahoma>4<span
>,<font
size=1 color=fuchsia face=Tahoma>3<span
>+<span
>styleThick);
<font
size=1 color=black face=Tahoma>
<font
size=1 color=black face=Tahoma>Cond2= mvh > -<font size=1 color=fuchsia
face=Tahoma>1.5<font
size=1 color=black face=Tahoma>;<span
>// put your condition
here
<font
size=1 color=black face=Tahoma>CondCounter2=<span
>IIf<font
size=1 color=black face=Tahoma>(Cond2,<span
>BarsSince<font
size=1 color=black face=Tahoma>(NOT(Cond2)),<font
size=1 color=fuchsia face=Tahoma>0<span
>);
<font
size=1 color=blue face=Tahoma>Plot<span
>(Cond2,<font
size=1 color=fuchsia face=Tahoma>"Cond2"<font size=1 color=black
face=Tahoma>,<font
size=1 color=fuchsia face=Tahoma>1<span
>,<font
size=1 color=fuchsia face=Tahoma>2<span
>);
<font
size=1 color=blue face=Tahoma>Plot<span
>(CondCounter2,<font
size=1 color=fuchsia face=Tahoma>"CondCounter2"<font size=1 color=black
face=Tahoma>,<font
size=1 color=fuchsia face=Tahoma>5<span
>,<font
size=1 color=fuchsia face=Tahoma>2<span
>+<span
>styleThick);
<font
size=1 color=black face=Tahoma>
<font
size=1 color=black face=Tahoma>
<font
size=1 color=black face=Tahoma>Cond3= -<span
>1.5<font
size=1 color=black face=Tahoma> > mvh;<span
>// put your condition
here
<font
size=1 color=black face=Tahoma>CondCounter3=<span
>IIf<font
size=1 color=black face=Tahoma>(Cond3,<span
>BarsSince<font
size=1 color=black face=Tahoma>(NOT(Cond3)),<font
size=1 color=fuchsia face=Tahoma>0<span
>);
<font
size=1 color=blue face=Tahoma>Plot<span
>(Cond3,<font
size=1 color=fuchsia face=Tahoma>"Cond3"<font size=1 color=black
face=Tahoma>,<font
size=1 color=fuchsia face=Tahoma>1<span
>,<font
size=1 color=fuchsia face=Tahoma>2<span
>);
<font
size=1 color=blue face=Tahoma>Plot<span
>(CondCounter3,<font
size=1 color=fuchsia face=Tahoma>"CondCounter3"<font size=1 color=black
face=Tahoma>,<font
size=1 color=fuchsia face=Tahoma>7<span
>,<font
size=1 color=fuchsia face=Tahoma>2<span
>+<span
>styleThick);
<font
size=1 color=black face=Tahoma>
<font
size=1 color=black face=Tahoma>Cond4= <span
>1.00<font
size=1 color=black face=Tahoma> > mvh;<span
>// put your condition
here
<font
size=1 color=black face=Tahoma>CondCounter4=Cond4*<font size=1 color=blue
face=Tahoma>BarsSince<font
size=1 color=black face=Tahoma>(NOT(Cond4));
Plot<font size=1
color=black face=Tahoma>(Cond4,<span
>"Cond4"<font
size=1 color=black face=Tahoma>,<span
>1<font
size=1 color=black face=Tahoma>,<span
>2<font
size=1 color=black face=Tahoma>);<span
>Plot<font
size=1 color=black face=Tahoma>(CondCounter4,<font size=1 color=fuchsia
face=Tahoma>"CondCounter4"<font
size=1 color=black face=Tahoma>,colorLime,<font
size=1 color=fuchsia face=Tahoma>3<span
>+<span
>styleThick)<font size=1
color=green face=Tahoma>;
<font size=2 color=black
face=Arial>
Yahoo! Groups Sponsor
ADVERTISEMENT
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|