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

Re: [amibroker] Array processing in Loops (Tomasz) [was] Re: The use of the Powsmooth



PureBytes Links

Trading Reference Links




Hello,
 
... and of course use AddToComposite.
 
As to your question: arrays in loops are processed in the same 
way as usual:
 

function GetTicker( index ){  
if( index == 
0 ) result = <FONT 
color=#ff00ff size=1>"MSFT"; <FONT 
color=#800000> <FONT 
size=1>else  if<FONT 
size=1>( index == 1 ) 
result = "INTC";  
else  <FONT 
color=#800000 size=1>if( index == <FONT 
color=#ff00ff size=1>2 ) result = <FONT color=#ff00ff 
size=1>"AAPL";  <FONT color=#800000 
size=1>return result;
}<FONT face="Courier New" 
size=1>
Composite = <FONT face="Courier New" color=#ff00ff 
size=1>0;<FONT 
size=1>
for( <FONT face="Courier New" 
size=1>index = <FONT color=#ff00ff 
size=1>0; i<FONT face="Courier New" 
size=1>ndex < <FONT color=#ff00ff 
size=1>3; i<FONT face="Courier New" 
size=1>ndex++ ){   ticker = GetTicker( 
index );   Composite = Composite + 
Foreign( ticker, 
"C" 
);}<FONT color=#0000ff 
size=1>
AddColumn( Composite<FONT face="Courier New" 
size=1>/3<FONT 
size=1>, "<FONT face="Courier New" 
color=#ff00ff size=1>Close of <FONT color=#ff00ff 
size=1>MSFT+INTC+AAPL" );Filter = <FONT 
color=#ff00ff size=1>1;


 
=============
So in your code you should simply 
replace:
 

<FONT face="Courier New" 
color=black size=1><SPAN 
><SPAN 
>       <SPAN 
class=SpellE>currADX = <SPAN 
class=SpellE>ForeignADX( ticker, <FONT face="Courier New" 
color=fuchsia size=1><SPAN 
>14<FONT 
face="Courier New" color=black size=1><SPAN 
> 
);
<FONT face="Courier New" 
color=green size=1><SPAN 
>//<SPAN 
>     ^ should hold <SPAN 
class=SpellE>ForeignADX Array<FONT face="Courier New" 
color=black size=1><SPAN 
>
<FONT face="Courier New" 
color=black size=1><SPAN 
><SPAN 
>       
<FONT face="Courier New" color=maroon 
size=1><SPAN 
>for<FONT 
face="Courier New" color=black size=1><SPAN 
> (<SPAN 
class=SpellE>i=<FONT face="Courier New" color=fuchsia 
size=1><SPAN 
>1<FONT 
face="Courier New" color=black size=1><SPAN 
>;i<<SPAN 
class=SpellE><SPAN 
>BarCount;i++)
<FONT face="Courier New" 
color=black size=1><SPAN 
><SPAN 
>       {<SPAN 
>      

<FONT face="Courier New" 
color=black size=1><SPAN 
><SPAN 
>              
MeanADX[i] = <SPAN 
class=SpellE>MeanADX[i] + <SPAN 
class=SpellE>currADX[<SPAN 
class=SpellE>i];
<FONT face="Courier New" 
color=black size=1><SPAN 
><SPAN 
>       
}
<FONT face="Courier New" 
color=black size=1><SPAN 
> 
<FONT face="Courier New" 
color=black size=1><SPAN 
>by
<FONT face="Courier New" 
color=black size=1><SPAN 
> <FONT 
face="Courier New" color=black size=1><SPAN 
>
<FONT face="Courier New" 
color=black size=1><SPAN 
><SPAN 
>       <SPAN 
class=SpellE>currADX = <SPAN 
class=SpellE>ForeignADX( ticker, <FONT face="Courier New" 
color=fuchsia size=1><SPAN 
>14<FONT 
face="Courier New" color=black size=1><SPAN 
> 
);
<FONT face="Courier New" 
color=green size=1><SPAN 
>//<SPAN 
>     ^ should hold <SPAN 
class=SpellE>ForeignADX Array
<FONT face="Courier New" 
color=green size=1><SPAN 
><FONT 
face="Courier New" color=black size=1><SPAN 
>    
     MeanADX = MeanADX + 
currADX;
<FONT face=Tahoma 
color=black size=2><SPAN 
> 
<FONT face=Tahoma 
color=black size=2><SPAN 
> 
<FONT face=Tahoma 
color=black size=2><SPAN 
> 
(you can add arrays directly without loop thanks to AFL powerfull 
array processing)
 
Best regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Tomasz Janeczko 
  
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Tuesday, May 13, 2003 8:03 PM
  Subject: Re: [amibroker] Array processing 
  in Loops (Tomasz) [was] Re: The use of the Powsmooth
  
  Hello,
   
  Why do things so much complicated when they are 
  easy.
   
  You CAN iterate through watch list.
  Simply click on  FILTER button and set it to watch 
  list of your choice.
  Then AA will automatically go through your watch 
  list.
   
  Best regards,Tomasz Janeczkoamibroker.com
  <BLOCKQUOTE 
  >
    ----- Original Message ----- 
    <DIV 
    >From: 
    <A title=investor@xxxxxxxxxxxxx 
    href="">bluesinvestor 
    To: <A title=amibroker@xxxxxxxxxxxxxxx 
    href="">amibroker@xxxxxxxxxxxxxxx 
    Sent: Tuesday, May 13, 2003 5:11 
    PM
    Subject: [amibroker] Array processing 
    in Loops (Tomasz) [was] Re: The use of the Powsmooth
    
    
    <SPAN 
    >Tomasz,
    <SPAN 
    > 
    <SPAN 
    >I am trying to find an easy way to code <SPAN 
    class=SpellE>Dimitris’ Powsmooth using 
    UM’s ABTool DLL (I would 
    like to use a pure AFL method but cannot seem to find a way to iterate 
    through tickers in a watchlist via 
    AFL).
    <SPAN 
    > 
    <SPAN 
    >How does AB handle arrays when enclosed in a loop? 
     This does not seem to 
    work:
    <SPAN 
    > 
    <FONT 
    face="Courier New" color=green size=1><SPAN 
    >/* WRITE 
    ONCE */<SPAN 
    >
    <SPAN 
    class=GramE><SPAN 
    >function<FONT 
    face="Courier New" color=black size=1><SPAN 
    > <SPAN 
    class=SpellE>ForeignADX( symbol, period 
)
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    >{
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    ><SPAN 
    >       
    <SPAN 
    >/* save 
    original price arrays */<FONT face="Courier New" color=black 
    size=1><SPAN 
    >
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    ><SPAN 
    >       SC = 
    <SPAN 
>C;
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    ><SPAN 
    >       SO = 
    <SPAN 
>O;
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    ><SPAN 
    >       SH = 
    <SPAN 
>H;
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    ><SPAN 
    >       SL = 
    <SPAN 
>L;
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    > 
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    ><SPAN 
    >       
    C = <SPAN 
    class=GramE><SPAN 
    >Foreign<FONT 
    face="Courier New" color=black size=1><SPAN 
    >(<FONT 
    face="Courier New" color=black size=1><SPAN 
    > symbol, 
    <SPAN 
    >"C"<FONT 
    face="Courier New" color=black size=1><SPAN 
    > 
    );
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    ><SPAN 
    >       
    H = <SPAN 
    class=GramE><SPAN 
    >Foreign<FONT 
    face="Courier New" color=black size=1><SPAN 
    >(<FONT 
    face="Courier New" color=black size=1><SPAN 
    > symbol, 
    <SPAN 
    >"H"<FONT 
    face="Courier New" color=black size=1><SPAN 
    > 
    );
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    ><SPAN 
    >       
    L = <SPAN 
    class=GramE><SPAN 
    >Foreign<FONT 
    face="Courier New" color=black size=1><SPAN 
    >(<FONT 
    face="Courier New" color=black size=1><SPAN 
    > symbol, 
    <SPAN 
    >"L"<FONT 
    face="Courier New" color=black size=1><SPAN 
    > 
    );
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    ><SPAN 
    >       
    O = <SPAN 
    class=GramE><SPAN 
    >Foreign<FONT 
    face="Courier New" color=black size=1><SPAN 
    >(<FONT 
    face="Courier New" color=black size=1><SPAN 
    > symbol, 
    <SPAN 
    >"O"<FONT 
    face="Courier New" color=black size=1><SPAN 
    > 
    );
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    > 
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    ><SPAN 
    >       Result 
    = <FONT face="Courier New" color=blue 
    size=1><SPAN 
    >ADX<FONT 
    face="Courier New" color=black size=1><SPAN 
    >(<FONT 
    face="Courier New" color=black size=1><SPAN 
    > period ); 
    <SPAN 
    >// REPLACE 
    THIS BY ANY AFL FUNCTION<FONT face="Courier New" color=black 
    size=1><SPAN 
    >
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    > 
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    ><SPAN 
    >       
    <SPAN 
    >/* restore 
    original arrays */<FONT face="Courier New" color=black 
    size=1><SPAN 
    >
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    ><SPAN 
    >       
    C = 
    SC;
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    ><SPAN 
    >       
    O = 
    SO;
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    ><SPAN 
    >       
    H = 
    SH;
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    ><SPAN 
    >       
    L = 
    SL;
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    > 
    <SPAN 
    class=GramE><SPAN 
    >return<FONT 
    face="Courier New" color=black size=1><SPAN 
    > 
    Result;
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    >}
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    > 
    <SPAN 
    class=SpellE><FONT face="Courier New" color=black 
    size=1><SPAN 
    >wl<FONT 
    face="Courier New" color=black size=1><SPAN 
    > = 
    <SPAN 
    >0<FONT 
    face="Courier New" color=black size=1><SPAN 
    >;<SPAN 
    >  <FONT 
    face="Courier New" color=green size=1><SPAN 
    >// put your 
    watchlist number (0..63) here; it should contain 
    some tickers<SPAN 
    >
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    ><SPAN 
    >         
    <SPAN 
    >// (my WL 1 
    contains the 100 Nasdaq100 tickers)<FONT face="Courier New" 
    color=black size=1><SPAN 
    >
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    > 
    <SPAN 
    class=SpellE><FONT face="Courier New" color=blue 
    size=1><SPAN 
    >xxABtoolInit<SPAN 
    class=GramE><SPAN 
    >(<FONT 
    face="Courier New" color=black size=1><SPAN 
    >);
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    >Filter<FONT 
    face="Courier New" color=black size=1><SPAN 
    > = 
    <SPAN 
    >1<FONT 
    face="Courier New" color=black size=1><SPAN 
    >;
    <SPAN 
    class=SpellE><FONT face="Courier New" color=black 
    size=1><SPAN 
    >xtickercount<FONT 
    face="Courier New" color=black size=1><SPAN 
    > = 
    <FONT face="Courier New" color=blue 
    size=1><SPAN 
    >xxTickerCount<FONT 
    face="Courier New" color=black size=1><SPAN 
    >(<SPAN 
    class=SpellE>wl);
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    > 
    <SPAN 
    class=GramE><SPAN 
    >ticker<FONT 
    face="Courier New" color=black size=1><SPAN 
    > = 
    <FONT face="Courier New" color=blue 
    size=1><SPAN 
    >xxTickerFirst<FONT 
    face="Courier New" color=black size=1><SPAN 
    >(<SPAN 
    class=SpellE>wl);
    <SPAN 
    class=SpellE><SPAN 
    >MeanADX<FONT 
    face="Courier New" color=black size=1><SPAN 
    > = 
    <SPAN 
    >0<FONT 
    face="Courier New" color=black size=1><SPAN 
    >;
    <SPAN 
    class=GramE><SPAN 
    >while<FONT 
    face="Courier New" color=black size=1><SPAN 
    >(<FONT 
    face="Courier New" color=black size=1><SPAN 
    >ticker != 
    <SPAN 
    >""<FONT 
    face="Courier New" color=black size=1><SPAN 
    >)
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    >{
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    ><SPAN 
    >       <SPAN 
    class=SpellE>currADX = <SPAN 
    class=SpellE>ForeignADX( ticker, <FONT 
    face="Courier New" color=fuchsia size=1><SPAN 
    >14<FONT 
    face="Courier New" color=black size=1><SPAN 
    > 
    );
    <FONT 
    face="Courier New" color=green size=1><SPAN 
    >//<SPAN 
    >     ^ should hold <SPAN 
    class=SpellE>ForeignADX Array<FONT face="Courier New" 
    color=black size=1><SPAN 
    >
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    ><SPAN 
    >       
    <FONT face="Courier New" 
    color=maroon size=1><SPAN 
    >for<FONT 
    face="Courier New" color=black size=1><SPAN 
    > (<SPAN 
    class=SpellE>i=<FONT face="Courier New" color=fuchsia 
    size=1><SPAN 
    >1<FONT 
    face="Courier New" color=black size=1><SPAN 
    >;i<<SPAN 
    class=SpellE><SPAN 
    >BarCount;i++)
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    ><SPAN 
    >       {<SPAN 
    >      
    
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    ><SPAN 
    >              
    MeanADX[i] = 
    MeanADX[i] + <SPAN 
    class=SpellE>currADX[<SPAN 
    class=SpellE>i];
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    ><SPAN 
    >       
    }
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    > 
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    ><SPAN 
    >       <SPAN 
    class=GramE>ticker = <FONT 
    face="Courier New" color=blue size=1><SPAN 
    >xxTickerNext<FONT 
    face="Courier New" color=black size=1><SPAN 
    >(<SPAN 
    class=SpellE>wl);
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    >}
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    > 
    <SPAN 
    class=SpellE><FONT face="Courier New" color=blue 
    size=1><SPAN 
    >xxABtoolInit<SPAN 
    class=GramE><SPAN 
    >(<FONT 
    face="Courier New" color=black size=1><SPAN 
    >);<SPAN 
    >  <FONT 
    face="Courier New" color=green size=1><SPAN 
    >//cleanup<FONT 
    face="Courier New" color=black size=1><SPAN 
    >
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    > 
    <SPAN 
    class=SpellE><FONT face="Courier New" color=blue 
    size=1><SPAN 
    >AddColumn<SPAN 
    class=GramE><SPAN 
    >(<SPAN 
    class=SpellE><SPAN 
    >MeanADX,<FONT 
    face="Courier New" color=fuchsia size=1><SPAN 
    >"MeanADX<FONT 
    face="Courier New" color=fuchsia size=1><SPAN 
    >"<FONT 
    face="Courier New" color=black size=1><SPAN 
    >);
    <FONT 
    face="Courier New" color=black size=1><SPAN 
    > 
    <FONT 
    face="Courier New" color=green size=1><SPAN 
    > 
    <SPAN 
    >Thanks in advance,
    <SPAN 
    >Peter
    <SPAN 
    > 
    <SPAN 
    >-----Original Message-----From: DIMITRIS 
    TSOKAKIS [mailto:TSOKAKIS@xxxxxxxxx] Sent: 
    Monday, May 12, 
    2003 2:39 AMTo: 
    amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Re: The use of the 
    Powsmooth
    <SPAN 
    > 
    <SPAN 
    >Peter,
    <SPAN 
    >thank you for the unexpected [because of time] 
    reply.
    <SPAN 
    >Sleep with the idea and talk again 
    "tomorrow".
    <SPAN 
    >It is 09.30 in 
    Athens now, 32 
    Celsius and the summer is already at 
    <SPAN 
    >the corner.
    <SPAN 
    >Dimitris Tsokakis
    <SPAN 
    >--- In amibroker@xxxxxxxxxxxxxxx, "bluesinvestor" 
    <investor@xxxx> 
    <SPAN 
    >wrote:
    <SPAN 
    >> Dimitris,
    <SPAN 
    >> 
    <SPAN 
    >> Unfortunately it is late here and I cannot come 
    with a simple 
    <SPAN 
    >solution
    <SPAN 
    >> to 'step' through foreign tickers to get the 
    ADX variable.  We 
    would
    <SPAN 
    >> have to list all the tickers 
    involved.
    <SPAN 
    >> 
    <SPAN 
    >> If there is a way (which I do not know or 
    cannot think of at the 
    <SPAN 
    >moment)
    <SPAN 
    >> then the situation would be easy to 
    solve.
    <SPAN 
    >> 
    <SPAN 
    >> Maybe someone will have a suggestion or 
    solution by morning.
    <SPAN 
    >> 
    <SPAN 
    >> Regards,
    <SPAN 
    >> Peter
    <SPAN 
    >> 
    <SPAN 
    >> -----Original 
    Message-----
    <SPAN 
    >> From: DIMITRIS TSOKAKIS [mailto:TSOKAKIS@xxxx] 
    
    <SPAN 
    >> Sent: <st1:date Month="5" 
    Day="12" Year="2003">Monday, May 12, 2003 <st1:time Hour="1" 
    Minute="59">1:59 AM
    <SPAN 
    >> To: 
    amibroker@xxxxxxxxxxxxxxx
    <SPAN 
    >> Subject: [amibroker] Re: The use of the 
    Powsmooth
    <SPAN 
    >> 
    <SPAN 
    >> Peter,
    <SPAN 
    >> to materialize this idea 
    
    <SPAN 
    >> 
    http://groups.yahoo.com/group/amibroker/message/40198
    <SPAN 
    >> in N100 database we need to write 100 lines 
    with
    <SPAN 
    >> ADX0=
    <SPAN 
    >> ADX1=
    <SPAN 
    >> ADX2=
    <SPAN 
    >> ...
    <SPAN 
    >> ADX99=
    <SPAN 
    >> 
    MeanADX=(ADX0+ADX1+ADX2+...+ADX99)/100;
    <SPAN 
    >> Since you swim better in the iterations world, 
    is there a more 
    <SPAN 
    >> elegant way to do it [through stocknum 
    perhaps...]
    <SPAN 
    >> Of course, even if we take it as is, the 
    advantage is great, 
    <SPAN 
    >> especially for intraday 
    use.
    <SPAN 
    >> I suppose we make a STEP 
    here.
    <SPAN 
    >> Dimitris Tsokakis
    <SPAN 
    >> --- In amibroker@xxxxxxxxxxxxxxx, 
    "bluesinvestor" <investor@xxxx> 
    <SPAN 
    >> wrote:
    <SPAN 
    >> > Dimitris,
    <SPAN 
    >> >  
    
    <SPAN 
    >> > Without the 
    _javascript_:
    <SPAN 
    >> >  
    
    <SPAN 
    >> > /*PowSmooth and an application to 
    Dratio*/
    <SPAN 
    >> > 
    dratio=DEMA(1000*(H-L)/(H+L),20);
    <SPAN 
    >> >  
    
    <SPAN 
    >> > 
    for(i=2;i<BarCount;i++)
    <SPAN 
    >> > {
    <SPAN 
    >> ><SPAN 
    >        
    t0[i]=(dratio[i]*dratio[i-1]*dratio[i-2])^(1/3);
    <SPAN 
    >> ><SPAN 
    >        
    s0[i]=(dratio[i]*dratio[i-1])^(1/2);
    <SPAN 
    >> > }
    <SPAN 
    >> > 
    PowSmooth=(s0+t0)/2;
    <SPAN 
    >> >  
    
    <SPAN 
    >> > Filter=1;
    <SPAN 
    >> > 
    AddColumn(dratio,"DRATIO");
    <SPAN 
    >> > 
    AddColumn(s0,"SQRT");
    <SPAN 
    >> > 
    AddColumn(t0,"THIRD");
    <SPAN 
    >> > 
    AddColumn(Powsmooth,"PowSmooth");
    <SPAN 
    >> > 
    Plot(dratio,"dratio",1,8);
    <SPAN 
    >> > 
    Plot(PowSmooth,"PowSmooth",7,1);
    <SPAN 
    >> >  
    
    <SPAN 
    >> > RRR=Powsmooth;// Replace this line with 
    RRR=dratio; to see the 
    <SPAN 
    >usual
    <SPAN 
    >> > Dratioresults
    <SPAN 
    >> > D1=35;
    <SPAN 
    >> > 
    F1=RRR>=D1;F2=RRR<=D1;
    <SPAN 
    >> > 
    Sell=F2;Buy=F1;Buy=ExRem(Buy,Sell);Sell=ExRem(Sell,Buy);
    <SPAN 
    >> > 
    Short=Sell;Cover=Buy;Short=ExRem(Short,Cover);Cover=ExRem
    <SPAN 
    >> (Cover,Short);
    <SPAN 
    >> >  
    
    <SPAN 
    >> > Regards,
    <SPAN 
    >> > Peter
    <SPAN 
    >> >  
    
    <SPAN 
    >> > -----Original 
    Message-----
    <SPAN 
    >> > From: Dimitris Tsokakis 
    [mailto:TSOKAKIS@xxxx] 
    <SPAN 
    >> > Sent: <st1:date Month="5" 
    Day="10" Year="2003">Saturday, May 10, 2003 <st1:time Hour="7" 
    Minute="19">7:19 AM
    <SPAN 
    >> > To: 
    amibroker@xxxxxxxxxxxxxxx
    <SPAN 
    >> > Subject: [amibroker] The use of the 
    Powsmooth
    <SPAN 
    >> >  
    
    <SPAN 
    >> > The basic property of the Powsmooth 
    
    <SPAN 
    >> > 
    http://groups.yahoo.com/group/amibroker/message/40077
    <SPAN 
    >> > is to filter out fast zigzags, passing 
    through them, without 
    <SPAN 
    >> introducing
    <SPAN 
    >> > important 
    lags.
    <SPAN 
    >> > When we use a cross level trading system, 
    many times we loose 
    <SPAN 
    >money
    <SPAN 
    >> > because of oscillation of our indicator 
    around the
    <SPAN 
    >> > critical cross level. 
    
    <SPAN 
    >> > If our cross level is "good", then we 
    should expect [and we shall
    <SPAN 
    >> > see...] strong ask and bid when we are 
    close to this level. 
    <SPAN 
    >> > The result is the well known repeated 
    whipsaws, which usually 
    <SPAN 
    >> annihilate
    <SPAN 
    >> > our profits.
    <SPAN 
    >> > Unfortunately, the solution is not to 
    smooth our nervous 
    <SPAN 
    >indicator, 
    <SPAN 
    >> it
    <SPAN 
    >> > will usually loose its charm to catch 
    quickly the market changes.
    <SPAN 
    >> > In this case [traders who use fast 
    indicators will understand 
    <SPAN 
    >very 
    <SPAN 
    >> well
    <SPAN 
    >> > this syndrom...] the PowSmooth may offer 
    great assistance.
    <SPAN 
    >> > Its smart curve will gently pass between 
    the accumulated ziggy 
    <SPAN 
    >> points,
    <SPAN 
    >> > avoid cascade entries/exits and 
    substantially increase our 
    <SPAN 
    >profits.
    <SPAN 
    >> > See a characteristic example in the att. 
    gif.
    <SPAN 
    >> > In the first case, the dratio gives 8 
    trades in two months, with 
    <SPAN 
    >a 
    <SPAN 
    >> final
    <SPAN 
    >> > +13%, oscillating around the critical 
    level D=35.
    <SPAN 
    >> > The PowSmooth, for the same ^NDX period, 
    gives two clear trades 
    <SPAN 
    >and
    <SPAN 
    >> > maximizes the profits to 
    +20%.
    <SPAN 
    >> > [settings buy/sell/short/cover at +1open, 
    commission 0.5%, stops
    <SPAN 
    >> > disabled]
    <SPAN 
    >> > The level D=35 is critical for the market, 
    the D_ratio frequntly
    <SPAN 
    >> > oscillates up and down, until the market 
    takes the decision to go 
    <SPAN 
    >> higher
    <SPAN 
    >> > or lower. 
    <SPAN 
    >> > The usual D_ratio system gives for the 
    whole market nice profits, 
    <SPAN 
    >> +340%
    <SPAN 
    >> > since 
