Allow me to unpack my issue.
I have exported data from NT. I then run some calculations in Matlab that give me numbers that would represent entry points, stops, targets, and possible trail stop numbers.
THese numbers will change as the data changes.
I would like to then test these numbers in NT using the strategy analyzer. I am familiar with the strategy analyzer and have used my scripts before the test ideas.
I am using Matlab to create varying entries, stops and targets as it's much easier for me to prototype ideas in Matlab so that I can test it. I "can" build whatever I want in NT of course, but it just takes me a lot longer to do in NT than it does in Matlab (probably hours vs. days).
So I am wondering if there is an obvious strategy to accomplish what I want? No code necessary, but just a general idea.
I am wanting to test this over the course of thousands of bars, so I'd like to use the NT capability of backtesting so that I can do it somewhat effeciently, as I figure once i have the structure in place to do this, I can deploy it to many ideas or various periods of data pretty quickly.
My initial thought was that on each bar I calculate my numbers for in Matlab, I can simply have Matlab print out a code snippet for that day period (Start and End Time) in a text file, and then simply PASTE that snippet into NT.
I am wondering if this is the way to go or if there is some obvious better way that I am unaware of, like actually having NT read from a csv or text file with the numbers I want to test?
Comment