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

Re: [amibroker] lower highs, lower lows



PureBytes Links

Trading Reference Links




Ron,
 
I don't have the code you are looking for, but just 
a suggestion:
 
If you change the format of your code and break it 
into groups, it will be a lot easier to read and maintain...
 
Example: 
Change <FONT 
color=#0000ff>MA(itema,40)>=<FONT 
color=#0000ff>MA(itema,20)  
to:
MA40-20 = <FONT 
color=#0000ff>MA(itema,40)>=<FONT 
color=#0000ff>MA(itema,<FONT 
color=#ff00ff>20);
<FONT 
color=#000000>MA5-10  =   MA<FONT 
size=1>(itema,5<FONT 
size=1>)<=MA<FONT 
size=1>(itema,10<FONT 
size=1>);
 
Sell = MA4020 and MA510 and ....
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  mrdavis9 
  
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibrokeryahoogroups 
  Cc: <A title=framebyframe@xxxxxxxxxxx 
  href="">jeff davis 
  Sent: Wednesday, July 16, 2003 11:51 
  PM
  Subject: [amibroker] lower highs, lower 
  lows
  
  A lot of traders are expecting the markets 
  to turn down any day now, so I made an CRUDE AA scan that 
  is designed to find stocks that have been trending up 
  for awhile,  but which have recently started trending 
   down.   Although I have posted the code  below, I am 
  not looking  for suggestions for improving this CRUDE 
  scan.   I am still struggling with AFL, so I am not yet able to 
  create the AA scan that will look for exactly the conditions that I want to 
  scan for.    I really want  a  scan that will find 
   those symbols that meet the Weinstein  definition of the ending of 
  an uptrend and the entering of a downtrend.   I am aware that DT is 
  a little suspicious of Weinstein because he wears a ring on his 
  pinkie.  It bothers me a little also, but at least he doesn't 
  wear a ring in his nose, at least not yet, as far as I know .   
  I am thinking that a lot of Amibroker users would like to have a scan which 
  will find the conditions which are  necessary for finding a Weinstein 
  change from uptrend to downtrend.   My understanding of Weinstein 
  trends is that after a series of higher highs and higher lows, we suddenly see 
  a lower low, then we need to be worried.  After the appearance of this 
  first lower low, we need to keep watching till the next high occurs.  If 
  this next high is lower than the previous high, then we are officially in a 
  Weinstein downtrend.   The attached chart that resulted from my 
  CRUDE coding is approximately the kind of results that will result from a 
  precise coding of the Weinstein change of trend definition.  Since an AA 
  scan for these Weinstein change of trend conditions will  be useful to a 
  lot of Amibroker users, I would greatly appreciate it if some experienced 
  Amibroker coders would post the code for that looks for these precise 
  condtions.  Ron D 
  itema=C; 
  
  Sell= MA<FONT 
  size=1>(itema,40<FONT 
  size=1>)>=MA<FONT 
  size=1>(itema,20) 
  AND MA<FONT 
  size=1>(itema,5<FONT 
  size=1>)<=MA<FONT 
  size=1>(itema,10<FONT 
  size=1>)/* AND MA(itema,10)>= MA(itema,4) 
  AND MA(itema,4)>= MA(itema,5) AND MA(itema,5)>=MA(itema,6)AND 
  MA(itema,6)>=MA(itema,7) AND MA(itema,7)>=MA(itema,9) AND MA(itema,10) 
  >= MA(itema,12) AND MA(itema,20)>=MA(itema,10) */<FONT 
  size=1>AND Ref<FONT 
  size=1>(Cross<FONT 
  size=1>(StochD<FONT 
  size=1>(14),<FONT 
  color=#0000ff size=1>StochK(<FONT color=#ff00ff 
  size=1>14)),-<FONT color=#ff00ff 
  size=1>1);/* AND 
  StochK(14)>=80; */
  Buy=(0<FONT 
  size=1>);
  PlotShapes( shapeUpArrow * Buy + 
  shapeDownArrow * Sell, <FONT color=#0000ff 
  size=1>IIf( Buy, colorGreen, colorRed 
  ) )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


  ADVERTISEMENT 









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.