Forex



Go Back   Forex Trading > Downloads > Indicators - Metatrader 4






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

Reply
 
Thread Tools Display Modes
  #11 (permalink)  
Old 02-22-2006, 09:08 PM
ycomp's Avatar
Member
 
Join Date: Jan 2006
Posts: 93
ycomp is on a distinguished road
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);
 
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #12 (permalink)  
Old 02-22-2006, 09:38 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 994
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Arrow Mtf_2

keris,

Thank you very much for your great idea and indicator. Good work man!

This is my version of the MTF:
  • You can use iCustom now without writing a line of code, all what you need to fill the paramter you want in the indicator input window.
  • You can set up to 4 indicator names in the input window to be drawn.
  • You can set the line (buffer) of the indicator you want to get using iCustom (EX: 0 means to daw the first line , 1 means the second line etc).
  • You can set drawing shape style (EX: 0 means DRAW_LINE , 2 means DRAW_HISTOGRAM etc).
I hope you like it.
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #13 (permalink)  
Old 02-22-2006, 10:05 PM
keris2112's Avatar
Senior Member
 
Join Date: Dec 2005
Location: California, US
Posts: 130
keris2112 is on a distinguished road
Quote:
Originally Posted by codersguru
keris,

Thank you very much for your great idea and indicator. Good work man!

This is my version of the MTF:
  • You can use iCustom now without writing a line of code, all what you need to fill the paramter you want in the indicator input window.
  • You can set up to 4 indicator names in the input window to be drawn.
  • You can set the line (buffer) of the indicator you want to get using iCustom (EX: 0 means to daw the first line , 1 means the second line etc).
  • You can set drawing shape style (EX: 0 means DRAW_LINE , 2 means DRAW_HISTOGRAM etc).
Glad you liked the idea.

What you put together sounds really great,too. But, where's the file?
Are you talking about the Easy iCustom thread that you started? I downloaded that yesterday, but haven't had a chance to play with it. Awaiting your instructions. Also, is that Easy iCustom indicator MTF capable, or where you talking about something different in your above post?

Keris

Last edited by keris2112; 02-22-2006 at 10:07 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #14 (permalink)  
Old 02-22-2006, 10:35 PM
ycomp's Avatar
Member
 
Join Date: Jan 2006
Posts: 93
ycomp is on a distinguished road
maybe he has trouble uploading? I couldn't upload anything an hour ago nor even remove my old attachment from a previous msg. 404 style error.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #15 (permalink)  
Old 02-22-2006, 10:42 PM
keris2112's Avatar
Senior Member
 
Join Date: Dec 2005
Location: California, US
Posts: 130
keris2112 is on a distinguished road
Quote:
Originally Posted by ycomp
maybe he has trouble uploading? I couldn't upload anything an hour ago nor even remove my old attachment from a previous msg. 404 style error.
I had that trouble yesterday. Worked for me earlier today, though.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #16 (permalink)  
Old 02-22-2006, 10:43 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 994
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Talking uploading trouble

Quote:
Originally Posted by ycomp
maybe he has trouble uploading? I couldn't upload anything an hour ago nor even remove my old attachment from a previous msg. 404 style error.
Yes, there are uploading troubles and the size of code isn't accepted to be submitted here!
The administrator is working hard to fix this problem!
____________________________
Fixed now !
This is the indicator.

Attached Files
File Type: mq4 #MTF_LPB_2.mq4 (11.1 KB, 1742 views)
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm

Last edited by codersguru; 02-23-2006 at 12:32 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #17 (permalink)  
Old 02-23-2006, 02:44 AM
Senior Member
 
Join Date: Oct 2005
Posts: 450
Perky is on a distinguished road
Just wanted to thank you keris for the multi timeframe indicators - FANTASTIC

i live and breathe them now

im trading from the 5 min chart (naughty) with 15m indicators
psar
macd
cci

see attached
really confortable trading and gives a good feel for the trades
Attached Images
File Type: gif mtf.gif (16.8 KB, 11124 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #18 (permalink)  
Old 02-23-2006, 04:18 AM
keris2112's Avatar
Senior Member
 
Join Date: Dec 2005
Location: California, US
Posts: 130
keris2112 is on a distinguished road
Quote:
Originally Posted by Perky
Just wanted to thank you keris for the multi timeframe indicators - FANTASTIC

i live and breathe them now

im trading from the 5 min chart (naughty) with 15m indicators
psar
macd
cci

see attached
really confortable trading and gives a good feel for the trades
Thanks Perky,
Glad you like them.

Are you the same Perky of FXOverEasy? If so, are you still following that? Your charts show a totally different setup.

Keris
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #19 (permalink)  
Old 02-23-2006, 05:24 AM
Senior Member
 
Join Date: Oct 2005
Posts: 450
Perky is on a distinguished road
Quote:
Originally Posted by keris2112
Thanks Perky,
Glad you like them.

Are you the same Perky of FXOverEasy? If so, are you still following that? Your charts show a totally different setup.

Keris
Thats the other perky (fxovereasy) Im older and wiser now :-)

I used fxovereasy to make my first million
thought id try something different to get my second
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #20 (permalink)  
Old 02-23-2006, 05:24 AM
Senior Member
 
Join Date: Oct 2005
Posts: 450
Perky is on a distinguished road
Quote:
Originally Posted by keris2112
Thanks Perky,
Glad you like them.

Are you the same Perky of FXOverEasy? If so, are you still following that? Your charts show a totally different setup.

Keris
Thats the other perky (fxovereasy) Im older and wiser now :-)

I used fxovereasy to make my first million
thought id try something different to get my second
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
#MTF_WPR.mq4, ABSOLUTE STRENGTH, absolute strength indicator, AbsoluteStrength, AbsoluteStrength_v1.1_mtf, ADX MTF, AlaskanPipAssassin, atr channel, BBMACD, bbsqueeze, bh-ergodic, center of gravity, Coeffoline, custom candle, customcandle, Damiani_volatmeter v3.2, Envelopes, FanSimple4en, fncd indicator, forex, forextrend_v2, fxst3cci, FxTrend v2, fxtsd, histogram, indicators, megatrend, MegaTrend.mq4, mladen, mtf absolute strength, mtf adx, mtf adx indicator, mtf bband, MTF candle, mtf ema, MTF indicator, mtf LaGuerre, mtf ma, mtf macd, mtf megatrend, mtf parabolic, MTF PSAR, mtf qqe, MTF RSI, mtf rsx, mtf stochastic, MTF trendenvelopes, mtf_4tf_has_bar2m, mtf_megatrend_barm_4tfnext, multi, multi time frame, MULTI TIME FRAME indicator, multi time frame stochastic, multi timeframe, multi timeframe indicator, nonlagma v7, NonLagMA_v7.1, NRTR_Rosh_v2eAlert_mtf.ex4, open interest, pipnailer, PowerTrend, powertrend.mq4, qqe mtf, search, TheBuyZoneForex.pdf, timeframe, TrendEnvelopes_v5, trendline, TRO MultiPair, tro sak multipair, voltychoppy, XO_A_H

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
get current timeframe () or the like.. arm73c05 Metatrader 4 3 02-21-2007 08:51 PM
Timeframe / Shift divergence_trader Metatrader 4 2 02-12-2007 02:04 PM
Multi EAs, multi brokers, same computer hhsmoney General Discussion 6 11-16-2006 09:32 PM
Get current timeframe The_N Metatrader 4 2 09-08-2006 12:40 PM
Multi timeframe through a shift calculation? wananohoshi Indicators - Metatrader 4 2 08-06-2006 11:02 AM


All times are GMT. The time now is 08:58 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.