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

RE: [amibroker] Connecting indicator window and AA parameters possible ?


  • To: <amibroker@xxxxxxxxxxxxxxx>
  • Subject: RE: [amibroker] Connecting indicator window and AA parameters possible ?
  • From: "Herman van den Bergen" <psytek@xxxxxxxx>
  • Date: Wed, 25 Jan 2006 12:33:24 -0500

PureBytes Links

Trading Reference Links

Sorry, instead of calling the variable "InAutomaticAnalyzer" I should have
more accurately called it "InBackTester". Please read help on the Status()
function. This should work:

InBacktester= Status("Action") == 5;
InExplore 	= Status("Action") == 4;
InIndicator = Status("Action") == 1;
Period 	= Param("Period",5,1,10,1);
if( InIndicator ) StaticVarSet("Period",Period); // We only set the
staticvar from indicators
if( InExplore OR InBacktester ) Period = StaticVarGet("Period");
Filter = 1;
AddColumn(Period,"Period");



-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]On Behalf
Of Klaus Korneker
Sent: Wednesday, January 25, 2006 9:38 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Connecting indicator window and AA parameters
possible ?


Hello Herman,

thanks for your code, i have tried it out right now, however without
success.

I have added a column with periods for automatic analyzer, but the
parameters are not the same i have defined through the indicator parameters.
Do you see any reason ?


InAutomaticAnalyzer = Status("Action") == 5;
Period = Param("Period",5,1,10,1);
StaticVarSet("Period",Period);
if( InAutomaticAnalyzer ) Period = StaticVarGet("Period");

Filter = 1;
AddColumn(Period,"Period");

Regards

Klaus



From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of Herman van den Bergen
Sent: Tuesday, January 24, 2006 9:56 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Connecting indicator window and AA parameters
possible ?

For example you could assign a period set with a Param() in indicator window
to a Staticvariable that you would read in the AA, something along this
line:

InAutomaticAnalyzer = Status("Action") == 5;
Period = Param("Period",5,1,10,1);
Staticvarset("Period",Period);
if( InAutomaticAnalyzer ) Period = staticvarget("Period");

You could also set the param in an indicator formula and read the
StaticVariable in a different AA formula. StaticVaribale can be read from
anywhere.

best regards,
herman
-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]On Behalf
Of Grover Yowell
Sent: Tuesday, January 24, 2006 10:24 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Connecting indicator window and AA parameters
possible ?
Herman,

Can you provide a code snippet to illustrate this?  I have played around
with it but don't have it working.

Thanks,
Grover




From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of Herman van den Bergen
Sent: Thursday, January 19, 2006 9:09 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Connecting indicator window and AA parameters
possible ?

you can use Staticvariables: use Param -> SetStatic in the indicator and use
GetStatic in the AA.

herman.
-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]On Behalf
Of Klaus Korneker
Sent: Thursday, January 19, 2006 8:02 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Connecting indicator window and AA parameters possible
?
Importance: High
Hello,

i am working on a system and would like to connect the parameter values,
otherwise i have to change the parameters in indicator window and automatic
analysis twice.

Is there any solution ?

Regards

Klaus



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

 Visit your group "amibroker" on the web.

 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.




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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

<*> 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:
    http://docs.yahoo.com/info/terms/