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

Re: [amibroker] Re: Does this work in AB?



PureBytes Links

Trading Reference Links

OK - thanks for the example!

Steve

----- Original Message ----- 
From: "Tomasz Janeczko" <amibroker@xxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Friday, August 19, 2005 10:23 AM
Subject: Re: [amibroker] Re: Does this work in AB?


> Hello,
>
> It is not about speed, but about user friendliness.
>
> You guys do not think about all consequences of your "ideas". I do (I 
> really spend long hours thinking about functionality,
> so each and every bit is well-thought and if something works some way then 
> it means
> that there is good reasoning behind it).
>
> It makes no sense to reset parameters the way you wanted
> because, if you had formula that consisted of hundreds of parameters
> and they were reset each time formula is modified it would be
> HUGELY user-unfriendly - you would need then to re-adjust all parameter 
> values
> by hand. Not an option.
>
> If you want global parameter it is very easy to do, but not the way you 
> attempted.
>
> Instead use:
>
> 1. In the "MASTER" formula (that controls other charts) write:
>
> value = Param( "global param", 1, 1, 20, 1 );
> oldvalue = StaticVarGet( "MyGlobalParam" );
> if( oldvalue != value )
> {
> StaticVarSet( "MyGlobalParam", value );
> AB = CreateObject("Broker.Application");
> AB.RefreshAll(); // refreshes other charts
> }
>
> 2. In alls "SLAVE" formulas (the ones that USE global parameter) write 
> single line:
>
> value = StaticVarGet("MyGlobalParam");
>
>
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message ----- 
> From: "Steve Dugas" <sjdugas@xxxxxxxxxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Friday, August 19, 2005 3:14 AM
> Subject: Re: [amibroker] Re: Does this work in AB?
>
>
>> You have StaticVarGet function inside Param function - Param caches its
>> values and does not automatically reread them. The 2 panes are not 
>> running
>> the same AFL file - they are running seperate copies of the original 
>> created
>> in Drag-Drop folder, so changing Param on one won't change the other. You
>> could try removing the Param statement.
>>
>> I have also had problems doing things I wanted due to the fact that Param
>> values get cached. I sent a note to support asking if TJ could add a
>> cache/nocache option, but haven't heard back. I understand the need for
>> speed, but to me, the loss of functionality sometimes outweighs the gain 
>> in
>> speed ( especially where charts are concerned - would anyone notice if it
>> took 50 milliseconds or 500 milliseconds to plot a chart? )
>>
>> Steve
>>
>> ----- Original Message ----- 
>> From: "mmqp" <mmqp@xxxxxxxxx>
>> To: <amibroker@xxxxxxxxxxxxxxx>
>> Sent: Thursday, August 18, 2005 8:04 PM
>> Subject: [amibroker] Re: Does this work in AB?
>>
>>
>>> So the word "static" means for within a chart pane specific?  I
>>> thought static variable would be available for multiple indicator.
>>> This is why I tried to do the way I mentioned.  Please clarify.
>>>
>>> --- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxxx> wrote:
>>>> parameters are stored as chart pane specific, so that we can show the
>>>> same indicator in more than one chart and vary the parameters in each
>>>> pane
>>>>
>>>> On 8/19/05, danclark_public <dan_public@xxxx> wrote:
>>>> > Hi,
>>>> >
>>>> > I did something similar using StaticVarSet and StaticVarGet.  In my
>>>> > situation, changing the variable in the StaticVarSet pane merely set
>>>> > the variable.  I needed a "click" event in the StaticVarGet "Target"
>>>> > pane to activate the code.
>>>> >
>>>> > Try clicking in the Target pane.
>>>> >
>>>> > Regards,
>>>> >
>>>> > Dan.
>>>> >
>>>> >
>>>> >
>>>> > --- In amibroker@xxxxxxxxxxxxxxx, "mmqp" <mmqp@xxxx> wrote:
>>>> > > These codes does not generate errors but do not perform as 
>>>> > > expected.
>>>> > > I try to create a static variable so I could use it across all
>>>> > > formulas/panes.  But changing value on one pane does not reflect
>>>> > > change of another.  Here is the code:
>>>> > >
>>>> > > Reading static variable from another pane/formulas
>>>> > >
>>>> > > RSI_lb = Param ("RSI LookBack",StaticVarGet
>>>> > ("Global_IFT_RSI_lb"),1,25,1);
>>>> > >
>>>> > > setting new value to static variable so it can be used in other
>>>> > > formulas/panes
>>>> > >
>>>> > > StaticVarSet ("Global_IFT_RSI_lb", RSI_lb );
>>>> > >
>>>> > > 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 other support material please check also:
>>>> > http://www.amibroker.com/support.html
>>>> >
>>>> >
>>>> > Yahoo! Groups Links
>>>> >
>>>> >
>>>> >
>>>> >
>>>> >
>>>> >
>>>> >
>>>> >
>>>>
>>>>
>>>> -- 
>>>> Cheers
>>>> Graham
>>>> AB-Write >< Professional AFL Writing Service
>>>> Yes, I write AFL code to your requirements
>>>> http://e-wire.net.au/~eb_kavan/ab_write.htm
>>>
>>>
>>>
>>>
>>>
>>> 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
>>
>>
>> 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
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
> 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hkikeq1/M=362131.6882500.7825259.1493532/D=groups/S=1705632198:TM/Y=YAHOO/EXP=1124647879/A=2889190/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Put more honey in your pocket. (money matters made easy) Welcome to the Sweet Life - brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~-> 

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/