MTF WPR Bars - page 3

 

Thanks a lot cja for those great indics!

 

Help with WPR indicator

Hi,

I'm writing an EA that uses WPR indicator for entry exit signals. I'm trying to use different time periods for calculation as shown below:

double WPR_1=iWPR(NULL,0,Period1,1);

double WPR_2=iWPR(NULL,0,Period2,1);

double WPR_3=iWPR(NULL,0,Period3,1);

The problem I'm facing is that the values of WPR_1, WPR_2 and WPR_3 are all calculated based on the first period (Period1). The charts are plotted correctly according the different periods but the values calculated by the code above are all based on the first time period used.

Any thoughts will be highly appreciated.

 

what you mean by "time periods"?

double WPR_1=iWPR(NULL,0,Period1,1);

double iWPR( string symbol, int timeframe, int period, int shift)

 

I mean "Int Period". I want to calculate WPR for different periods (25, 50, 75) under the same time frame as follows.

WPR_1=iWPR(NULL,0,25,0)

WPR_2=iWPR(NULL,0,50,0)

WPR_3=iWPR(NULL,0,75,0)

The values for WPR_1, WPR_2 and WPR_3 calculated by my EA are equal and based on Period=25. If I change the Period on the first line to 50, the values of WPR_1, WPR_2 and WPR_3 are equal and calculated based on the Period that I put on the first line.

 

ind

Great work... I just want to say thanks for sharing.

 
newdigital:
Right mouse click on this

WPR_Bars_M#_v2.ex4

on the first post

and select 'Save as'.

Thank you Cja and ND,

keep it up and you are the best

Files:
cja.gif  29 kb
 

Modify WPR Indicator Please

Delete this post, no longer required.

 

After all these years, still is very nice work CJA.

Cheers

 
zurin:
Thank you Cja and ND, keep it up and you are the best

pls send me this indicator

 

indicator

himanshu99:
pls send me this indicator

If the indicator you want is the MTF WPR Bars you can download it from the 1st post on this thread.

Reason: