PureBytes Links
Trading Reference Links
|
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@xxx> 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
<*> 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/
|