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.




Reply via email to