Experts: Currency Strength EA - page 3

 
manis12345:

Hi,

      My view  with this EA good for manual trading. If you could add below is perfect ideal EA for automated trading.


  The Entry point is diff Value 0.5, Take profit value should be diff value 0.7 and Stop loss would be diff value 0.3


Something interesting here Manis, so instead of setting the e.a. at 0.5 you set it at 0.7 to trade and the recommended calculation for stop loss would be calculated from diff value of 0.3? Hmm Something i would love to see and try... The E.A. has something good and can be developed more i believe...The dash can be improved with visual aids to show what trade was taken and why. 

 

It shows 4 warnings after compilation. What does 0.5 and 0.7 indicate?

Thanks for the job.

 
Eric WAI:

Should insert below line

if(op==0) return 0;

just before

double per=(cl-op)/op*100;

to adoid ZD error.

Hi,

Thank you for the correction.

Can you please explain how "op" which is just the Opening price could be equal to 0.

And also why once "return 0" is passed, "op" is no more considered = 0?

Thank you in advance.

 
   double eur = (EURJPY+EURCAD+EURGBP+EURCHF+EURAUD+EURUSD+EURNZD)/7;
   double usd = (USDJPY+USDCAD-AUDUSD+USDCHF-GBPUSD-EURUSD-NZDUSD)/7;
   double jpy = (-1*(USDJPY+EURJPY+AUDJPY+CHFJPY+GBPJPY+CADJPY+NZDJPY))/7;
   double cad = (CADCHF+CADJPY-(GBPCAD+AUDCAD+EURCAD+USDCAD))/6;
   double aud = (AUDUSD+AUDNZD+AUDCAD+AUDCHF+AUDJPY-(EURAUD+GBPAUD))/7;
   double nzd = (NZDUSD+NZDJPY-(EURNZD+AUDNZD+GBPNZD))/5;
   double gbp = (GBPUSD-EURGBP+GBPCHF+GBPAUD+GBPCAD+GBPJPY+GBPNZD)/7;
   double chf = (CHFJPY-(USDCHF+EURCHF+AUDCHF+GBPCHF+CADCHF))/6;

Well , I have no Idea is the Formulas added above are a Standard formulas or it is created By you , and I can see that we can Modify the Formulas to Be as Follow , it is not tested but I believe it is mathematically more correct 

   double eur = (EURJPY+EURCAD+EURGBP+EURCHF+EURAUD+EURUSD+EURNZD)/7;
   double usd = (USDJPY+USDCAD+USDCHF+(1/(EURUSD+NZDUSD+AUDUSD+GBPUSD)))/7;
   double jpy = (1/(USDJPY+EURJPY+AUDJPY+CHFJPY+GBPJPY+CADJPY+NZDJPY))/7;
   double cad = (CADCHF+CADJPY+(1/(GBPCAD+AUDCAD+EURCAD+USDCAD)))/6;
   double aud = (AUDUSD+AUDNZD+AUDCAD+AUDCHF+AUDJPY+(1/(EURAUD+GBPAUD)))/7;
   double nzd = (NZDUSD+NZDJPY+(1/(EURNZD+AUDNZD+GBPNZD)))/5;
   double gbp = (GBPUSD+GBPCHF+GBPAUD+GBPCAD+GBPJPY+GBPNZD+(1/(EURGBP)))/7;
   double chf = (CHFJPY+(1/(USDCHF+EURCHF+AUDCHF+GBPCHF+CADCHF)))/6;

What do you think ??

 
Ahmed Tawfik:

Well , I have no Idea is the Formulas added above are a Standard formulas or it is created By you , and I can see that we can Modify the Formulas to Be as Follow , it is not tested but I believe it is mathematically more correct 

What do you think ??


I think is great


do you have time to test it ??

 

I guess this is the correct formula Not the Previous one 

double eur = (EURJPY+EURCAD+EURGBP+EURCHF+EURAUD+EURUSD+EURNZD)/7;
double usd = (USDJPY+USDCAD+USDCHF-(1/(EURUSD+NZDUSD+AUDUSD+GBPUSD)))/7;
double jpy = (-1/(USDJPY+EURJPY+AUDJPY+CHFJPY+GBPJPY+CADJPY+NZDJPY))/7;
double cad = (CADCHF+CADJPY-(1/(GBPCAD+AUDCAD+EURCAD+USDCAD)))/6;
double aud = (AUDUSD+AUDNZD+AUDCAD+AUDCHF+AUDJPY-(1/(EURAUD+GBPAUD)))/7;
double nzd = (NZDUSD+NZDJPY-(1/(EURNZD+AUDNZD+GBPNZD)))/5;
double gbp = (GBPUSD+GBPCHF+GBPAUD+GBPCAD+GBPJPY+GBPNZD-(1/(EURGBP)))/7;
double chf = (CHFJPY-(1/(USDCHF+EURCHF+AUDCHF+GBPCHF+CADCHF)))/6;
 

HI,

When I tried to compile, please find attached error, please can you rectify for me. As I put it on live Demo it is not initiating trade. I believe these error could be the reason.

Thanks for the good work

Files:
 
yawa5:

When I tried to compile, please find attached error, please can you rectify for me. As I put it on live Demo it is not initiating trade. I believe these error could be the reason.

Thanks for the good work

These are warnings, not errors.

I can't help with the non-trading problem, I'm nor familiar with this EA, but it can probably wait for an appropriate condition which can happen not so often. Try to lauch many instances with different settings.

 

Hi , could you please explain if you don't mind  , why did you use prefix and postfix ? 

best regards ,

 
sami jabre:

Hi , could you please explain if you don't mind  , why did you use prefix and postfix ? 

best regards ,

Simple when a broker has Gbpusd.pro versus gbpusd.... etc etc