Forex



Go Back   Forex Trading > Downloads > Indicators - Metatrader 4
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #31 (permalink)  
Old 07-10-2006, 10:27 AM
Junior Member
 
Join Date: Jun 2006
Posts: 2
bookfixer is on a distinguished road
Pivots with labels...

Thanks cja, that is just what I was looknig for!

Jim
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
  #32 (permalink)  
Old 07-18-2006, 04:38 AM
Senior Member
 
Join Date: Sep 2005
Location: St Louis, MO, USA
Posts: 176
cardio is an unknown quantity at this point
Pivot indicator

Help with pivot indicator

Hi
I am trying to make a pivot indicator - that should show the pivot possition on an hourly or half hourly chart. I want to see the pivot position of the pivot for the last 1000 bars on the chart.
I have written the following - but it is not working. I see it calculates but draws nothing.

Please help
Code:
//+------------------------------------------------------------------+
//|                                                       pivot1.mq4 |
//|                      Copyright © 2006, MetaQuotes Software Corp. |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2006, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.net"

#property indicator_chart_window
double piv1[];
static double h1,l1,c1,p;
int Previous_day;
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
   SetIndexStyle(0,DRAW_LINE,2);
   SetIndexBuffer(0,piv1);
   
   
   if (Period() == 1440) l1=1;
   if (Period() == 240) l1=6;
   if (Period() == 60) l1=24;
   if (Period() == 30) l1=48;
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   int shift,  counted_bars=IndicatorCounted();
   if(counted_bars<1000+(l1+1)) return(-1); 
  
//---- main calculation loop 
   shift=1000; 
   while(shift>=0) 
     {
//----
   
     if (Previous_day!=TimeDay(Time[shift+1]))  //get the day of month for the previous bar
     {  
     // a new day has started so recalc pivot point
      Previous_day=TimeDay(Time[shift+1]); 
      
      h1=0; l1=10000000;
      int i;
      for (i=shift+l1;i>=shift;i--)
      {
         h1 = MathMax( h1, High[i]);
         l1  = MathMin( l1 , Low[i]);      
      }   
 
      c1 = Close[i+1];
      p = (h1+l1+c1) / 3;
      piv1[shift] =p;
      shift--;// 
      Print("p : ",p," ,Pevious_day : ",Previous_day);
     }
     else 
     {
       // a new day has not started so use the same pivot point as yesterday
       piv1[shift] = p;
       Previous_day=TimeDay(Time[shift+1]); 
       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
  #33 (permalink)  
Old 07-18-2006, 05:25 AM
elihayun's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 396
elihayun is on a distinguished road
Your problem is that in every day change you are taking the high/low/open/close of the current TF not the daily TF

do not use : High[shift] use iHigh(NULL, PERIOD_D1, shift) and so on
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
  #34 (permalink)  
Old 07-18-2006, 12:50 PM
Senior Member
 
Join Date: Sep 2005
Location: St Louis, MO, USA
Posts: 176
cardio is an unknown quantity at this point
looping

thanks elihayun I will give it a go - though I don't think that is the problem.

i do use high[shift], I go into a loop when a new day is detected and it determines the high,low for the previous day here is the loop -

Code:
     // a new day has started so recalc pivot point
      Previous_day=TimeDay(Time[shift+1]); 
      
      h1=0; l1=10000000;
      int i;
      for (i=shift+l1;i>=shift;i--)
      {
         h1 = MathMax( h1, High[i]);
         l1  = MathMin( l1 , Low[i]);      
      }   
 
      c1 = Close[i+1];
      p = (h1+l1+c1) / 3;
      piv1[shift] =p;
      shift--;//
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
  #35 (permalink)  
Old 07-18-2006, 02:02 PM
elihayun's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 396
elihayun is on a distinguished road
Quote:
Originally Posted by cardio
thanks elihayun I will give it a go - though I don't think that is the problem.

i do use high[shift], I go into a loop when a new day is detected and it determines the high,low for the previous day here is the loop -

Code:
     // a new day has started so recalc pivot point
      Previous_day=TimeDay(Time[shift+1]); 
      
      h1=0; l1=10000000;
      int i;
      for (i=shift+l1;i>=shift;i--)
      {
         h1 = MathMax( h1, High[i]);
         l1  = MathMin( l1 , Low[i]);      
      }   
 
      c1 = Close[i+1];
      p = (h1+l1+c1) / 3;
      piv1[shift] =p;
      shift--;//
1) How do u know that the TF will be D1? If you change the TF you will see pivot of the current TF
2) How do u know that there are 10000000 bars ? U better use Bars instead.
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
  #36 (permalink)  
