• Welcome back! Thank you for being a part of this Traders Community. Let's discuss and share :)
    Selamat datang kembali! Trimakasih telah menjadi bagian dari Komunitas Trader ini. Mari berdiskusi dan berbagi :)

Suggestion EA with source mq4

Witch one had the problem? i can fix it for you. I tought was the one. but i compiled and got no errors :S
Please fix this error, and I still learning to attach lock account but still don't know where to put it, please kindly help
 

Attachments

  • DESTINY.png
    DESTINY.png
    54.9 KB · Views: 228
Hi friends

Please someone here could share ea with mql4 code based on macd indicator.

Many thanks in advance
 
hi , all !
I am running euro scalper and its works fine for me .
Do you see in code based on what trigger its deciding to open long or short position ?
Its interesting as i set distance and ea opens differently which looks great for me and not just dumb martingle
So i wonder its makes additional kind of calculation or some parameters check before averaging down .
Dear bronislava 1977 can you send us the code with the changes you have done please ? Thank you
 
Dear bronislava 1977 can you send us the code with the changes you have done please ? Thank you
Here are simple code to lock the EA, choose which one you need.
1. Add Trial Expiration Date

Code:
//Global Variable
datetime gExpirationDate = D'2021.04.30 00:00'; //Format YYYY.MM.DD HH:MM
...

void OnTick()
  {
  //Expiration date checking
   if(TimeCurrent() > ExpirationDate)
   {
      Alert("EA is Expired. Please contact EA programmer!");
      ExpertRemove();
      return;
   }
   //---
2. Add Account Lock
Code:
//Global Variable
int gAccountNumber = "12345678";

void OnTick()
  {
  //Account Number Checking
   if(AccountNumber() != gAccountNumber)
   {
      Alert("EA is not registered for your account number!. Please contact the EA coder!");
      ExpertRemove();
      return;
   }
   //---


Any one unlock this EA
 

Attachments

It is good profitable EA . Anyone can convert ex4 to mq4 and post here?


1.png
*************************************************************************************************************


2.png
 

Attachments

Hello to Everyone,
could someone help me with Euro Scalper EA?
I can compile but when i run the EA MQ4 tell me "EA" is not expert and cannot be executed.
I have seen that i thee to change the function int start() with void OnTick() but i have some return value and i don't know how can i return the values.

Best Regards
Stefano
 
Back
Top