Pivot indicators - page 52

 

AutoPivotIndicator_ver5

AutoPivotIndicator_ver5 indie include DAILY - WEEKLY and MONTHLY Pivot Points.

Can setting Time Frime and S/R Levels which you want.

Enjoy...

 

Need help

Hello

Can someone give a try to this silly indicator, is for show manually enter levels, I don't know how to finish it

Thank you

easy_forex_pivots.mq4

Files:
 
FxCba:
Hello

Can someone give a try to this silly indicator, is for show manually enter levels, I don't know how to finish it

Thank you

Please, anybody?

All I want is to enter manually the levels I want to be aware of, no calculation needed in this code.

Feel free to make a complete new one if my code is wrong.

Thank you

 

...

You can find a lot of ready to use pivots at this threads. Almost sure at least one will be what you are looking for

FxCba:
Hello

Can someone give a try to this silly indicator, is for show manually enter levels, I don't know how to finish it

Thank you

easy_forex_pivots.mq4
 
mladen:
You can find a lot of ready to use pivots at this threads. Almost sure at least one will be what you are looking for

I've read this thread already, but is not a pivot calculator my need, all I want is an indicator to draw 5 lines, the values of that 5 lines are manually set in the indicator's main window.

Can you help me?

many thanks

 

...

From these lines :

double mS2[],mS1[],mSpot[],mR1[],mR2[];

mS2= S2/10000;[/PHP]

it is not clear what should it do. But reading you explanation, try to replace the start procedure with the one from bellow, and probably that is what you are after (you have to set those 5 values in parameters, and then 5 lines with 5 values will be drawn on chart)

[PHP]int start()

{

int counted_bars=IndicatorCounted();

if(counted_bars<0) return(-1);

if(counted_bars>0) counted_bars--;

int limit = MathMin(Bars-counted_bars,Bars-1);

//

//

//

//

//

for(int i=limit; i>=0; i--)

{

S2Buffer = S2;

S1Buffer = S1;

SpotBuffer = Spot;

R1Buffer = R1;

R2Buffer = R2;

}

}

Hope this is what you are looking for

FxCba:
I've read this thread already, but is not a pivot calculator my need, all I want is an indicator to draw 5 lines, the values of that 5 lines are manually set in the indicator's main window.

Can you help me?

many thanks
 

Thank you for your help, but sadly, the code doesn't work I tried to find the way but no succeed.

Main issue is the parameters tab doesn't allow decimals, just integer. Can you give me a hint?

Thank you

 

...

Then just change "int" to "double" in parameters type

Like this :

//+------------------------------------------------------------------+

//| Easy_Forex_Pivots.mq4 |

//+------------------------------------------------------------------+

#property indicator_chart_window

#property indicator_buffers 5

#property indicator_color1 Lime

#property indicator_color2 Lime

#property indicator_color3 Lime

#property indicator_color4 Lime

#property indicator_color5 Lime

extern double S2 = 0 ;

extern double S1 = 0 ;

extern double Spot =0 ;

extern double R1 = 0 ;

extern double R2 = 0 ;

double S2Buffer[];

double S1Buffer[];

double SpotBuffer[];

double R1Buffer[];

double R2Buffer[];

//+------------------------------------------------------------------+

//+------------------------------------------------------------------+

int init()

{

SetIndexBuffer(0,S2Buffer); SetIndexLabel(0,"S2");

SetIndexBuffer(1,S1Buffer); SetIndexLabel(1,"S1");

SetIndexBuffer(2,SpotBuffer); SetIndexLabel(2,"Spot");

SetIndexBuffer(3,R1Buffer); SetIndexLabel(3,"R1");

SetIndexBuffer(4,R2Buffer); SetIndexLabel(4,"R2");

IndicatorShortName("EFX_Piv");

return(0);

}

int start()

{

int counted_bars=IndicatorCounted();

if(counted_bars<0) return(-1);

if(counted_bars>0) counted_bars--;

int limit = MathMin(Bars-counted_bars,Bars-1);

for(int i=limit; i>=0; i--)

{

S2Buffer = S2;

S1Buffer = S1;

SpotBuffer = Spot;

R1Buffer = R1;

R2Buffer = R2;

}

}

FxCba:
Thank you for your help, but sadly, the code doesn't work I tried to find the way but no succeed.

Main issue is the parameters tab doesn't allow decimals, just integer. Can you give me a hint?

Thank you
 

Excellent

Thank you very much, now it works as desired.

 

Dear all

I am looking for a classical Pivot Indicator which creates Daily Weekly Monthly Pivot lineson chart without S/R lines with Hide/Show option if i want to hide any one on chart !

In shown image there are two (weekly and monthly) pivot indicator with s/r lines which confuse me lot

If anyone knows where to find such indicator, i will be appreciated

secretcode

Files:
pivot.gif  45 kb
Reason: