Download MetaTrader 5
To add comments, please log in or register
Sign up for MQL5.community to leave your comments!
Daniel Petrovai
440
Daniel Petrovai 2014.03.12 22:43 

Hi,

Here is a free pivot point indicator (thanks toi gearhead who submitted the code here and improved on it ) that offers quite a few features:

Daily,weekly, monthly pivots (select)

Mid pivots (turn on and off)

Chart auto shift to set position (adjustable from 10% to 50%)

Labels position adjustable from the right of Time[0] to the left of Time[0] (positive settings to the right, negative settings to the left)

Pivot indicator

Files:
Alain Verleyen
Moderator
28556
Alain Verleyen 2014.03.13 10:58  
You can better share it by publishing it in the Codebase.
file45
157
file45 2014.10.10 17:10  

The above indicator does not delete off the chart due to minor code error.

Minor code error

.......
ObjectDelete(0,"M_R1 Label");
ObjectDelete(0,"M_R1 Line");
........

Corrected Code

.......
ObjectDelete(0,"M_R1 label");
ObjectDelete(0,"M_R1 line");
........

Code  fixed and sent in for publishing

whroeder1
13610
whroeder1 2014.10.10 18:32  
file45:

Minor code error

Corrected Code

This is why you should never write things more than once.
#define R1LABLE "M_R1 label"
#define R1LINE  "M_R1 line"
... ObjectCreate( R1LABEL ...);
    ObjectCreate( R1LINE  ...);
:
ObjectDelete(0,R1LABLE);
ObjectDelete(0,R1LINE);
/
To add comments, please log in or register