[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

Check your yahoo email.

d 

> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx 
> [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of dingo
> Sent: Friday, July 20, 2007 4:55 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: RE: [amibroker] Re: Please help with VBScript execution
> 
> 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=a
> ny&DM=--------
> ----&DD=----&DY=----&DM2=------------&DD2=----&DY2=----&AM=con
> tains&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 bit 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" <dingo@xxx> 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 some suggestion.
> > > > 
> > > > Thx
> > > > Kar
> > > > 
> > > > --- In amibroker@xxxxxxxxxxxxxxx, "dingo" <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" 
> <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 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
> > 
> > 
> > 
> 
> 
> 
> 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/