PureBytes Links
Trading Reference Links
|
Is it possible to use jscript in the custom backtester?
I want to be able to display a prompt so the user can choose whether
to take a signal or not. I used the script below in the signal loop in
the CBT and it did display the popup window but with no ticker name.
EnableScript("jscript");
tickerName = Name();
<%
var Shell = new ActiveXObject("WScript.Shell");
Shell.popup("Take trade for " + AFL("tickerName"), 5, "Confirm", 4 +
256 );
%>
Now for some reason the script above just keeps crashing AB even when
it's the only code in a script.
Also, I had the jscript section inside:
if (status("action") == actionPortfolio){...
but it still ran when viewed on a chart.
Can anyone shed some light on whether what I want to do is possible
and why the above script is crashing in AB?
Cheers,
Julian.
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/
|