A "cheap and dirty" trick that I use often is to print out values to the Interpretation window.  For example:
I have three arrays, Long, mBuyPrice, and mSellPrice which are intermediate values and I don't want to plot or display them on my charts.  So I just add the following code:

EnableTextOutput(True);
"Long =" + WriteVal(Long);
"Buy = " + WriteVal(mBuyPrice);
"Sell =" + WriteVal(mSellPrice);

Then as I move the cursor from bar to bar on a chart, the values for these three arrays are displayed in the Interpretation window.

Also, the Interpretation window is a great place to write instructions, if like me you have a lousy memory.  Or maybe you want to send your newest/greatest .afl to a newbie friend.  Example:

EnableTextOutput(True);
"Directions for use:\n";
"For Grid lines, use 'Show dates' and 'Middle'.  Using 'Logarithmic' is optional.\n";
"The Y-axis shows 'normalized' price.\n";
"Planting the 'left' pole by either double clicking or using F12 key, sets new 'unity' date.  Otherwise 'unity' is on far left.\n";
"Change colored symbols by right clicking chart and selecting 'Parameters'.\n";
"Switch any colored trace off by setting its parameter to 'null'.\n";

-- Keith

Joe Landry wrote:

Hello Craig. Welcome. Here's the bit I can help you with and would like to
hear
about test frameworks.

Look up _TRACE function in the Amibroker function index and it will
point you to this URL.

http://www.sysinternals.com/

My simplistic approach to seeing how a function works is to use the AA
Explore function.
Here I can get a look at how the logic is working or if a function works the
way I understand it.
I'm not an experienced software developer by a long shot, but a "code
monkey".

Best regards
JOE

----- Original Message -----
From: "craig.broadbear" <craig.broadbear@gmail.com>
To: <[EMAIL PROTECTED]ps.com>
Sent: Sunday, August 20, 2006 5:49 AM
Subject: [amibroker] looking for debugging / developing tips

> Hi,
> I have just started with AmiBroker. I am an experienced software
> developer looking for some general wisdom on how to debug AmiBroker
> scripts. e.g.
> Does anyone use a debugger (which one) ?
> Are there specific debugging functions?
> What techniques are considered common practice?
> Does anyone use test frameworks?
>
> Cheers,
> Craig
>
>
>
>
>
>
>
>
>
> Please note that this group is for discussion between users only.
>
> To get support from AmiBroker please send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> For other support material please check also:
> http://www.amibroker.com/support.html
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>

__._,_.___

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html






SPONSORED LINKS
Software support Small business finance Business finance online
Business finance training Business finance course


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to