'initVar' - variable not defined D:\..................\MetaTrader4\experts\Profit Alert.mq4 (24, 7)
#include <stderror.mqh>#include <stdlib.mqh>#define NL "\n" #define TAB "\t"externdouble ProfitTarget = 1.00;
externdouble LossTarget = -1.00;
externbool EmailCommunication = true;
string SubjectLine = "A simple rule to follow when posting";
string Body = "I will not post the same question in multiple threads";
int err;
bool doOnce = false;
bool initVar = false; //<---- add this line
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
HI :)
oky compile not work bat im have one bug
'initVar' - variable not defined D:\..................\MetaTrader4\experts\Profit Alert.mq4 (24, 7)
HI :) kompilation work .. alarm work.
bat dis script gib ONE alarm :/
when the rate was one time the alarm is then -0.1
But after 5 minutes is +0.1 and the alarm is silent
can you install one in the script reset all 2minutes?
I have the program now trimming process after each alarm so it goes again: (