Hi,
If you want to filter out stocks that are more than 5% away from some value, then write code like the following:
TooHigh = Close > 1.05 * MovingAvg;
TooLow = Close < 0.95 * MovingAvg;
Filter = NOT TooHigh AND NOT TooLow;
Mike
--- In
amibroker@xxxxxxxxx ps.com, "nifty46" <nifty46@xxx > wrote:
>
> THAX SIR FOR UR REEPLY, I CHANGE THE BUY WITH JUST 1.05 AND IN SELL -1.05, SIR WITH THIS EXPLORE MANY STOCKS COME, BUT I NEED ONLY THAT STOCK THOSE ARE UNDER UP AND BELOW 5% OF MY ENTERY PRICE, THOSE STOCK WHO CROSS THE UPPER 5% OR DOWN 5% LIMIT I WANTS IN IGNORE, I MEAN THEY NOT COME IN MY EXPLORER SCAN. EXPLORER SCAN IGNORE THEM WHEN CURRENT CLOSE PRICE CROSS THE 5% ABOVE THE ENTERY PRICE, IF THEY R UNDER 5% OF ENTERY PRICE THEY COME UNDER EXPLORER SCAN, WHEN PRICE MOVE ABOVE 5% FROM THE ENTERY PRICE THEN THEY NEED
TO VANISHED FROM MY EXPLORER SCAN. I TRY IN MANY WAY TO IGNORE BUT NOT GET SUCSSEC, PLEASE HELP ME SIR. THAX WITH WARM REGARDS NIFTY46
>
> MOVINGAVG=EMA( H,21);
> entryprice= EMA(H,21)+1. 05;
> ENTRYSELL= EMA(H,21)-1. 05;
>
> Ignore1 = Close + (Close * 5);
> IGNORE2=IIf( Close>ignore1, 1,0);
> Ignore3 = Close - (Close * 5);
> IGNORE4=IIf( Close<ignore3, 1,0);
>
> Buy=Cross(C, MOVINGAVG) *0.001 AND IGNORE2;
> Sell=Cross(MOVINGAV G,C)*0.001 AND IGNORE4;
>
> Filter=Buy OR Sell;
> AddColumn(C, " CMP ",0,colorBlack, colorLightGrey) ;
> AddColumn(IIf( Buy,entryprice, ENTRYSELL) ,"INTRADAY ",0,colorDefault, IIf(C entryprice,colorGre en, colorRed));
>
>
>
>
>
>
>
> --- In
amibroker@xxxxxxxxx ps.com, "Mike" <sfclimbers@ >
wrote:
> >
> > Your filter is already set such that only those that EXACTLY match your Buy or Sell signals are listed. Any change you make will only increase the number of symbols that show up.
> >
> > If you want fewer signals, then make your Buy signal more restrictive, or work with a smaller number of symbols.
> >
> > Note that your Buy and Sell logic does not make much sense. The Cross function returns 1 or 0. Multiplying that by 0.001 just means that you'll have 0.001 or 0.000 which does not change anything. Whether 1 or 0.001, it still means "true".
> >
> > Mike
> >
> > --- In
amibroker@xxxxxxxxx ps.com, "nifty46" <nifty46@> wrote:
> > >
> > > SIR, I NEED HELP FOR EXPLORATION,
> > >
> > >
> > > MOVINGAVG=EMA(
H,21);
> > > entryprice= EMA(H,21)+1. 05;
> > > ENTRYSELL= EMA(H,21)-1. 05;
> > > Buy=Cross(C, MOVINGAVG) *0.001;
> > > Sell=Cross(MOVINGAV G,C)*0.001;
> > > Filter=Buy OR Sell;
> > > AddColumn(C, " CMP ",0,colorBlack, colorLightGrey) ;
> > > AddColumn(IIf( Buy,entryprice, ENTRYSELL) ,"INTRADAY ",0,colorDefault, IIf(C >entryprice, colorGreen, colorRed));
> > >
> > >
> > > LOT OF STOCK COMES UNDER EXPLORERE SCAN, BUT I NEED ONLY THOSE FEW STOCKS WHICH ARE CURRENTLY TRADED HALF% ABOVE OR BELOW FROM MY BUY OR SELL SIGNAL , THOSE STOCK WHICH CROSS HALF% LIMIT FROM BUY OR SELL SIGNALS I NEED THEY AUTOMATIC OUT OF MY EXPLORATION, AND COMES AGAIN ONLY IN EXPLORERE SCAN WHEN THEY ARE AGAIN UNDER MY LIMIT HALF% OF BUY OR SELL SIGNALS, THAX IN ADVANCE, WAITING A GOOD RESPONCE, NIFTY46
> > >
>
>
>