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

[amibroker] Stochrsi



PureBytes Links

Trading Reference Links




<FONT face=Arial 
color=#0000ff size=2>Nice job, duude!  Pretty slick, 
eh?
<FONT face=Arial 
color=#0000ff size=2> 
<FONT face=Arial 
color=#0000ff size=2>d
<BLOCKQUOTE 
>
  
  
  From: recce101 [mailto:ned@xxxxxxxxxxxxx] 
  Sent: Thursday, July 01, 2004 10:36 PMTo: 
  amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Re: Global 
  Parameter?? Success!!
  My thanks to Herman, dingo, Dimitris, and Ara for your help. 
  For the info of anyone else who's interested in doing this sort of thing, 
  here are my modified test files which produce the result I've been 
  seeking. Access the right-click parameter box in the Parameters pane, 
  move the slider as desired, close the box, hit F5, and the ATR and RSI 
  indicators are immediately updated to the new period value. The 
  TestPeriod.par file created by the SS function is stored in the main 
  AmiBroker folder and re-saves itself automatically whenever the slider 
  is moved (even before the parameter box is closed). Now the fun can begin. 
  Here are the files:*** File ...\AmiBroker\AFL\Parameters.afl 
  ***/* -- Parameters -- */function 
  SS(FileName,String)      
  {      
  fh=fopen(FileName,"w");      
  if(fh)            
  {            
  fputs(String,fh);      
        fclose(fh);      
        }      return 
  fh;      
  }TestPeriod=Param("TestPeriod",10,5,20,1);TestPeriodString=NumToStr(TestPeriod,1.0);SS("TestPeriod.par",TestPeriodString);Title="\\c55"+Name()+"\\c42    
  Parameters"+"\\c49    TestPeriod: 
  \\c55"+WriteVal(TestPeriod,1.0);*** File 
  ...AmiBroker\AFL\TestATR.afl ***/* -- TestATR -- */function 
  RS(FileName)      
  {      
  fh=fopen(FileName,"r");      
  Str=fgets(fh);      return 
  Str;      
  }TestPeriodString=RS("TestPeriod.par");TestPeriod=StrToNum(TestPeriodString);Plot(ATR(TestPeriod),"",colorPink,styleLine);Title="\\c55"+Name()+"\\c42    
  TestATR"+"\\c49    TestPeriod (for graph): 
  \\c55"+WriteVal(TestPeriod,1.0);*** File 
  ...AmiBroker\AFL\TestRSI.afl ***/* -- TestRSI -- */function 
  RS(FileName)      
  {      
  fh=fopen(FileName,"r");      
  Str=fgets(fh);      return 
  Str;      
  }TestPeriodString=RS("TestPeriod.par");TestPeriod=StrToNum(TestPeriodString);Plot(RSI(TestPeriod),"",colorBrightGreen,styleLine);Title="\\c55"+Name()+"\\c42    
  TestRSI"+"\\c49    TestPeriod (for graph): 
  \\c55"+WriteVal(TestPeriod,1.0);Best regards, 
  NedCheck 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.