Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Hi,
I've recently moved from Ninja to Trade Station mainly because of the Walk Forward Optimizer. Is there a way to optimise the time frame in Tradestaion? It was possible in Ninja with the option "Optimize Data Series" but I am not able to find anything similar in TS.
thanks
Can you help answer these questions from other members on NexusFi?
You would add the series on the same chart. You would need to also change a multiplier for calculation of lookbacks. The other option would be to just load several charts or you could analyze the series for spectral or other qualities you wanted beforehand and not include in the optimization process. If you could created a variable and switched the data series it might be possible, something like this but it probably won't work as-is:
I'm thinking same sort of thing. I tried setting up Vars: no luck so I thought maybe an array. Not sure how the frequency plays in I'll have to think on that some.
I'll post my idea code when I hit my computer I'm on the iPad now.
it might be possible using the Optimization API, by using price series providers or ADE (All Data Everywhere), too. At least this seems worth exploring.
However these solutions are not out of the box and will all require coding and changes to your strategy or in case of the Optimization API separate code
that handles the task.
I have not thought of the API and would need to learn more about it as I have know experience in that regard.
I was thinking............... maybe I'm over thinking this and set up the following code. It compiles and works but I'm not sure yet if the output is actually what I'm looking for.
So.......................I just set up some inputs and initialized the Var as an Integer plugging the input into the formula. I set up the instruments on the chart with 1-7 as the series with each set to a new time period 1-6 minutes. The input will only reference the instrument number so you have to keep that in mind.
LTradeET = //PLace Moving Av here(close data (DatSerEnt), LongSideET);
STradeET = //Place Moving Av here(close data (DatSerEnt), ShortSideET);
timeFilter = time >= 0830 and time < 1500;
If (timeFilter) Then Begin
if marketposition = 0 then begin
keep in mind that the results you get with your approach are based on your computations executed on the Data1 interval, too. Having said that the results would be different comparing them to a strategy that you just run on Data1 and change the interval for that data stream manually - unless you make sure that you only execute your code at the end of each interval you are currently "optimizing".
I would suggest to use different variables for each datastream and tie them to the respective datastream, too. Then you'll likely have to debug your code and check if the values your signals uses with your code are actually the ones that you have in mind.
ABCTG, I think you're spot on! I'm getting fills but they are not on the DataSeries I have iterated on. They might be filling on the one minute chart but have not verified that.
Tpredictor, I have tried setting up the Vars as suggested but am not having any luck. My skills aren't there yet. I originally thought an array but I keep getting stuck on the same issue of how do populate the actual close data of each bar for each data(n).
ABCTG, I think I get where you're going and appreciated the analysis. Do you have a resource or reference to an easy language source that would teach me how to achieve what your suggesting? Only one way to learn, ask the questions then do the work!