Yes, sorry should have been more explicit. The
code works nice and there are possibilities to running the code from the
tools menu. But this would require Explores and Backtests. Not enough
time to try all the new ideas :-) This is the code you posted:
RunType = "BACKTEST"
Times = 1
Refresh = 0.25
ShowAA = 1
Set oArgs = WScript.Arguments
For i = 0 to oArgs.Count - 1
Arg = Split(oArgs(i), "=")
Arg(0) = UCase(Trim(Arg(0)))
If Arg(0) =
"RUNTYPE" Then
RunType = UCase(Arg(1))
ElseIf Arg(0) = "TIMES"
Then
Times =
CCur(Arg(1))
ElseIf Arg(0) = "REFRESH"
Then
Refresh = CCur(Arg(1))
ElseIf Arg(0) = "SHOWAA"
Then
ShowAA =
CCur(Arg(1))
End If
Next
Set oAB = CreateObject("Broker.Application")
Set oAA = oAB.Analysis
oAA.ShowWindow(ShowAA)
BegTime = Now()
While Times >= 0
If RunType = "OPTIMIZE"
Then
oAA.Optimize(0)
Else
oAA.Backtest(0)
End If
If Refresh > 0 Then
WScript.Sleep Refresh
* 1000
End If
Times = Times - 1
Wend
EndTime = Now()
MsgBox CStr(BegTime) + vbCrLf + CStr(EndTime),
0, "BackTest"
////////////
For tips on developing Real-Time Auto-Trading
systems visit:
http://www.amibroker.org/userkb/
Wednesday, May 21, 2008, 12:27:50 PM, you wrote:
> Herman,
> Are you referring to the script I wrote ?
> = = = = = = = = = = = = = = =
> Hello Fred, can you tell me:
> 1) How do i make your code run individual
backtests on a watchlist? It
> default to portfolio BTs.
> 2) How do I modify the code to run an
explore?
> Many thanks!!!
> herman
> ------------------------------------
> 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@xxxxxxxxxps.com
> mailto:amibroker-fullfeatured@yahoogroups.com
> <*> To unsubscribe from this group,
send an email to:
> amibroker-unsubscribe@xxxxxxxxxxxxcom
> <*> Your use of Yahoo! Groups is
subject to:
> http://docs.yahoo.com/info/terms/
|