Re: [amibroker] cannot control the ParamList() from inside the debugger?

 

aha!  Now I understand why Marcin said to do reset all from Analysis window .  I had ignored the "analysis" part because I had not understood what he meant.

I can confirm that by changing or reseting the params from the analysis window does change what I see in the debugger (from the chart).

Thank you very much.



On Fri, Apr 22, 2016 at 10:54 AM, Tomasz Janeczko groups@amibroker.com [amibroker] <amibroker@yahoogroups.com> wrote:
 

Hello,

Thank you very much for your e-mail.

You need to know that debugger is not connected to chart. It is separate.

When you debug the formula it always runs in "analysis/backtester" context and always uses parameter with chart ID == 0,
i.e. parameter from analysis window.

So you may go to Analysis window and change parameters there.

Best regards,
Tomasz Janeczko
amibroker.com



On 2016-04-17 17:04, 'B. Pitatzidis' bobptz@gmail.com [amibroker] wrote:
It seems that when I go into debugger, the ParamList() function always selects the first option as default, even though I have selected the ordinal 3 (fourth) selection.  Ideally I would like to select a parameter even from inside debugger.

Am I doing something wrong?  How can I make this script select option "actionBacktest" when in debug mode?


>>>>>>>>>>>>>>>
stactionStr = ParamList( "Run Status", "Auto Detect|actionIndicator|actionExplore|actionBacktest", 3 );

switch( stactionStr )
{
case "Auto Detect":
    staction = status( "actionEX" ) ;
    break;

case "actionIndicator":
    staction = actionIndicator ;
    break;

case "actionExplore":
    staction = actionExplore ;
    break;

case "actionBacktest":
    staction = actionBacktest ;
    break;

default:
    staction = status( "actionEX" ) ;
    break;
}
printf("staction = %g\n",staction);
<<<<<<<<<<<<<


This is the output:

from default (no change of parameters) run of the script:
actionBacktest
staction = 5


from debugger:

Auto Detect
staction = 12


AB 6.12.0 64bit


__._,_.___

Posted by: "B. Pitatzidis" <bobptz@gmail.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (3)

Upgrade your account with the latest Yahoo Mail app
Get organized with the fast and easy-to-use Yahoo Mail app. Upgrade today!

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/


.

__,_._,___

Related Posts


EmoticonEmoticon

:)
:(
=(
^_^
:D
=D
=)D
|o|
@@,
;)
:-bd
:-d
:p
:ng
:lv