Assista a como baixar robôs de negociação gratuitos
Encontre-nos em Facebook!
Participe de nossa página de fãs
Script interessante?
Coloque um link para ele, e permita que outras pessoas também o avaliem
Você gostou do script?
Avalie seu funcionamento no terminal MetaTrader 5
Scripts

Simple license on account name - script para MetaTrader 4

Visualizações:
5340
Avaliação:
(8)
Publicado:
2023.04.09 20:29
Precisa de um robô ou indicador baseado nesse código? Solicite-o no Freelance Ir para Freelance
//+------------------------------------------------------------------+
//|                                                 Amira brand      |
//+------------------------------------------------------------------+

#property copyright "Amira Brand"
#property link      "https://www.mql5.com/en/users/amirabrand1998"
#property version   "1.00"
#property strict

//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit() {
   CheckLicense();     
   
   return(INIT_SUCCEEDED);
}

//+------------------------------------------------------------------+
//| Expert check license                                             |
//+------------------------------------------------------------------+
void CheckLicense() 
{
   Print("Account name: ", AccountName());
  
   if (StringFind(StringLower(AccountName()), "account name in lowercase!!") < 0) {
      Alert("No license active!");
      ExpertRemove();
      return;
   }
}

//+------------------------------------------------------------------+
//| Expert string to lower                                           |
//+------------------------------------------------------------------+
string StringLower(string str) 
{
   string outstr = "";
   string lower  = "abcdefghijklmnopqrstuvwxyz";
   string upper  = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
   
   for (int i=0; i<StringLen(str); i++) {
      int t1 = StringFind(upper,StringSubstr(str,i,1),0);
      if (t1 >=0) {  
         outstr = outstr + StringSubstr(lower,t1,1);
      } else {
         outstr = outstr + StringSubstr(str,i,1);
      }  
   }
   
   return(outstr);
}

Risk Manager EA Risk Manager EA

This is a simple EA that will buy/sell pullbacks while managing your given risk parameters. You need to decide on a direction, and the EA will do the rest.

Elder Impulse System Candlestick Elder Impulse System Candlestick

This indicator paints the candlestick chart color according to the Elder Impulse System

MoveStopLoss MoveStopLoss

Move the stoploss as the trade moves in your direction at a specific distance.

Exponential Commodity Channel Index Exponential Commodity Channel Index

Commodity Channel Index using exponential moving averages.