You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.
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
Modify WPR Indicator Please
Delete this post, no longer required.
After all these years, still is very nice work CJA.
Cheers
Thank you Cja and ND, keep it up and you are the best
pls send me this indicator
indicator
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.