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

Re: [amibroker] Re: Backtest using equity curve



PureBytes Links

Trading Reference Links




<FONT face=Arial color=#0000ff 
size=2>Dorz,
<FONT face=Arial color=#0000ff 
size=2> 
Why 
are you changing the close value to a string? You could simply 
write...
<FONT face=Arial color=#0000ff 
size=2> 

Title= <FONT color=#ff00ff 
size=2>"Close="+<FONT 
size=2>C
<FONT 
face="Times New Roman" color=#000000 size=2>to get your value. To find 
the difference between today's close and yesterdays you must use the Ref 
function (see help file for details). So....
<FONT 
size=2>+"Chg= "<FONT face=Arial 
color=#282828>+ (<FONT 
color=#000000>C<FONT face=Arial 
color=#282828>-Ref<FONT face=Arial 
color=#282828>(<FONT 
color=#000000>C<FONT face=Arial 
color=#282828>,-1<FONT face=Arial 
color=#282828>));
<FONT 
size=2>Now this will give the full value, if you want to limit the out put to 
say, 2 decimal places you would use Writeval (again look in the help files). So 
the complete code could be....<FONT face=Arial 
color=#282828>
Title= <FONT color=#ff00ff 
size=2>"Close="+<FONT 
size=2>C+<FONT 
face=Arial color=#ff00ff size=2>" Chg= "<FONT face=Arial color=#282828 
size=2>+WriteVal<FONT 
face=Arial color=#282828 size=2>( <FONT face=Arial 
size=2>C-<FONT 
face=Arial color=#0000ff size=2>Ref<FONT face=Arial color=#282828 
size=2>(C<FONT face=Arial 
color=#282828 size=2>,-<FONT face=Arial color=#ff00ff 
size=2>1),<FONT face=Arial 
color=#ff00ff size=2>1.2<FONT face=Arial color=#282828 
size=2>);
 
Regards, 
Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: dorzfn@xxxxxxxxx 
[mailto:dorzfn@xxxxxxxxx]Sent: Monday, January 26, 2004 11:01 
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] using 
the title functionTitle=   // here you can 
add prices like: 
"Close="+NumToStr(Close,1.2)+"chg="+NumToStr((C)-(C,1))+In 
this 3rd line of code,I'm trying to the point change from the day before 
bar, I've done it using the plot function. What am i doing wrong here? thank 
you for all the help in the past with such basic ? for most of you here,but 
with out this message board I wouldnt been able to do most of the code you 
all have helped me with  .. Dorz 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 


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 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.