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

[amibroker] Number of days between two Dates



PureBytes Links

Trading Reference Links




Could you please explain what this 'R' channel is? 
>From what I see when the black line  (close) is outside the channel you 
should be long or short. However there can be false breakouts too.<FONT 
face=Arial size=2>
 
Herbert
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Mr Valley 
  
  To: <A title=amibroker-ts@xxxxxxxxxxxxxxx 
  href="">AmiBroker TS 
  Sent: Tuesday, February 03, 2004 8:36 
  AM
  Subject: [amibroker] Exploiting the 'R' 
  Channel
  
  <SPAN 
  class=000495805-03022004>All,
  <SPAN 
  class=000495805-03022004> 
  I did up what I 
  call the 'R' channel that seems to capture any move fairly closely ( 
  especially in relation to StochRSI and CMO tops and 
  bottoms)
  <SPAN 
  class=000495805-03022004> 
  I've looked at it 
  from various symbols, markets and time frames and it stills seems to 
  match fairly closely.
  <SPAN 
  class=000495805-03022004> 
  I'm not good at 
  coding limits and stops, yet.
  It seems to notify 
  fairly well, but I need some help coding the profitable exploitation of 
  it.
  <SPAN 
  class=000495805-03022004> 
  Market makers can 
  exploit the spread.
  <SPAN 
  class=000495805-03022004>I am posting it with 
  the hope the thread remains a positive and constructive learning experience 
  for all.
  <SPAN 
  class=000495805-03022004>Let's see how creative we can 
  be.
  <SPAN 
  class=000495805-03022004>And, In the end, profitable for 
  all. 
  <SPAN 
  class=000495805-03022004> 
  Thanks for your 
  thoughts and the help in advance.
  Attached in the 
  .afl
  <SPAN 
  class=000495805-03022004> 
  Mr  Valley 
  
  <SPAN 
  class=000495805-03022004> 
  
  /* 'R' Channel */
  /*Author Marc Valley */
   
  Var = <FONT face=Arial color=#ff00ff 
  size=1>4;
  M1 = <FONT color=#0000ff 
  size=1>MA(<FONT color=#0000ff 
  size=1>Max(H,Var ),<FONT color=#ff00ff 
  size=1>2);
  L1 = <FONT color=#0000ff 
  size=1>MA(<FONT color=#0000ff 
  size=1>Min(L,Var ),<FONT color=#ff00ff 
  size=1>2);
  K = M1 - L1;
  Num1 = <FONT face=Arial color=#0000ff 
  size=1>sqrt(K);
  Dem1 = <FONT color=#0000ff 
  size=1>sqrt(<FONT color=#ff00ff 
  size=1>1.00+K);
  H1 = (Num1/Dem1)/<FONT face=Arial 
  color=#ff00ff size=1>2;
  Num2 = <FONT color=#0000ff 
  size=1>sqrt(<FONT color=#ff00ff 
  size=1>1.0);
  Dem2 = <FONT color=#0000ff 
  size=1>sqrt(<FONT color=#ff00ff 
  size=1>1+K);
  H2 = ((Num2/Dem2)/<FONT face=Arial 
  color=#ff00ff size=1>2) 
  *C;
  H3 =(H1 + H2) ;
  MAH2MA =<FONT color=#0000ff 
  size=1>MA(L - (H2/<FONT color=#ff00ff 
  size=1>100),Var );
  MAH3MA= <FONT color=#0000ff 
  size=1>MA(H + (H3/<FONT color=#ff00ff 
  size=1>100) ,Var);
  MA3 = (MAH3MA + MAH2MA) /<FONT face=Arial 
  color=#ff00ff size=1>2;
  UCL =( MAH3MA + MA3 )/<FONT face=Arial 
  color=#ff00ff size=1>2;
  LCL = (MA3 + MAH2MA )/<FONT 
  color=#ff00ff size=1>2;<FONT 
  color=#008000 size=1>
  //Buy = INSERT RULES HERE ;
  //Sell = INSERT RULES HERE ;
  //Cover = Buy;
  //Short = Sell;
  //Equity(1);<FONT 
  color=#0000ff size=1>
  Plot<FONT 
  size=1>(Close,"Valley 'R' Channel 
  Close",1<FONT 
  size=1>,8<FONT 
  size=1>);
  //Plot(L,"Low",6,8);
  //Plot(Close,"Close",1,64);<FONT 
  color=#0000ff size=1>
  Plot(MAH2MA 
  ,"H2",<FONT 
  color=#ff00ff size=1>5,<FONT color=#ff00ff 
  size=1>4);
  Plot(MAH3MA 
  ,"H3",<FONT 
  color=#ff00ff size=1>4,<FONT color=#ff00ff 
  size=1>4);
  Plot(MA3 
  ,"Center",<FONT 
  color=#ff00ff size=1>2,<FONT color=#ff00ff 
  size=1>4);
  Plot(UCL 
  ,"UCL",<FONT 
  color=#ff00ff size=1>10,<FONT color=#ff00ff 
  size=1>4);
  Plot(LCL 
  ,"LCL",<FONT 
  color=#ff00ff size=1>10,<FONT color=#ff00ff 
  size=1>4);<FONT face=Arial color=#008000 
  size=1>
  //Plot(Avg,"Valley 'R' Channel (C) 
  2004 Avg",colorYellow,8);
   
  ////////////////////////////////// Market Trend Plot 
  Section
  //Plot(MA(C,18),"MA18",4,4);<FONT 
  color=#0000ff size=1>
  Plot<FONT 
  size=1>(MA<FONT 
  size=1>(C,40<FONT 
  size=1>),"MA40"<FONT 
  size=1>,7,<FONT 
  color=#ff00ff size=1>4);<FONT 
  color=#0000ff size=1>
  Plot<FONT 
  size=1>(MA<FONT 
  size=1>(C,100<FONT 
  size=1>),"MA100"<FONT 
  size=1>,5,<FONT 
  color=#ff00ff size=1>4);<FONT 
  color=#0000ff size=1>
  Plot<FONT 
  size=1>(MA<FONT 
  size=1>(C,200<FONT 
  size=1>),"MA200"<FONT 
  size=1>,6,<FONT 
  color=#ff00ff size=1>4);<FONT 
  color=#0000ff size=1>
  Plot<FONT 
  size=1>(Close ,"Close"<FONT 
  size=1> + EncodeColor( 
  colorBlack ) ,2, 
  styleNoLine | styleNoRescale 
  );
  <SPAN 
  class=000495805-03022004> 
  Mr 
  ValleySend 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 
  
  
  Yahoo! Groups Links
  
    To visit your group on the web, go to:<A 
    href="">http://groups.yahoo.com/group/amibroker/  

    To unsubscribe from this group, send an email to:<A 
    href="">amibroker-unsubscribe@xxxxxxxxxxxxxxx  

    Your use of Yahoo! Groups is subject to the <A 
    href="">Yahoo! Terms of Service. 
  


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








Yahoo! Groups Sponsor


  ADVERTISEMENT











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.