forked from e187038/SP_GVA1
96 lines
3.8 KiB
MQL5
96 lines
3.8 KiB
MQL5
#define PORCENTAJE_IVA 0.21
|
|
input int MAPeriod = 10;
|
|
int numero_deticks=0;
|
|
input ENUM_DAY_OF_WEEK StartDay=1;
|
|
|
|
//string DiaDeLaSemana;
|
|
/*enum DiaDeLaSemana
|
|
{
|
|
Sunday,
|
|
Monday,
|
|
Tuesday,
|
|
Wednesday,
|
|
Thursday,
|
|
Friday,
|
|
Saturday,
|
|
};
|
|
*/
|
|
//------------------------ aquí viene el init.------------------
|
|
void OnInit (){
|
|
|
|
int i=30009;
|
|
Print (i,"\n");
|
|
|
|
|
|
|
|
short sh=25;
|
|
Print (sh);
|
|
|
|
char cara='c';
|
|
Print (cara);
|
|
|
|
float deci=9.5;
|
|
Print ("El valor de deci con 4 decimales es: %.4f\n", deci);
|
|
|
|
double doblao =1234.56789;
|
|
printf("El valor de doblao con 6 decimales es: %.6lf\n", doblao);
|
|
|
|
string cadena="Hola, qué tal, por aquí variableando";
|
|
Print (cadena);
|
|
|
|
bool buleano=false;
|
|
Print (buleano);
|
|
|
|
color lineColor = clrBeige;
|
|
Print (lineColor);
|
|
|
|
datetime fecha1 = D'2012.01.01 00:00:00';
|
|
Print (fecha1);
|
|
|
|
datetime fechasola = D'2024.02.29';
|
|
datetime hoy = __DATE__;
|
|
Print (hoy);
|
|
|
|
int enteroArray[3] = {21,42,63};
|
|
//a mala leche me meto en la posición 3, que no existe, a ver qué hace
|
|
for(int i = 0; i < 3; i++)
|
|
{
|
|
Print("El valor del array es: ", enteroArray[i]);
|
|
}
|
|
string cadenasArray [4];
|
|
cadenasArray[0]="Yo existo aunque soy cero";
|
|
cadenasArray[3]="El último de la fila";
|
|
|
|
double myDimension[3][3];
|
|
myDimension[0][1] = 1.35;
|
|
|
|
//string Day;
|
|
//DiaDeLaSemana Day;
|
|
//Day = Monday;
|
|
//Print(Day);
|
|
|
|
Comment("© Singularity Partners 2024","\n","isMax: ",doblao,"CODE LINE:",__LINE__,"\n"
|
|
);
|
|
|
|
|
|
}
|
|
//+------------------------------------------------------------------+
|
|
|
|
void OnTick()
|
|
{
|
|
/*string input1="Hola PH!";
|
|
|
|
Print (input1); */
|
|
int L;
|
|
numero_deticks++;
|
|
Print (numero_deticks);
|
|
int isMax = 1234;
|
|
// Dashboard
|
|
Comment("© Singularity Partners 2024","\n",
|
|
"isMax:", isMax, "\n",
|
|
// "Date:", fechasola, "\n",
|
|
"CODE LINE:",L,"\n"
|
|
);
|
|
|
|
}
|
|
|