Old 07-18-2006, 02:51 PM
Senior Member
 
Join Date: Sep 2005
Location: St Louis, MO, USA
Posts: 176
cardio is an unknown quantity at this point
Hi

I think I have found what I am looking for in this post

Historical Pivot Indicator

post 7

I think I can modify the indicators there - I will try and post results.

Thank you for your help and interest Elihayun.
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
  #37 (permalink)  
Old 07-22-2006, 03:30 PM
Junior Member
 
Join Date: Nov 2005
Posts: 23
ligerny is on a distinguished road
Pivot Point Education

Hi,

Does anyone have any ebooks or absolute begginers to advanced course for learning how to use pivot points, preferrably for forex and any regular unmodified mt4 pivot point indicator that's good ?

thnx
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
  #38 (permalink)  
Old 07-22-2006, 04:14 PM
Senior Member
 
Join Date: Oct 2005
Posts: 223
sailor is on a distinguished road
try this site http://www.investopedia.com/terms/p/pivotpoint.asp
also just search the site for other info :-)

sailor
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
  #39 (permalink)  
Old 07-22-2006, 04:49 PM
Junior Member
 
Join Date: Nov 2005
Posts: 23
ligerny is on a distinguished road
thnx sailor, is there also a website where i can get previous day's high, low, open, and close. im sure there's a website which keeps that info ?

Last edited by ligerny; 07-22-2006 at 05:00 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
  #40 (permalink)  
Old 07-22-2006, 06:18 PM
fxtraderguru's Avatar
Junior Member
 
Join Date: Jun 2006
Location: Virginia
Posts: 5
fxtraderguru is on a distinguished road
Previous Day's PP

Depending on the trading platform you have selected...go to the day of your choice, look for the daily HIGH, LOW, OPENING Candle and CLOSING Candle.

Place your mouse over them respectfully and write down the info you need. Place it in a PP calculator and then draw your lines as needed, or simply keep the sheet near your screen for reference.

Depending on the trading platform you may want to use: there are indicators that can be placed right on your chart to calculate PP and re-draw them everyday.
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
auto pivot indicator, camarilladt8, Daily Pivot, daily pivot indicator, daily pivot mq4, daily pivots, fibo pivot indicator, FiboPiv, forex, forex pivot indicator, forex pivot indicators, forex pivots, indicator pivot, indicators, indicators forex, Metatrader 4 PIVOT, metatrader 4 pivot indicator, metatrader mq4 pivot, metatrader pivot, metatrader pivot indicator, MetaTrader pivots, monthly pivot, mq4 pivot, MT4 pivot, mt4 pivot indicator, mt4 pivot indicators, pivot, pivot calculator, pivot daily indicator, pivot indicator, pivot indicator for metatrader, pivot indicator forex, pivot indicator metatrader, pivot indicator mt4, Pivot indicators, pivot metatrader, pivot mq4, pivot mq4 MT4, PIVOT mt4, Pivot point, pivot point indicator, pivot point mq4, pivot points indicator, Pivot Points Multitimeframe, pivot sunday monday, pivot trading, pivot.mq4, pivots daily, pivots daily.mq4, Pivots indicator, session pivot, support & resistance, support and resistance, Volatility Pivot, weekly pivot, weekly pivot indicator, weekly pivot mq4


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Pivot Trading kokas Documentation 15 10-14-2009 06:41 PM
Name that Pivot Indicator - Help Please ??? euro_dude Metatrader 4 8 05-31-2009 03:40 PM
pivot kohzadi Indicators - Metatrader 4 10 06-17-2007 01:43 AM
Help - Pivot Indicator Only HMTRG Indicators - Metatrader 4 4 03-02-2007 04:17 PM


All times are GMT. The time now is 01:27 PM.



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