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

RE: [amibroker] Valuewhen(Cond,Array,N);



PureBytes Links

Trading Reference Links

I tried creating a scan for a cross and it didnt work. Can someone
tell me where I went wrong. Can it be possible to have the cross apply
to all parameters (^IXIC,MSFT,GE)

Thanks,
Brian


_N( TickerList = ParamStr("Tickers", "^IXIC,MSFT,GE") );
NumBars = 20;
fvb = Status("firstvisiblebar");
zz =( 100 * ( C - C[ fvb ] ) / C[ fvb ]);
for( i = 0; ( symbol = StrExtract( TickerList, i ) ) != ""; i++ )
{
 fc = Foreign( symbol, "C" );

 if( ! IsNull( fc[ 0 ] ) )
 {
yy = ( 100 * ( fc - fc[ fvb ] )/ fc[ fvb ]);
 }
}
PlotGrid( 0, colorYellow );
//--Indicator-End-- -- do not remove this line
Change = SelectedValue( ROC( C, NumBars ) );
printf( "Over last %g bars ", NumBars );
printf( Name() + " has moved %.2g%%\n", Change );

printf("\nIn the same time\n");
for( i = 0; ( symbol = StrExtract( TickerList, i ) ) != ""; i++ )
{
 fc = Foreign( symbol, "C" );
 
 if( ! IsNull( fc[ 0 ] ) )
 {
   fChange = SelectedValue( ROC( fc, NumBars ) );
   printf( symbol + " performance was %.2g%%", fChange, fChange -
Change );
   if( fChange - Change > 0 )
   { 
      printf( " better " );
   }
   else 
   {
      printf( " worse " ); 
   }
   printf( "than " + Name() + "\n");
 }
}

yy = ( 100 * ( fc - fc[ fvb ] )/ fc[ fvb ]);
zz =( 100 * ( C - C[ fvb ] ) / C[ fvb ]);


Buy = Cross(zz, yy);


--- In amibroker@xxxxxxxxxxxxxxx, "jnk1997" <jnk1997@xxxx> wrote:
> Thomasz
> 
> Real Nice!!!
> 
> Thank You for the speedy reply!!
> 
> Regards
> 
> Jim
> 
> 
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx> 
> wrote:
> > Hello,
> > 
> > Insert->Standard Chart->Relative Performance.
> > 
> > It shows the performance of currently selected symbol against
> > any number of other symbols.
> > You can edit reference symbols by click on the chart with right 
> mouse
> > button and choosing "Parameters" menu item.
> > 
> > Longer docs will come with official release.
> > 
> > Best regards,
> > Tomasz Janeczko
> > amibroker.com
> > ----- Original Message ----- 
> > From: "jnk1997" <jnk1997@xxxx>
> > To: <amibroker@xxxxxxxxxxxxxxx>
> > Sent: Friday, July 30, 2004 12:04 AM
> > Subject: [amibroker] Re: AmiBroker 4.60.1 BETA -Relative 
> Performance Chart
> > 
> > 
> > > Would someone be kind enough to explain where I find this 
> Relative 
> > > Performance Chart and briefly how to use it?
> > > 
> > > Thanks
> > > 
> > > Jim
> > > 
> > > 
> > > 
> > > 
> > > --- In amibroker@xxxxxxxxxxxxxxx, Jason Hart <jhart_1972@xxxx> 
> wrote:
> > > > You've got to be kidding me!!  The relative performance chart 
> is 
> > > fantastic!  Thanks TJ
> > > >  
> > > > Jason
> > > > 
> > > > Herman van den Bergen <psytek@xxxx> wrote:
> > > > NICE! Perfect timing, was just writing a Relative performance 
> > > indicator....picked up some good ideas from your new indicator :-
> ))
> > > >  
> > > > best regards, 
> > > > herman
> > > > -----Original Message-----
> > > > From: Tomasz Janeczko [mailto:amibroker@x...]
> > > > Sent: Thursday, July 29, 2004 9:50 AM
> > > > To: amibroker@xxxxxxxxxxxxxxx
> > > > Subject: [amibroker] AmiBroker 4.60.1 BETA released
> > > > 
> > > > 
> > > > Hello,
> > > > 
> > > > A new beta version (4.60.1) of AmiBroker has just been released.
> > > > 
> > > > 
> > > > It is available for registered users only from the members area 
> at:
> > > > http://www.amibroker.com/members/bin/ab4601beta.exe
> > > > and
> > > > http://www.amibroker.net/members/bin/ab4601beta.exe
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > Check AmiBroker web page at:
> > > > http://www.amibroker.com/
> > > > 
> > > > Check group FAQ at: 
> > > http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> > > > 
> > > > 
> > > > Yahoo! Groups SponsorADVERTISEMENT
> > > > 
> > > > 
> > > > ---------------------------------
> > > > Yahoo! Groups Links
> > > > 
> > > >    To visit your group on the web, go to:
> > > > http://groups.yahoo.com/group/amibroker/
> > > >   
> > > >    To unsubscribe from this group, send an email to:
> > > > amibroker-unsubscribe@xxxxxxxxxxxxxxx
> > > >   
> > > >    Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
> > > Service. 
> > > > 
> > > > 
> > > > 
> > > > ---------------------------------
> > > > Do you Yahoo!?
> > > > Yahoo! Mail - You care about security. So do we.
> > > 
> > > 
> > > 
> > > 
> > > Check AmiBroker web page at:
> > > http://www.amibroker.com/
> > > 
> > > Check group FAQ at: 
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> > > Yahoo! Groups Links
> > > 
> > > 
> > > 
> > >  
> > > 
> > >



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

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

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/