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

[amibroker] Re: 3 Sma Scanner



PureBytes Links

Trading Reference Links

David,
It looks like you are a "Bottom Fisher".  Try this formula that could
be modified to some of the ideas presented so far.

Dick H.

_SECTION_BEGIN("TenTwentyValue");
TenTwentyValue = HHV(H,20)-LLV(L,20);
FiftyTwoWeekLow=LLV( Close , 250 ); //get 52 week low data
Near52WeekLow = FiftyTwoWeekLow + (FiftyTwoWeekLow * .08); //add 8 %
to 52 week Low so its NOT a dead stock
FiftyTwoWeekHigh=HHV(Close , 250); //get 52 week high data
SpanOfStock=(FiftyTwoWeekLow/FiftyTwoweekHigh)*100 ; //get the span of
the stock
BottomStocks=Close <= Near52WeekLow;
BeatenDownStocks=SpanOfStock > 35  AND SpanOfStock <80; // get the
stocks which have been halved from its High


Cond1 = BottomStocks AND BeatenDownStocks; //found the beaten down stocks
Cond2 =High   >  MA( Close , 20 );//get the breakout of price may be a
news ?
Cond3=PDI() > PDI(3); //get the directional index
Cond4=(TenTwentyValue < (MA(Close,20)* .19))  AND V <10000;

Cond5= H > MA( Close, 50) AND C > MA(Close,50) AND  PDI(3) > MDI(3) AND
(TenTwentyValue < (MA(Close,20)* .19)) AND Close >9.95 AND V >2000;

Buy = (Cond1 AND Cond2 AND Cond3 AND Cond4) OR (Cond1 AND Cond5)AND
(PDI (14)>MDI(14));
Sell= Close <MA (Close,20) AND MDI(14) > PDI(14);
Plot(TenTwentyValue,"10/20 Value",colorRed,styleLine);

Filter = C <20 AND C >2 AND Volume > 80000;// AND (PDI (14)>MDI(14));
//Result = WriteIf(Sell,"Sell","Buy");
Result = WriteIf(Buy,"Buy","Sell");
AddTextColumn(Result,"Trade",
formatChar,IIf(Buy,colorDarkGreen,colorRed ),
IIf(Sell,colorPink,colorLime));
AddTextColumn(IndustryID(1) ,"     Industry Sector      ", 25.0,
colorWhite, colorBlue);
AddColumn( Close, "Close", 1.2, IIf( ROC(C, 1 ) >= 0,
colorDarkGreen,colorRed ),50 );
AddColumn(Ref(Close,-1),"Y-Close",1.2, IIf(
ROC(Ref(C,-1),1)>=0,colorDarkGreen, colorRed ),50 );
AddColumn( Volume, "Volume", 10.0, IIf( ROC(V, 1 ) >=
0,colorDarkGreen, colorRed ) );
AddColumn( ROC( Close, 1 ), "ROC(1)", 1.2, IIf( ROC(C, 1 ) >=
0,colorDarkGreen, colorRed));

Buy = ExRem(Buy,Sell);
Sell = ExRem(Sell,Buy);

_SECTION_END();




