TradersStudio 2.0 is Released

Yes , I will look at your three 8.2 code examples. Please send them to me. PM me and I will give you a private E-Mail Address.
 
Quote from progers82:

you guys are probably right. I do owe murry an apology. he did ask me to pm me.
Ive been using Tradestation for over 10 years so I don't have to ask for much help when i need to get something done. that is what is fustrating me now. I can't get it done on my own and im afraid to ask for help. and during the day, im to busy trading that i just dont mess with it. I think that answer to request someone from trader studio to re write 3 or 4 of my programs so I can learn from that. I know that there are some great concept here. the idea of putting 10 trading stratigies into a trading plan and get one portfolio report. that would be invaluable to me.
murry, would you consider helping me re write three of my programs to work exactly as they work in TS8, then i could learn from there.

progers, you have no need to apologize. I would not touch that other product with a ten-foot pole, especially with the years needed to get a reliable real-time, intraday version. I don't think it will survive.
 
Quote from LivermoresGhost:

progers, you have no need to apologize. I would not touch that other product with a ten-foot pole, especially with the years needed to get a reliable real-time, intraday version. I don't think it will survive.

Livermore, are you the ghost of Christmas past? Surely not present or future?
 
Murray,
Can TradersStudio perform backtesting on individual futures contracts and provide consolidated results? Can you provide a short explanation as to how it is done and how it works? Backtesting on continuous contracts is nice, but I would feel better about the results if they covered the individual markets.

Regards
 
Yes we can do indivdual contracts but it requires a little coding.
You add each contract as a market in the session (portfiolo). Then using a little code you can look at the symbol and enable and disable the system from trading so it only trades during the active period of the contract.

Here is a an example for the S&P500.

Sub SP500SingleContracts()
Dim lastChar As String
Dim fileYear As Integer
Dim bOK As Boolean
Dim CleanSymbol As String
CleanSymbol=thismarket.Symbol(0)
If InStr(thisMarket.Symbol(0),".") Then
Cleansymbol=left(CleanSymbol,len(CleanSymbol)-4)
End If
lastChar = Ucase(Right(CleanSymbol, 1))
fileYear = CInt(Mid(CleanSymbol, 2, 4))
If fileYear = Year(Date) + 1 Then
If lastChar = "H" Then
If BetweenDates(Date, 12, 9, 12, 31) Then
Print CDate(Date), " : H (1)"
bOK = True
End If
End If
End If

If fileYear = Year(Date) Then
If lastChar = "H" Then
If BetweenDates(Date, 1, 1, 3, 9) Then
Print CDate(Date), " : H (2)"
bOK = True
End If
End If

If lastChar = "M" Then
If betweenDates(Date, 3, 10, 6, 9) Then
Print CDate(Date), " : M"
bOK = True
End If
End If

If lastChar = "U" Then
If betweenDates(Date, 6, 10, 9, 9) Then
Print CDate(Date), " : U"
bOK = True
End If
End If

If lastChar = "Z" Then
If betweenDates(Date, 9, 10, 12, 9) Then
Print CDate(Date), " : Z"
bOK = True
End If
End If
End If

If bOK Then
' call your original system here
Else
ExitAllTrades
End If
End Sub


I have a comment where you would need to put a call to your trading system.

BetweenDates is a new function in 2.5 which was added in this beta. It is written in script and the code is as follows:

Function BetweenDates(theDate, monthFrom, dayFrom, monthTo, dayTo) As Boolean
Dim dMonth As Integer
Dim dDay As Integer
Dim bOK As Boolean

Dim corrDate As Integer
Dim corrFrom As Integer
Dim corrTo As Integer

dMonth = Month(theDate)
dDay = DayOfMonth(theDate)

corrDate = dMonth * 100 + dDay
corrFrom = monthFrom * 100 + dayFrom
corrTo = monthTo * 100 + dayTo

If corrFrom > corrTo Then
Print "wrong input for BetweenDates"
StopRun
End If

BetweenDates = (corrFrom <= corrDate) And (corrDate <= corrTo)
End Function
 
Back
Top