| New signals service! | |
|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack (229) | Thread Tools | Display Modes |
|
||||
|
Quote:
The main idea (I took it from one of the indicators here) is to take the time bars as an array of times and see if current time is less then the requested timeframe and increase the index. like here ArrayCopySeries(TimeArray_4H,MODE_TIME,Symbol(),Pe riod_4); ArrayCopySeries(TimeArray_1H,MODE_TIME,Symbol(),Pe riod_3); ArrayCopySeries(TimeArray_30M,MODE_TIME,Symbol(),P eriod_2); ArrayCopySeries(TimeArray_15M,MODE_TIME,Symbol(),P eriod_1); for(i=0, y15m=0, y4h=0, y1h=0, y30m=0;i<limit;i++) { if (Time[i]<TimeArray_15M[y15m]) y15m++; if (Time[i]<TimeArray_4H[y4h]) y4h++; if (Time[i]<TimeArray_1H[y1h]) y1h++; if (Time[i]<TimeArray_30M[y30m]) y30m++; where Period_1 .. 4 are PERIOD_M5 , PERIOD_M15 or so Hope u understand the idea |
|
|||
|
MTF for Super signals Indicator
Quote:
Hi Keris, I am fairly new to programming indicators in MT4 and would like to know if you could help with making one for me an indicator I found in this forum by Nick. The indicator is very helpful for manual trading. The MTF indicator will greatly help in trading in the same direction. I am attaching the same here for your ready reference. |
|
|||
|
MTF for Super-signals Indicator
Hi Kerris,
Thaks for the guidance. Thought this was my first attempt in doing this. I find that while compiling there is one paraenteses which is unbalanced. Can you help me fix it. Thanks in advance for the help. This should help me to make an attempt on my own. Also let me know if somthing is wrong which I may not be aware of. Regards Suresh |
|
|||
|
What I wish the Most
Is if this indicator didnt need to be refreshed every couple of hours.
When I have this indicator on a 1 hour chart and it is using the 4 Hour in its array, after a few hours I refresh it the indicator Paints the line differently than what it did in real time. I have tried to get the same values/results without the need for it to be refreshed but have been unable to. Until I or someone else can re-code so the refresh is not needed than I dont see much value for me in this indicator. Thanks Minggu |
|
||||
|
Quote:
As I've mentioned before, the whole idea of the MTF indicators was to allow you to see what was happening on multiple timeframes without having to constantly switch timeframes or have multiple charts open. In real time, they show you exactly what is happening on the longer timeframe, in increments of the shorter timeframe. The last MTF bar for the longer timeframe represents what the longer timeframe looks like at the close. If you refresh the charts, all the incremental data is gone, so you get multiple bars that are identical to the closing bar of the longer timeframe. The real (closing) value of the indicator didn't change, you just don't see the increments. Example of how you might use this: You system calls for you to go long when the M5 and M15 Psars align, and H1 CCI is above 0. You can have 3 charts open, or you can use the MTF indicators and put them all on one chart. If you system calls for you to wait for the close, then no matter what, you need to for the H1 to close before making a decision. But, you might use a little discretion. You are on minute 50. For the last 30 minutes (6 bars on your M5 chart) your H1 CCI has been above 0 and is climbing. It's currently at 100. You decide that everything looks positive, so you enter 10 minutes before the H1 bar closes. You did all of this without ever having to switch a chart or timeframe. (BTW, I'm not suggesting that the above scenario is something to be followed. I just made something up to illustrate how the MTF indicators might be used.) Anyway, yes, they somewhat repaint themselves, but not like normal indicators that repaint, i.e. Zig Zag. The closing data of the longer timeframes never change. You just loose the incremented values when you refresh. Keris |
|
|||
|
Thanks
Hello Keris,
Thank you for taking the time to explain how the indicator works. What I am trying to get is where "If you refresh the charts, all the incremental data is gone, so you get multiple bars that are identical to the closing bar of the longer timeframe. The real (closing) value of the indicator didn't change, you just don't see the increments." So I am looking for the Larger Bar data (only Completed Bars) and for every bar on the Lower timeframe just show the same data until a new larger timeframe bar has been completed. Any Ideas? Thanks EK |
![]() |
| Bookmarks |
| Tags |
| forex, histogram, mtf bband, TRO SAK MULTIPAIR, mtf macd, pipnailer, megatrend, absolute strength, bbsqueeze, TheBuyZoneForex.pdf, MTF ADX, multi, multi time frame, mtf absolute strength |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/indicators-metatrader-4/1077-multi-timeframe-indicators.html
|
||||
| Posted By | For | Type | Date | |
| 求助:一个可以把大时间周期的均线放在小时间周期上的指标 - mt4编程与智能交易系统 - 领域外汇论坛 —外汇论坛|外汇开户|外汇保证金|FXSOL开户 | This thread | Refback | 08-31-2008 07:31 AM | |
| 亂MT4亃MetaTrader Part8亂儊僞僩儗乕僟乕亃 | Post #0 | Refback | 08-17-2008 12:55 PM | |
| 老涡: fractals.mq4 | This thread | Refback | 08-07-2008 06:37 PM | |
| Multi Timeframe Indicators - Page 91 - Forex Trading | This thread | Refback | 08-02-2008 09:22 PM | |
| MTF Stochastic 4TF | Post #2168 | Refback | 08-02-2008 07:13 PM | |
| 耔咫耔轺 4 徕 ?? - Trading4Living 翦 滗屣 | This thread | Refback | 07-23-2008 06:20 PM | |
| Multi Timeframe Indicators - Page 117 - Forex Trading | This thread | Refback | 07-20-2008 03:49 AM | |
| 耔咫耔轺 4 徕 ?? - Trading4Living 翦 滗屣 | This thread | Refback | 07-13-2008 04:55 PM | |
| 耔咫耔轺 4 徕 ?? - Trading4Living 翦 滗屣 | This thread | Refback | 07-13-2008 04:12 PM | |
| 软滂赅蝾瘥 桃 4 - 义蹴梓羼觇 囗嚯桤 Forex | This thread | Refback | 07-12-2008 08:08 AM | |
| 软滂赅蝾瘥 桃 4 - 义蹴梓羼觇 囗嚯桤 Forex | This thread | Refback | 07-12-2008 05:41 AM | |
| Weekly_HILO. - MQL4 浠g爜鍩哄湴 | Post #2066 | Refback | 07-10-2008 08:39 PM | |
| Multi Timeframe Indicators - Page 62 - Forex Trading | This thread | Refback | 07-05-2008 10:25 PM | |
| 仭僥僋僯僇儖偵偮偄偰岅傠偆仭part2 | This thread | Refback | 07-05-2008 11:05 AM | |
| BZ_TL_SkylineM - MQL4 Code Base | Post #1684 | Refback | 07-05-2008 07:12 AM | |
| MTF BB-Squeeze - MQL4 Code Base | Post #1870 | Refback | 07-03-2008 03:32 AM | |
| Weekly_HILO. - MQL4 Code Base | Post #2066 | Refback | 06-25-2008 05:45 AM | |
| ≮持违スレ≯MetaTrader介看荚漓脱3≮ゆとり漓脱≯ - MetaTraderまとめWiki | Post #1124 | Refback | 06-22-2008 01:31 PM | |
| My MT4 modified indicators and collection - Page 7 | Post #1177 | Refback | 06-22-2008 11:30 AM | |
| Weekly_HILO. - MQL4 Code Base | Post #2066 | Refback | 06-20-2008 04:56 AM | |
| EESFX | This thread | Refback | 06-19-2008 02:17 PM | |
| Signal_Bars_MFI - MQL4 Code Base | Post #2210 | Refback | 06-18-2008 10:24 PM | |
| Signal_Bars_MFI - MQL4 Code Base | Post #2210 | Refback | 06-17-2008 06:18 PM | |
| Signal_Bars_MFI - MQL4 Code Base | Post #2210 | Refback | 06-16-2008 10:29 PM | |
| RSS-赅磬: 埋 桧滂赅蝾瘥 灶疱犟 | Post #1652 | Refback | 06-15-2008 03:06 PM | |
| 软滂赅蝾瘥 桃 4 - 义蹴梓羼觇 囗嚯桤 Forex | This thread | Refback | 06-13-2008 06:00 PM | |
| 袘谢芯谐 | Post #1652 | Refback | 06-12-2008 02:17 PM | |
| 仭僥僋僯僇儖偵偮偄偰岅傠偆仭Part4 | Post #977 | Refback | 06-11-2008 12:15 PM | |
| 袙褋械 懈薪写懈泻邪褌芯褉褘 肖芯褉械泻褋: 袦邪泄 2008 | Post #1684 | Refback | 06-09-2008 10:47 AM | |
| LinearRegSlope_v1 - MQL4 浠g爜鍩哄湴 | Post #1901 | Refback | 06-09-2008 08:52 AM | |
| My MT4 modified indicators and collection - Page 7 | Post #1177 | Refback | 06-08-2008 08:54 PM | |
| My MT4 modified indicators and collection - Page 7 | Post #1177 | Refback | 06-08-2008 04:15 PM | |
| Tro_Range - MQL4 Code Base | Post #1652 | Refback | 06-08-2008 07:06 AM | |
| Tro_Range - MQL4 浠g爜鍩哄湴 | Post #1652 | Refback | 06-07-2008 09:40 PM | |
| 袙褋械 懈薪写懈泻邪褌芯褉褘 肖芯褉械泻褋: 袠薪写懈泻邪褌芯褉 Tro_Range | Post #1652 | Refback | 06-07-2008 06:32 PM | |