1. BarsRequired: The help section could explain this better. My experiments have shown that BarsRequired is the minimum number of bars with the longest period. What if I want to use a strategy on a 5 minute chart, add an instrument with a daily period of 1, and start the strategy after 30 minutes? I can't do BarsRequired = 6, because then the strategy won't start until the 6th day.
2. BarsRequired part 2: If I set BarsRequired = 0, I would expect the strategy to run immediately, but that doesn't appear to be the case. In the screen shot below the chart begins on 6/1/2007, but the strategy doesn't start until 6/3/2007.
3. In the same screen shot, the strategy adds a bar with a daily period of 1. Why does accessing Lows[1][0] return a daily high that has not occurred yet? For instance, on 6/4/2007 at midnight the main bar (hourly) prints the daily low, which is the value 12634, but that won't occur until 10:00 AM. From reading the help page on Multi-frame instruments, I would actually expect Lows[1][0] to return the daily low from 6/3/2007.
4. The difference between historical data and real time data with CalculateOnBarClose = false. It seems to me that this could have been avoided by creating all bars at the same time, as shown below.
5. Only being able to enter and exits positions on the first bar of an instrument is frustrating. What if I want a 5 minute chart that uses 10 second bars for entry/exit signals? Am I stuck creating a 10 second bar chart and running the strategy on that?
6. SetStopLoss() and SetProfitTarget(). These aren't explained very well. I would expect that NT calculates the correct buy/sell price and submits the orders which are filled normally. What seems to happen is that when that the price is reached, they are filled but NT assumes that my profit/loss is exactly what I set it to be. For example if I do: SetStopLoss(40.1112) and the protective stop is hit, instead of calculating the exact loss based on order fills NT assumes my loss was 40.1112. See the screen shot below. For 5 YM contracts at 5 points/tick and a loss of two ticks, the actual loss should be 5*5*2 = 50.
7. SetStopLoss() part 2. Once we call SetStopLoss() are we stuck with it? Is there any way to prevent exits based on it, or do I just have to call the function with a ridiculously high value so that it never executes?
8. SessionBegin and SessionEnd. Does setting these do anything besides trim the chart and prevent strategy execution for bars outside these ranges? I was hoping it would also trim data so that if I set the session times properly it would automatically filter out after-hours data, but that doesn't appear to be the case. For example I would like to know what the highs and lows are for the YM between 9:30 AM and 4:00 PM.
9. Clicking on the task bar to bring up a chart doesn't always work. I have to right click, select Maximize. I have this problem when the help window is open as well, clicking on the Control Center tab brings up the help window, which I then have to minimize.
Thanks for any and all help in advance. I've attached the two strategies I used to generate the screen shots. I ran the strategy on the YM from 6/1/2007 to 6/6/2007, using OpenTick.
Comment