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

[amibroker] Re: BUY OR SELL JUST ABOVE THE ..............



PureBytes Links

Trading Reference Links

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@xxxxxxxxxxxxxxx, "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(MOVINGAVG,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,colorGreen, colorRed));
> 
> 
> 
> 
> 
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "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@xxxxxxxxxxxxxxx, "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(MOVINGAVG,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
> > >
> >
>




------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/