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

Re: [amibroker] Re: Is it possible to force parameter changes programatically?



PureBytes Links

Trading Reference Links



Jim --
Muthy's suggestion may work if you do thing in the proper order, for example:

param1 = Param("Param1", 5, 1, 10, 1);  // for symbols not specified below
if(name()=="blah") param1=7; // overrides Param() function above
if(name()=="xyz") param1=3;  // overrides Param() function above
the rest of your code follows

-- Keith

japple_55 wrote:

Did that already but the parameters do not actually change when I change the symbol in the chart. The Reset button in the parameters window has to be used to force the change.

--- In amibroker@xxxxxxxxxps.com, "murthysuresh" <money@xxx> wrote:
>
> i dont think so. why dont you just use conditional statements.
> with if(name()=="blah")
> {
> param1=something
> }
>
> or you can use a switch case.
>
> --- In amibroker@xxxxxxxxxps.com, "japple_55" <aimria@> wrote:
> >
> > I have a single system plotted on a chart that I would like to view/test for several symbols, where only the parameters will change according to the symbol being viewed/tested.
> >
> > I've got the parameter changes coded as symbol dependent ("IIF name = ...") and their values reflect properly in the title when I change symbols. But, the system calculations don't update with the new parameters unless I manually reset from the parameters window. Is there a way to force this reset programatically within the AFL code so the changes happen automatically when I change symbols?
> > Thanks,
> > Jim
> >
>



__._,_.___


**** 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/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___