| 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 |
|
||||
|
Linear Price Bar
Here's one more MTF indicator. It's based on a custom indicator (you can view the code to make your own).
It's called #MTF_LPB.mq4 (Linear Price Bar) Here's the link to the thread for info on the indicator: Linear Price Bar Attached are 2 indicators. You need both in your indicators folder as the MTF version references the original indicator. Linear Price Bar.mq4 #MTF_LPB.mq4 Keris |
|
||||
|
Quote:
Also, since Dinapoli Targets is a custom indicator, could you add the original DinapoliTargets.mq4 file to your post. People are going to need both files to make the MTF version work. Keris |
|
|||
|
Dinapoli
|
|
||||
|
maybe this is helpful to you
I wrote one for demarker the other day. I think I scrutinized it but can't remember exactly. Anyhow easy enough to check, just compare it with a real demarker on another chart.
Just change the getDeMarker function to getRSI() or getCustomIndicator() (and use iCustom in that function) or whatever, if you want to base it on another indicator. Last edited by ycomp; 02-22-2006 at 12:49 PM. |
|
||||
|
small bug in MTF_DeMarker
code I posted works but DeMarker is displayed as a period of 13 only. Here is the fixed copy that actually uses the DeMarkerPeriod variable.
can't seem to upload a file anymore though... it just says page not found.. therefore here are the instructions to change it: just open in notepad and paste this text below and save it as "MTF_DeMarker_v1.mq4" Code:
//---------------------------------------------------------------
//PARAMS:
//- TimeFramePeriod: # of minutes in TF.
// NOTE: I did not test non-standard TFs or a TimeFramePeriod
// value less than that of current chart. So they probably
// won't work.
// - DeMarkerPeriod: self explanatory
//---------------------------------------------------------------
#property copyright "Copyright 2006 ycomp"
#property link "ycomp"
#define MIN_BARS_REQUIRED 200 // Just a safe amount here. Probably needs much less.
//--- Indicator Settings
#property indicator_separate_window
#property indicator_level1 0.3
#property indicator_level2 0.7
#property indicator_buffers 1
#property indicator_color1 DodgerBlue
#property indicator_width1 2
#property indicator_maximum 1
#property indicator_minimum 0
//---- input parameters
extern int TimeFramePeriod;
extern int DeMarkerPeriod = 14;
//---- buffers
double buff[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
if (Bars < MIN_BARS_REQUIRED) return (-1);
IndicatorDigits(Digits);
SetIndexStyle(0, DRAW_LINE, STYLE_SOLID, 2);
SetIndexBuffer(0, buff);
string paramDesc =
"(" +
getPeriodDesc(TimeFramePeriod) + ", " +
DeMarkerPeriod +
")";
IndicatorShortName("MTF_DeMarker" + paramDesc);
// Set Index Labels
SetIndexLabel(0, "MTF_DeM" + paramDesc);
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
string getPeriodDesc(int aNumMinutes) {
switch (aNumMinutes) {
case PERIOD_M1 : return("M1");
case PERIOD_M15: return("M15");
case PERIOD_M30: return("M30");
case PERIOD_H1 : return("H1");
case PERIOD_H4 : return("H4");
case PERIOD_D1 : return("D1");
case PERIOD_W1 : return("W1");
case PERIOD_MN1: return("MN1");
case 0: return ("Chart");
default: return ("M" + aNumMinutes);
}
}
double getDeMarker(int aShift) {
return (iDeMarker(NULL, TimeFramePeriod, DeMarkerPeriod, iBarShift(NULL, TimeFramePeriod, Time[aShift])));
}
int start() {
for(int shift=Bars-1;shift>=0;shift--)
{
buff[shift] = getDeMarker(shift);
}
return(0);
}
|
![]() |
| Bookmarks |
| Tags |
| forex, histogram, mtf bband, TRO SAK MULTIPAIR |
| 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 | |
| yMT4zMetaTrader Part8y^g[_[z | 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 代码基地 | 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 | |
| eNjJɂČ낤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鿴ѣڤȤѡ - 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 | |
| eNjJɂČ낤Part4 | Post #977 | Refback | 06-11-2008 12:15 PM | |
| Все индикаторы Форекс: Май 2008 | Post #1684 | Refback | 06-09-2008 10:47 AM | |
| LinearRegSlope_v1 - MQL4 代码基地 | 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 代码基地 | Post #1652 | Refback | 06-07-2008 09:40 PM | |
| Все индикаторы Форекс: Индикатор Tro_Range | Post #1652 | Refback | 06-07-2008 06:32 PM | |
| 4 - Forex | This thread | Refback | 06-06-2008 09:38 AM | |