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

RE: [amibroker] Trend lines from yesterday



PureBytes Links

Trading Reference Links




<FONT color=#000080 
size=2>Anthony,
<FONT color=#000080 
size=2> 
Thank you for 
sharing.
 
<FONT face="Vladimir Script" color=#000080 
size=5>Rick

  <FONT face=Tahoma 
  size=2>-----Original Message-----From: Anthony Faragasso 
  [mailto:ajf1111@xxxxxxxx]Sent: Friday, May 30, 2003 12:14 
  AMTo: amibroker@xxxxxxxxxxxxxxxSubject: Re: [amibroker] 
  Trend lines from yesterday
  Rick, <FONT face="Courier New" 
  size=3>epintoem,Nand....
   
  Here is a code snippet that I use on Real Time 
  Data....I also have Pivot formulas...etc....
   
  No it is not the Timeframe.dll.....
   
  You can get the .dll from here:
   
  <SPAN 
  >You 
  can get the DLL here:
  <SPAN 
  ><A 
  href="">http://www.amibroker.net/3rdparty/deDateTime.zip
  <SPAN 
  > 
  <SPAN 
  >There 
  is also a help file included with the dll....if you have any questions let me 
  know..
  
  <FONT face=Arial 
  size=2>/********************************************************/
  MarketHours = <FONT color=#0000ff 
  size=1>TimeNum() >= <FONT color=#ff00ff 
  size=1>93000 AND <FONT color=#0000ff 
  size=1>TimeNum() <= <FONT color=#ff00ff 
  size=1>161500;//Set your market hours
  enumMarketHours = BarsSince<FONT 
  size=1>(deFlagFirstBarOfDay<FONT 
  size=1>(93000<FONT 
  size=1>));
  FirstBar = <FONT color=#0000ff 
  size=1>deFlagFirstBarOfDay(<FONT color=#ff00ff 
  size=1>93000);
  
  //Finding High or low in a Time Range 
  OR15High = deTimeRangeHHV<FONT 
  size=1>(H,93000<FONT 
  size=1>,94500<FONT 
  size=1>);
  OR15HighFiltered = IIf<FONT 
  size=1>(OR15High == 0<FONT 
  size=1>, -1e10, 
  OR15High);
  OR15Low = deTimeRangeLLV<FONT 
  size=1>(L,93000<FONT 
  size=1>,94500<FONT 
  size=1>);
  OR15LowFiltered = IIf<FONT 
  size=1>(OR15Low == 0<FONT 
  size=1>, -1e10, 
  OR15Low);
   
  
  DaysBack = 1<FONT 
  size=1>;
  // Note: By adjusting Daysback to a greater value, all the calculations 
  below will go back a number of corresponding days (ie: Daysback = 5 means 5 
  days ago)
  
  YesterdaysHigh = ValueWhen<FONT 
  size=1>(deFlagLastBarOfDay<FONT 
  size=1>(161500<FONT 
  size=1>),HHV<FONT 
  size=1>(H,BarsSince<FONT 
  size=1>(deFlagFirstBarOfDay<FONT 
  size=1>(93000<FONT 
  size=1>))),DaysBack);
  YesterdaysHighFiltered = IIf<FONT 
  size=1>(MarketHours,YesterdaysHigh,-<FONT color=#ff00ff 
  size=1>1e10);
  YesterdaysLow = ValueWhen<FONT 
  size=1>(deFlagLastBarOfDay<FONT 
  size=1>(161500<FONT 
  size=1>),LLV<FONT 
  size=1>(L,BarsSince<FONT 
  size=1>(deFlagFirstBarOfDay<FONT 
  size=1>(93000<FONT 
  size=1>))),DaysBack); 
  YesterdaysLowFiltered = IIf<FONT 
  size=1>(MarketHours,YesterdaysLow,-<FONT color=#ff00ff 
  size=1>1e10);
  YesterdaysClose = ValueWhen<FONT 
  size=1>(deFlagLastBarOfDay<FONT 
  size=1>(16<FONT 
  face="Courier New" color=#ff00ff size=1>15<FONT color=#ff00ff 
  size=1>00),C,DaysBack);
  YesterdaysCloseFiltered = IIf<FONT 
  size=1>(MarketHours,YesterdaysClose,-<FONT color=#ff00ff 
  size=1>1e10);
  
  //Yesterdays Last 2 Hour High and Low
  Yesterdays2HrHigh = ValueWhen<FONT 
  size=1>(deFlagLastBarOfDay<FONT 
  size=1>(16<FONT 
  face="Courier New" color=#ff00ff size=1>15<FONT color=#ff00ff 
  size=1>00),<FONT color=#0000ff 
  size=1>deTimeRangeHHV(H,<FONT color=#ff00ff 
  size=1>140000,<FONT color=#ff00ff 
  size=1>160000),DaysBack); 
  Yesterdays2HrLow = ValueWhen<FONT 
  size=1>(deFlagLastBarOfDay<FONT 
  size=1>(16<FONT 
  face="Courier New" color=#ff00ff size=1>15<FONT color=#ff00ff 
  size=1>00),<FONT color=#0000ff 
  size=1>deTimeRangeLLV(L,<FONT color=#ff00ff 
  size=1>140000,<FONT color=#ff00ff 
  size=1>160000),DaysBack); <FONT 
  face="Courier New" color=#0000ff size=1>
  Plot(C,<FONT 
  face="Courier New" color=#ff00ff size=1>""<FONT face="Courier New" 
  size=1>,colorBlack,styleCandle);<FONT face="Courier New" 
  color=#0000ff size=1>
  Plot<FONT face="Courier New" 
  size=1>(yesterdays2HrLow,<FONT face="Courier New" color=#ff00ff 
  size=1>"Yest2HrLow"<FONT face="Courier New" 
  size=1>,colorWhite,styleLine); <FONT 
  face="Courier New" color=#0000ff size=1>
  Plot<FONT face="Courier New" 
  size=1>(yesterdays2hrHigh,<FONT face="Courier New" color=#ff00ff 
  size=1>"Yest2HrHigh"<FONT face="Courier New" 
  size=1>,colorRed,styleLine);<FONT face="Courier New" color=#0000ff 
  size=1>
  Plot(yesterdayshigh,<FONT 
  face="Courier New" color=#ff00ff size=1>"YestHigh"<FONT 
  face="Courier New" size=1>,colorYellow,styleLine);<FONT 
  face="Courier New" color=#0000ff size=1>
  Plot(yesterdayslow,<FONT 
  face="Courier New" color=#ff00ff size=1>"YestLow"<FONT 
  face="Courier New" size=1>,colorYellow,styleLine);<FONT 
  face="Courier New" color=#0000ff size=1>
  Plot<FONT face="Courier New" 
  size=1>(yesterdaysclose,<FONT face="Courier New" color=#ff00ff 
  size=1>"YestClose"<FONT face="Courier New" 
  size=1>,colorBrightGreen,styleLine);
   
  <FONT face=Arial 
  size=2>Anthony
  <BLOCKQUOTE 
  >
    ----- Original Message ----- 
    <DIV 
    >From: 
    <A title=RickParsons@xxxxxxxxxxxxxxx 
    href="">Rick Parsons 
    To: <A title=amibroker@xxxxxxxxxxxxxxx 
    href="">amibroker@xxxxxxxxxxxxxxx 
    Sent: Thursday, May 29, 2003 2:15 
    PM
    Subject: [amibroker] Trend lines from 
    yesterday
    
    I'm brain 
    dead today!
    <SPAN 
    class=550291118-29052003> 
    How do I 
    setup a trendline using function "plot", on 1 minute charts based on 
    YESTERDAY's High, Low and Close?
    <SPAN 
    class=550291118-29052003> 
    And find 
    YESTERDAY's HIGH and LOW in the last two hours of the day, on 1 minute 
    charts?
    <SPAN 
    class=550291118-29052003> 
    <SPAN 
    class=550291118-29052003>Thanks,
     
     
    <FONT face="Vladimir Script" color=#000080 
    size=5>Rick
     
    Send BUG REPORTS to <A 
    href="">bugs@xxxxxxxxxxxxxSend SUGGESTIONS 
    to <A 
    href="">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. 
    
  <BLOCKQUOTE 
  ><FONT 
    face="Courier New">---Outgoing mail is certified Virus 
    Free.Checked by AVG anti-virus system (<A 
    href="">http://www.grisoft.com).Version: 
    6.0.484 / Virus Database: 282 - Release Date: 
5/28/2003Send 
  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












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.