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

[amibroker] Re: Swing Trade Scan



PureBytes Links

Trading Reference Links


Hi Tomasz,
 
Thanks for the clarifications, and practical application examples.
 
As for the portfolio trading stuff, I hope that will make your agenda soon.  I'm managing with Osaka plugin, but I'd love a more straightforward approach.
 
Kind Regards,
GaryTomasz Janeczko <amibroker@xxxxxx> wrote:




Hello,
 
See this and following thread for applications of VarSet/VarGet (dynamic variables)
 
http://finance.groups.yahoo.com/group/amibroker/message/64690
 
As for StaticVarSet/StaticVarGet - they are just global / persistent variables (see my earlier explanations)
 
And no, these new functions do not offer any new functionality for portfolio backtesting.
Best regards,Tomasz Janeczkoamibroker.com

----- Original Message ----- 
From: Gary A. Serkhoshian 
To: amibroker@xxxxxxxxxxxxxxx 
Sent: Saturday, July 10, 2004 11:17 PM
Subject: [amibroker] Question on VarSet and VarGet for Tomasz and programming gurus

Tomasz,
 
For us non-programmers, I get the sense of importance that VarSet and VarGet offer, but not in the practical sense.
 
For PT, is there a way to find out which positions are open, what there positionscores are, etc. using these functions.
 
I'm sure you have some very practical reasons for offering such functionality, but I'm not seeing it.
 
Thanks,
Gary
 
Tomasz Janeczko <amibroker@xxxxxx> wrote:
Correct Dimitris. StaticVarSet / StaticVarGet.Best regards,Tomasz Janeczkoamibroker.com----- Original Message ----- From: "DIMITRIS TSOKAKIS" <TSOKAKIS@xxxxxxxxx>To: <amibroker@xxxxxxxxxxxxxxx>Sent: Saturday, July 10, 2004 10:30 AMSubject: [amibroker] Re: Static variables> --- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx> > wrote:> > Hello,> > > > I received the following two questions by support channel> > and thought that reply may interest more people:> > > > Q1.   What is the difference between    StaticSetVar("x",5); and  > x=5;> > > Tomasz,> I suppose you mean StaticVarSet("x",5).> Dimitris Tsokakis> > A1: Read me says:> > ** Static
 variable - the variable has static duration (it is > allocated when the program begins and deallocated when the program> > ends)> > and initializes it to Null unless another value is specified. > Static variables allow to share values between various formulas.> > Only NUMBER and STRING static variables are supported now (not > ARRAYS).> > > > So, speaking about the difference> > x=5; is regular variable that "lives" only DURING execution of the > formula.> > > > StaticSetVar("x",5);> > - gives you an access to static data storage that REMAINS between > execution of formulas (as long AmiBroker is running)> > and is accessible from ANY formula.> > You can call StaticGetVar("x") from a DIFFERENT formula and you > will get the value set  from another formula.> > > > So Static variables are BOTH persistent (as
 long as AmiBroker is > running) and global (in "wider" scope - between different formulas)> > > > Static variables can be used instead of external files to store > values between formula invocations.> > > > > > -----------> > Q2. Can I access vars that are defined in a DLL by using > StaticVarGet?> > > > A2: Only if you create them using StaticVarSet.> > (You can call StaticVarSet from DLL using gSite.CallFunction)> > > > > > Best regards,> > Tomasz Janeczko> > amibroker.com> > > > > Check AmiBroker web page at:> http://www.amibroker.com/> > Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html > Yahoo! Groups Links>
 > > >  > > Check AmiBroker web page at:http://www.amibroker.com/Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 


Do you Yahoo!?Yahoo! Mail - Helps protect you from nasty viruses. Check AmiBroker web page at:http://www.amibroker.com/Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html Check AmiBroker web page at:http://www.amibroker.com/Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
		Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.


Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html








Yahoo! Groups Sponsor


  ADVERTISEMENT 












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 the Yahoo! Terms of Service.