Jan2000.
    <SPAN 
    >> > The PowSmooth D_datio makes the difference 
    : +940% for the same 
    <SPAN 
    >> period
    <SPAN 
    >> > and settings.
    <SPAN 
    >> > For ^NDX we could nearly double the 
    profits:
    <SPAN 
    >> > Usual D_ratio : +550%, 
    37trades/28winners/9losers
    <SPAN 
    >> > PowSmooth : +1165%, 
    27trades/23winners/4losers.
    <SPAN 
    >> > A +550% is not that bad, a +1165% is much 
    better.
    <SPAN 
    >> > For CSCO, the signal generator of this 
    transcendental system 
    <SPAN 
    >[since 
    <SPAN 
    >> we
    <SPAN 
    >> > "borrow" CSCO data for the basic curve] 
    the situation needs
    <SPAN 
    >> > no further comments : the comparison is 
    +370% vs +2000%.
    <SPAN 
    >> > If you use fast and ziggy indicators and 
    Cross level systems, 
    <SPAN 
    >take a
    <SPAN 
    >> > look at the PowSmooth, it may make you 
    smile.
    <SPAN 
    >> > Dimitris 
    Tsokakis
    <SPAN 
    >> > I use the trancendental CSCO D_ratio 
    code
    <SPAN 
    >> > /*Powsmooth CSCO D_ratio, written and used 
    by D.Tsokakis, Sept 
    <SPAN 
    >> 2002*/
    <SPAN 
    >> > 
    H=Foreign("CSCO","H");L=Foreign("CSCO","L");
    <SPAN 
    >> > 
    dratio=DEMA(1000*(H-L)/(H+L),20);
    <SPAN 
    >> > 
    EnableScript("jscript");
    <SPAN 
    >> > <%
    <SPAN 
    >> > dratio = VBArray( AFL( "dratio" ) 
    ).toArray();
    <SPAN 
    >> > s=new Array();t=new 
    Array();
    <SPAN 
    >> > 
