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

RE: [amibroker] Re: Please help with VBScript execution



PureBytes Links

Trading Reference Links

A strong second on Bill Barnards param statements!   I thought I'd done some decent work with Params until I saw Bill's presentation last year.  It was a jaw-dropper.   I realized that I was just scratching the surface.   I immediately glommed onto his techniques and implemented them in my own work. 
 
Yes, Bill is the MASTER param dude!  He makes AB stand up and dance!  And it's not just some minor coding tricks.   His approach the caching parameters and reusing them is a completely new approach.  He thinks WAY outside the box.  
 
Regards,
 
Dan.
 
-------------- Original message --------------
From: "dingo" <dingo@xxxxxxxxxxx>

> IMHO the MASTER of the param statement is a duude named Bill Barnard. He
> gave a presentation at one of the Houston, TX conferences that blew everyone
> away.
>
> Use this Yahoo forum search to see some of his code:
>
> http://finance.groups.yahoo.com/group/amibroker/msearch?date=any&DM=--------
> ----&DD=----&DY=----&DM2=------------&DD2=----&DY2=----&AM=contains&AT=&SM=c
> ontains&ST=&MM=contains&MT=barnard+param&charset=utf-8
>
> Make sure the above is one line in your browser.
>
> You can take the very first msg ( 101906 ) and copy the code in it an put
> into AB's editor and apply it as an indcator and then do a cntrl R to see a
> little bi t of what he's done.
>
> Maybe Bill or someone will read this and post some more examples.
>
> d
>
> > -----Original Message-----
> > From: amibroker@xxxxxxxxxxxxxxx
> > [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of kar_avi
> > Sent: Friday, July 20, 2007 4:40 PM
> > To: amibroker@xxxxxxxxxxxxxxx
> > Subject: [amibroker] Re: Please help with _vbscript_ execution
> >
> > Is it proprietary or is it available in some forum etc to see? You
> > cant get text boxes, radio buttons etc to take inputs fast on the fly
> > can you?
> >
> > thx
> > Kar
> >
> > --- In amibroker@xxxxxxxxxxxxxxx, "dingo" wrote:
> > >
> > > Actually, I've seen some very nice looking interfaces done with the
> > param
> > > approach. Much better than the hacky looking (imho) effect
> > you get with
> > > _vbscript_.
> > >
> > > d
> > >
> > > > -----Original Message-----
> > > > From: amibroker@xxxxxxxxxxxxxxx
> > > > [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of kar_avi
> > > > Sent: Friday, July 20, 2007 3:13 PM
> > > > To: amibroker@xxxxxxxxxxxxxxx
> > > > Subject: [amibroker] Re: Please help with _vbscript_ execution
> > > >
> > > > I got your point. I was just trying to make a
> > comprehensive MM builder
> > > > module like the one here
> > > > http://www.tradecision.com/product/trading_systems/money_manag
> > > > ement.htm#
> > > >
> > > > Will have to stick to param and commentary window I
> > guess, unless some
> > > > of you can come up with so me suggestion.
> > > >
> > > > Thx
> > > > Kar
> > > >
> > > > --- In amibroker@xxxxxxxxxxxxxxx, "dingo" wrote:
> > > > >
> > > > > Well, AB is not compiler based - its an interpreter.
> > Plus, that has
> > > > nothing
> > > > > to do with your problem.
> > > > >
> > > > > As I recall you can't have the vb code as under an AFL "if".
> > > > >
> > > > > But the biggest problem I see is that you're making the
> > > > code MUCH harder
> > > > > than you need to. This call all be coded in AFL and much
> > > > more cleanly by
> > > > > using some of the Param.... Functions to imput your
> > data and using
> > > > either a
> > > > > ; chart or the interpretation window to display your results.
> > > > Is there a
> > > > > reason you must use vb?
> > > > >
> > > > > d
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: amibroker@xxxxxxxxxxxxxxx
> > > > > > [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of kar_avi
> > > > > > Sent: Friday, July 20, 2007 6:30 AM
> > > > > > To: amibroker@xxxxxxxxxxxxxxx
> > > > > > Subject: [amibroker] Re: Please help with _vbscript_ execution
> > > > > >
> > > > > > Is it because Amibroker is complier based and VB
> > > > interpreter based, so
> > > > > > Amibroker executes the file on a whole and Input Boxes appear?
> > > > > >
> > > ; > > >
> > > > > > --- In amibroker@xxxxxxxxxxxxxxx, "kar_avi" wrote:
> > > > > > >
> > > > > > > Hello everyone,
> > > > > > >
> > > > > > > Please help me the problem that I am facing with the
> > > > > > following. Plesae
> > > > > > > dont look into the merit of the position size
> > logic. This is for
> > > > > > > demonstration only.
> > > > > > >
> > > > > > > --------------------
> > > > > > >
> > > > > > > EnableScript("_vbscript_");
> > > > > > > _SECTION_BEGIN("Pos Size");
> > > > > > >
> > > > > > > InvokePosSize = ParamToggle("Activate Position Size?",
> > > > > ; > "No|Yes", 0 );
> > > > > > >
> > > > > > > if(InvokePosSize == True)
> > > > > > > {
> > > > > > > <%
> > > > > > > entryprice = Inputbox("Entry Price")
> > > > > > > targetprice = Inputbox("Target Price")
> > > > > > > stoplosspoints = Inputbox("Stoploss Points")
> > > > > > >
> > > > > > > pricerisk = round(stoplosspoints/entryprice*100)
> > > > > > >
> > > > > > > rewardrisk = (targetprice - entryprice)/(entryprice -
> > > > (entryprice -
> > > > > > > stoplosspoints))
> > > > > > > msgbox("price risk =" & pricerisk& " rewardrisk =
> > "&rewardrisk)
> > > > > > > %>
> > > > > > >
> > > > > > > }
> > > > > > > else
> > > > > > > {
> > > > > > > Plot(C, "close", colorBlue, styleThick);
> > > > > > > }
> > > > > > >
> > > > > > > _SECTION_END();
> > > > > > >
> > > > > > > ------------------------
> > > > > > >
> > > > > > > When I execute this, it straightaway goes to VB
> > > > Inputboxes without
> > > > > > > checking for the InvokePosPram even when it is set to
> > > > "NO". Moreover
> > > > > > > it goes into a loop. everytime I click the mouse on
> > > > this pane. Is
> > > > > > > there any way to control the flow so that the _vbscript_ will
> > > > > > be called
> > > > > > > only when positionsize will be activated with ParamToggle?
> > > > > > >
> > > > > > > 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 NEW RELEASE ANNOUNCEMENTS and other news always
> > check DEVLOG:
> > > > > > http://www.amibroker.com/devlog/
> > > > ; > >
> > > > > > 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> > > > http://www.amibroker.com/devlog/
> > > >
> > > > For other s upport 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> > http://www.amibroker.com/devlog/
> >
> > 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> 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/
>
> <*> Your email settings:
> Individual Email | Traditional
>
> <*> To change settings online go to:
> http://groups.yahoo.com/group/amibroker/join
> (Yahoo! ID required)
>
> <*> To change settings via email:
> mailto:amibroker-digest@xxxxxxxxxxxxxxx
> mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
>
> <*> 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/
>
__._,_.___

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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Investment property software Investment software
Investment tracking software Return on investment software

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

__,_._,___