[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

AHA!

Got to the AB-TS forum
http://finance.groups.yahoo.com/group/amibroker-ts/files/ (you may have to
register and look for "Houston '06 Signal Study Files.ZIP".

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

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