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

RE: [amibroker] Optimization or Backtest, which is faster ?



PureBytes Links

Trading Reference Links




if you 
work Real Time the charts refresh at the tick rate, this is often faster than 
the refresh rate you selected in Preferences. With high volume stocks 
the lag from one pane to the next may be small. <SPAN 
class=687212511-22072004>There has to be a 
processing order for panes, no way to get around that, however i do not know the 
order. 
<FONT 
face=Arial color=#0000ff size=2> 
<SPAN 
class=687212511-22072004><FONT face=Arial 
color=#0000ff>herman

<FONT face=Arial 
color=#0000ff size=2> 
<SPAN 
class=687212511-22072004> 
<SPAN 
class=687212511-22072004> -----Original Message-----From: 
Ara Kaloustian [mailto:ara1@xxxxxxxxxx]Sent: Wednesday, July 21, 2004 
10:59 PMTo: amibroker@xxxxxxxxxxxxxxxSubject: Re: 
[amibroker] Static VariablesImportance: 
High

  Herman,
   
  I managed to get the variables read across 
  indicators OK....  Thanks for the sample code.
   
  I want to have a price chart at top of screen and 
  several indicators below... and Static variables would be ideal to tranfer 
  data to the indicators from the price chart....
   
  However, I recall somewhere that the order of 
  processing is not guaranteed by AB. As I understand it, it is usually top to 
  bottom, but not necessarily so. I beleive it is processed in order of 
  creation... which may also mean that the order of processing changes if you 
  edit one indicator....
   
  If indicator #2 is processed before price chart, 
  then the value received by ind. #2 will always be one processing step 
  behind.  I am not sure if this creates a real problem or just a minor 
  error - that might even be undetectable - but it's something that needs 
  addressing and it's importance would be application dependent
   
  Have you come across this as an 
  issue?
   
  Ara
  <BLOCKQUOTE dir=ltr 
  >
    ----- Original Message ----- 
    <DIV 
    >From: 
    Herman van den 
    Bergen 
    To: <A title=amibroker@xxxxxxxxxxxxxxx 
    href="">amibroker@xxxxxxxxxxxxxxx 
    Sent: Wednesday, July 21, 2004 12:14 
    PM
    Subject: RE: [amibroker] Static 
    Variables
    
    <FONT face=Arial color=#0000ff 
    size=2>Yes Ara, using it all the time...could you show your problem 
    code?
    <FONT face=Arial color=#0000ff 
    size=2> 
    <FONT face=Arial color=#0000ff 
    size=2>you just set the variables in your master indicator using 
    StaticVarSet() and read them whenever you need the value with 
    StaticVarGet(). Works like a dandy for me! Remember you may need to 
    initialize the variables on the first pass, i use an IsInitialized variable 
    for this:
    <FONT face=Arial 
    color=#000000 size=2> 
    <FONT face=Arial 
    size=2>
    Reset = <FONT 
    size=2>Param("Reset Static 
    Variables",0<FONT 
    size=2>,0,<FONT 
    size=2>1,1<FONT 
    color=#000000><FONT 
    size=2>);if<FONT face=Arial 
    size=2>( IsEmpty(StaticVarGet("IsInitialized")) OR Reset) // An 
    Optional Reset is done with a Param() item{<SPAN 
    class=078120619-21072004><SPAN 
    class=078120619-21072004>//... add 
    your own variables here 
    ...StaticVarSet("DownTicks",0);StaticVarSet("UpTicks", 
    0);StaticVarSet("IsInitialized",1); // 
    This is set once for every AB run and is never 
    reset}
    
    <SPAN 
    class=078120619-21072004>//... add 
    your own variables here ...Downticks = 
    StaticVarGet("DownTicks");Upticks = 
    StaticVarGet("UpTicks");
    <FONT face=Arial color=#0000ff 
    size=2>herman.
    <FONT face=Arial color=#0000ff 
    size=2> 
    
      <FONT face=Tahoma 
      size=2>-----Original Message-----From: Ara Kaloustian 
      [mailto:ara1@xxxxxxxxxx]Sent: Wednesday, July 21, 2004 3:04 
      PMTo: AB-MainSubject: [amibroker] Static 
      Variables
      There was some mention that Static variables 
      can be accessed from all indicator on same scree...
       
      My simple testing could not accomplish 
      this.
       
      Has anyone verified that they can or can not 
      be accessed from all indicators on screen?
       
      Tahnks
       
      AraCheck AmiBroker 
      web page at:<A 
      href="">http://www.amibroker.com/Check 
      group FAQ at: <A 
      href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
      Check AmiBroker web page at:<A 
      href="">http://www.amibroker.com/Check 
      group FAQ at: <A 
      href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
      Check AmiBroker web page 
  at:<A 
  href="">http://www.amibroker.com/Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  


Check AmiBroker web page at:
http://www.amibroker.com/

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.