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

Re: [amibroker] Debugging Help



PureBytes Links

Trading Reference Links

Hi - I generally haven't used DebugView much at all, I find it easier to 
debug "the old-fashioned way", i.e. start close to the beginning and insert 
Plot statements after arrays are created, followed by a  /* to comment out 
the remaining code. If early arrays look as expected, then cut out the Plot 
staements, paste a little further down and change the array names. Works 
well for finding the step where you "went astray".

If you really want to plot values for just one bar, a couple of ways would 
be to use Datenum() ( to specify date ) or BarIndex() ( to specify bar ), 
for example

Plot( IIF( DateNum() == 1080530, MyArray, Null ), "MyArray", colorblue, 
styleHistogram );

But I think you can learn more by plotting and seeing the entire 
array...Good luck!

Steve

----- Original Message ----- 
From: "sidhartha70" <sidhartha70@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Sunday, June 01, 2008 7:32 PM
Subject: [amibroker] Debugging Help


> Hi Guys,
>
> I'm debugging two routines with the help of DebugView.
>
> The two routines 'should' produce the same output. But they don't. One
> uses for...next looping structures, the other uses just pure AFL array
> manipulation functions.
>
> I'm kind of new to this type of debugging process (i.e. with AFL &
> DebugView)... and I'm finding it difficult to trace my steps within
> the two routines.
>
> Specifically I'm finding it difficult to get both routines to execute
> on the same specific bar... How can isolate one bar of a chart or one
> pass of execution and output variable contents at that point ONLY for
> the two routines...? All this given the differing structures of the
> two rotuines...
>
> Many Thanks
>
>
> ------------------------------------
>
> 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/