--- In amibroker@xxxxxxxxxxxxxxx, David LW <protraderinc@xxx> wrote:
>
> Hi Brian,
> 
> I'm not good in programming, Those codes you pass me I don't how to
use it :(
> I know how to use Formula Editor. 
> 
> Which course did you mention in the last email? 
> 
> Actually the criteria scan is to get those stocks that is in the
zone. We basically monitor those to bounce off and create higher high
and higher low. Not very good in explaining it in words. I'll try to
get live examples step by step for the next few days or weeks :o) 
Hope people can benefit or at least find some idea from this :o)
> 
> brian_z111 <brian_z111@xxx> wrote:                               ---
In amibroker@xxxxxxxxxxxxxxx, "protraderinc" <protraderinc@> 
>  wrote:
>  >
>  > Hi,
>  > 
>  > Can a scanner or explorer be written out of the following criterias?
>  > 
>  > Its a basic MA system I used for forex but want use the idea in 
>  stocks.
>  > Simple MA use are 30, 50, 100 SMA. For easy illustration, we will 
>  only
>  > talk about uptrend buy signal
>  > 
>  > - The ma must stack with 30sma to be the first,follow by 50 then 100
>  > uptrend buy signal. Vice versa for sell signal.
>  > 
>  > - Charts to appear in scan should have price within the 30 and 50 
>  SMA
>  > zone. Price can just have the shadow touching 30sma to be included 
>  in
>  > the setup.
>  > 
>  > - If price close 1 bar below 50sma, I'll consider it to be a riskier
>  > trade. I'll will watch out if it bounce off the next day. If not 
>  I'll
>  > void the setup.
>  > 
>  > I usually visually check the chart for such setup. Very difficult 
>  to go
>  > thru all for stocks :(
>  > 
>  > The idea for this strategy is to find those trending stocks and 
>  buying
>  > those that bounce off from the 30-50sma zone. if price drop with a 
>  long
>  > candle cutting thru and close below 50sma, in order to enter we 
>  need it
>  > to bounce off asap and take the buy signal. If it hang around the 
>  area
>  > below 50SMA or around it I'll void the setup. To take the trade 
>  simply
>  > you can use price action to time your entry. Such as breakout from a
>  > short term down trendline, MACD Default setting: minimum 4 down
>  > histogram bar and signal entry on the up histogram bar in the SMA 
>  Zone.
>  > Or if price is already in the zone and there is a small 
>  consolidation in
>  > the zone, Buy at the break of the range top. Plenty of ways to 
>  trade.
>  > 
>  > Hope someone can help construct this SMA scanning criteria.
>  > 
>  > I'll try to post some snapshots of how such setup can be profitable.
>  > 
>  > Dave
>  >
>  
>  Sure, I know this trade.
>  A way back I paid around USD$300-400 for a variation of it and I 
>  spent plenty of time studing the intracies (I won't say if it is a 
>  good trade or not but I got my moneys worth out of the study anyway).
>  
>  I am like CarlaCash - I see better when I am standing on my feet, and 
>  not my head, so unless Carla shares her upside down chart method I 
>  will stick with the bulltrade (don't worry Carla I have also had the 
>  silly idea, in the past, to reverse charts upside down for bear 
>  trading).
>  
>  As an aside, I am inclined to the theory that there is only one trade 
>  we can make and everything is a variation on it (like the Zen 'One 
>  Mind' or the Moody Blues 'Search For The Lost Chord') and this trade 
>  contains all the elements of 'The One Trade' (the exceptions are 
>  things like arbitridge trading, mispriced options etc).
>  
>  Anyway, back to the story.
>  
>  The 'Raw Signal' for this setup is the conjunction of bullish MA's 
>  and the bar crosses the MA from above:
>  
>  1) for any MA the ROC(Field,Periods) > 0 is an easy way to filter for 
>  that condition,
>  
>  2) for the move into the 'zone' from a bull run the filter is that 
>  the prevous low is > short MA and the current low is < short MA.
>  
>  So that filter will give you those stocks that are pre-empting your 
>  specific setup. That list will considerably shorten your search.
>  
>  After that it comes down to what conditions you are going to apply to 
>  your entry (and there are quite a few of them). With this trade that 
>  is where the fun starts. Once the current bar is in the 'zone' what 
>  conditions will you use to filter that list of stocks down to the 
>  short list or the one or two that you will take.
>  
>  You are using one condition?
>  That the close of the bar must not be below the 50 MA?
>  There are a few others to think about as well (that is where I spent 
>  a lot of time)- does it make any difference?
>  
>  Anyway, assuming I have understood you correctly, that is the 
>  starting point.
>  
>  Thanks for sharing your example trades.
>  I can't resist having a look when other traders are generously share 
>  their experiences.
>  
>  BTW - what's the difference between Forex and Stock patterns?
>  They all look the same regardless, don't they?
>  Underlying qualities like standard deviation etc will vary though.
>  
>  brian_z
>  
>  
>      
>                                
> 
>        
> ---------------------------------
> Be a better sports nut! Let your teams follow you with Yahoo Mobile.
Try it now.
>




Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

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

For other support material please check also:
http://www.amibroker.com/support.html
 
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/