s[0]=0;t[0]=0;
    <SPAN 
    >> > 
    for(i=1;i<dratio.length;i++)
    <SPAN 
    >> > {
    <SPAN 
    >> > 
    {t[i]=Math.pow((dratio[i]*dratio[i-1]*dratio[i-2]),1/3);}
    <SPAN 
    >> > 
    {s[i]=Math.pow((dratio[i]*dratio[i-1]),1/2);}
    <SPAN 
    >> > }
    <SPAN 
    >> > AFL.Var("s0") =s 
    ;
    <SPAN 
    >> > 
    AFL.Var("t0")=t;
    <SPAN 
    >> > %>
    <SPAN 
    >> > 
    Powsmooth=(s0+t0)/2;
    <SPAN 
    >> > RRR=Powsmooth;// Replace this line with 
    RRR=dratio; to see the 
    <SPAN 
    >usual
    <SPAN 
    >> > Dratioresults
    <SPAN 
    >> > D1=35;
    <SPAN 
    >> > 
    F1=RRR>=D1;F2=RRR<=D1;
    <SPAN 
    >> > 
    Sell=F2;Buy=F1;Buy=ExRem(Buy,Sell);Sell=ExRem(Sell,Buy);
    <SPAN 
    >> > 
    Short=Sell;Cover=Buy;Short=ExRem(Short,Cover);Cover=ExRem
    <SPAN 
    >> (Cover,Short);
    <SPAN 
    >> > 
    <SPAN 
    >> > 
    <SPAN 
    >> > 
    <SPAN 
    >> > 
    <SPAN 
    >> > Yahoo! Groups 
    Sponsor
    <SPAN 
    >> > 
    <SPAN 
    >> >  
    
    <SPAN 
    >> > 
    <SPAN 
    >> 
    <SPAN 
    ><http://rd.yahoo.com/M=251812.3170658.4537139.1261774/D=egroupweb/S=17
    <SPAN 
    >> 05
    <SPAN 
    >> > 
    632198:HM/A=1564415/R=0/*http:/www.netflix.com/Default?
    <SPAN 
    >> 
    mqso=60164784&par
    <SPAN 
    >> > tid=3170658> 
    
    <SPAN 
    >> > 
    <SPAN 
    >> >  
    
    <SPAN 
    >> > 
    <http://us.adserver.yahoo.com/l?
    <SPAN 
    >> 
    M=251812.3170658.4537139.1261774/D=egrou
    <SPAN 
    >> > pmail/S=:HM/A=1564415/rand=998789952> 
    
    <SPAN 
    >> > 
    <SPAN 
    >> > Send BUG REPORTS to 
    bugs@xxxx
    <SPAN 
    >> > Send SUGGESTIONS to 
    suggest@xxxx
    <SPAN 
    >> > 
    -----------------------------------------
    <SPAN 
    >> > Post AmiQuote-related messages ONLY to: 
    amiquote@xxxxxxxxxxxxxxx 
    <SPAN 
    >> > (Web page: 
    http://groups.yahoo.com/group/amiquote/messages/)
    <SPAN 
    >> > 
    --------------------------------------------
    <SPAN 
    >> > Check group FAQ 
    at:
    <SPAN 
    >> > 
    http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
    
    <SPAN 
    >> > 
    <SPAN 
    >> > Your use of Yahoo! Groups is subject to 
    the Yahoo!
    <SPAN 
    >> > 
    <http://docs.yahoo.com/info/terms/><SPAN 
    >  Terms of 
    Service.
    <SPAN 
    >> 
    <SPAN 
    >> 
    <SPAN 
    >> 
    <SPAN 
    >> Send BUG REPORTS to 
    bugs@xxxx
    <SPAN 
    >> Send SUGGESTIONS to 
    suggest@xxxx
    <SPAN 
    >> 
    -----------------------------------------
    <SPAN 
    >> Post AmiQuote-related messages ONLY to: 
    amiquote@xxxxxxxxxxxxxxx 
    <SPAN 
    >> (Web page: 
    http://groups.yahoo.com/group/amiquote/messages/)
    <SPAN 
    >> 
    --------------------------------------------
    <SPAN 
    >> Check group FAQ 
at:
    <SPAN 
    >> 
    http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
    
    <SPAN 
    >> 
    <SPAN 
    >> Your use of Yahoo! Groups is subject 
    to
    <SPAN 
    >> 
    http://docs.yahoo.com/info/terms/
    <SPAN 
    > 
    <SPAN 
    > 
    <SPAN 
    >------------------------ Yahoo! Groups Sponsor 
    ---------------------~-->
    <SPAN 
    >Rent DVDs from home.
    <SPAN 
    >Over 14,500 titles. Free 
    Shipping
    <SPAN 
    >& No Late Fees. Try Netflix for 
    FREE!
    <SPAN 
    >http://us.click.yahoo.com/BVVfoB/hP.FAA/uetFAA/GHeqlB/TM
    <SPAN 
    >---------------------------------------------------------------------~->
    <SPAN 
    > 
    <SPAN 
    >Send BUG REPORTS to 
    bugs@xxxxxxxxxxxxx
    <SPAN 
    >Send SUGGESTIONS to 
    suggest@xxxxxxxxxxxxx
    <SPAN 
    >-----------------------------------------
    <SPAN 
    >Post AmiQuote-related messages ONLY to: 
    amiquote@xxxxxxxxxxxxxxx 
    <SPAN 
    >(Web page: 
    http://groups.yahoo.com/group/amiquote/messages/)
    <SPAN 
    >--------------------------------------------
    <SPAN 
    >Check group FAQ at: 
    http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
    
    <SPAN 
    > 
    <SPAN 
    >Your use of Yahoo! Groups is subject to 
    http://docs.yahoo.com/info/terms/ 
    <SPAN 
    > Send 
    BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
    suggest@xxxxxxxxxxxxx-----------------------------------------Post 
    AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: 
    <A 
    href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
    group FAQ at: <A 
    href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
    Your use of Yahoo! Groups is subject to the <A 
    href="">Yahoo! Terms of Service. 
    Send 
  BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor












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.