| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #9 | ||
![]() | Re: Multi Time Frame Indicator Paul | ||
| |
|
| | #10 | ||
![]() | Re: Multi Time Frame Indicator This is because TS loads up chart by chart, not minute by minute. You can use volume, ticks or time bars. If you are testing for direction, you have another issue to overcome... ![]() The chart has the e-mini 1 min (shown) and the e-mini 10 min (hidden) The first CCi indicator is on the 1 min The second CCi indicator is on the 10 min The last #PD_MTF_TEST indicator shows the direction of the CCi,red = down, green = up. The first row of dots is the 1 min, the second row of dots is the 10 min. So you can see that 7:20-7:30 the CCi 10 min was up slightly but this isn't shown 'in the dots' until the bar closes at 7:30. The bottom row of red dots showing direction of the CCi from 7:30 to 7:40 is based on it's direction from 7:20 to 7:30. Likewise, the bottom row of red dots from 7:40 to 7:50 shows red which is based on the CCi direction from 7:30 to 7:40. Whilst this is all just sample code to show the concept, what I was trying to do generally is use higher timeframes to give direction and lower timeframes for entry. This isn't much use if you can't get the 10 min direction as it's changing. Now - in real time this is different - you will see the CCi direction moving for the current 10 min bar as the bar is in progress. Even after the first minute of the 10 minute bar, if the strength of the move is enough to change the direction of the 10 minute bar, you use that immediately. The answer is in the use of synthetic bars. The second attachment shows the same indicator with a 'synthetic' version overlayed and how you can see the higher time frame indicator plotted out closer to the way it does in real time. Whilst a lot of people don't seem to be able to wrap their heads around this issue, what it means is that you you use these indicators in multiple timeframes in a strategy, your strategy entries & real-time entries will be different & the results you get will not be based on the entry technique you think you are coding.... Pete | ||
| |
|
| | #11 | ||
![]() | Re: Multi Time Frame Indicator | ||
| |
|
| | #12 | ||
![]() | Re: Multi Time Frame Indicator Saying that, I only use strategy code for testing a strategy, for real time execution, I use code with embedded macros which allows you to build in some redundancy. For instance, with macro code you can place a stop order as well as code to monitor the current price vs stop price. If you go through the stop price, you can place a market order as a 'backup' to your stop order. It may seem like overkill but I prefer to have that extra degree of control you get with the macros. | ||
| |
|
![]() |
| Tags |
| multiple time frame |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using More Than One Time Frame in a System | hrokling | Automated Trading | 2 | 04-21-2009 01:46 PM |
| Higher Time Frame Indicator for TS | drsushi | Coding Forum | 9 | 04-23-2008 05:50 PM |
| Time Frame Control | MrPaul | Market Analysis | 1 | 11-29-2007 12:31 PM |
| Use Fib projection on small time frame (1 Feb 07) | kingking | E-mini Futures Trading Laboratory | 0 | 02-16-2007 11:17 AM |
| Trading opportunity in the smaller time frame | kingking | E-mini Futures Trading Laboratory | 3 | 02-13-2007 08:20 AM |