mr robert can u explain what r u trying to achive with Close[0] > or < 10 & how is this thing related to digt 3 or 5
The close price has NOTHING to do with 4/5 digit broker. Your Digt is not exactly my Digits.pips
On Gold for example Close > 10 ($1800/oz) but Factor would be 100 (quoted to $0.01). my Pips2dbl == 1/Faktor. Also note you need TWO values (TP, SL, AND slippage)
The close price has NOTHING to do with 4/5 digit broker. Your Digt is not exactly my Digits.pips
On Gold for example Close > 10 ($1800/oz) but Factor would be 100 (quoted to $0.01). my Pips2dbl == 1/Faktor. Also note you need TWO values (TP, SL, AND slippage)
OK guys, my real problem is not the issue that you bring up with the 3/5 digit code. I will fix that later. Instead I would like your help in whether or not my logic structure is correct in my main program code and why does the compiler continue to tell me that I am missing a comma at ...
int LastTradeProfit(bool closeResult, bool plResult, bool order_type; double lotsResult;);
';' - comma expected
It wants a comma at the position of the yellow highlight, but it doesn't make sense to me to put one there, and when I do it thinks I am adding a new parameter and then requests a parameter definition.
Have I confused the compiler because my code logic is incorrect or is there something wrong with the compiler?
OK guys, my real problem is not the issue that you bring up with the 3/5 digit code. I will fix that later. Instead I would like your help in whether or not my logic structure is correct in my main program code and why does the compiler continue to tell me that I am missing a comma at ...
';' - comma expected
It wants a comma at the position of the yellow highlight, but it doesn't make sense to me to put one there, and when I do it thinks I am adding a new parameter and then requests a parameter definition.
Have I confused the compiler because my code logic is incorrect or is there something wrong with the compiler?
You are missing a comma and have surplus semi-colons . . do this . . .
int LastTradeProfit(bool closeResult, bool plResult, bool order_type, double lotsResult);
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.
ajol, I don't have an answer for you. I copied that code from another ea, and it works so I left it.
RaptorUK, I have changed my "defining the function" code ....
to try and match my "calling the function" code which was ...
But now the compiler says ':' - comma expected right after bool order_type; in defining the function code.
So I still have something wrong. What am I missing?
You define the variables in the Function definition not in the Function call . . . try this
and . . .
qjol:
mr robert can u explain what r u trying to achive with Close[0] > or < 10 & how is this thing related to digt 3 or 5The close price has NOTHING to do with 4/5 digit broker. Your Digt is not exactly my Digits.pips
On Gold for example Close > 10 ($1800/oz) but Factor would be 100 (quoted to $0.01). my Pips2dbl == 1/Faktor. Also note you need TWO values (TP, SL, AND slippage)
The close price has NOTHING to do with 4/5 digit broker. Your Digt is not exactly my Digits.pips
On Gold for example Close > 10 ($1800/oz) but Factor would be 100 (quoted to $0.01). my Pips2dbl == 1/Faktor. Also note you need TWO values (TP, SL, AND slippage)
OK guys, my real problem is not the issue that you bring up with the 3/5 digit code. I will fix that later. Instead I would like your help in whether or not my logic structure is correct in my main program code and why does the compiler continue to tell me that I am missing a comma at ...
';' - comma expected
It wants a comma at the position of the yellow highlight, but it doesn't make sense to me to put one there, and when I do it thinks I am adding a new parameter and then requests a parameter definition.
Have I confused the compiler because my code logic is incorrect or is there something wrong with the compiler?
This is my updated code to show where I am getting the error.
OK guys, my real problem is not the issue that you bring up with the 3/5 digit code. I will fix that later. Instead I would like your help in whether or not my logic structure is correct in my main program code and why does the compiler continue to tell me that I am missing a comma at ...
';' - comma expected
It wants a comma at the position of the yellow highlight, but it doesn't make sense to me to put one there, and when I do it thinks I am adding a new parameter and then requests a parameter definition.
Have I confused the compiler because my code logic is incorrect or is there something wrong with the compiler?
You are missing a comma and have surplus semi-colons . . do this . . .
OK RaptorUK, you fixed that problem, thanks. Now the compiler says ...
'LastTradeProfit' - no dll defined for the imported function
at the yellow highlight.
I suspect that there is something incorrect with one of the other three functions below the plResult ie; ordertypeResult, lotsResult, or closeResult.
Or should I call these functions separately?
Hey, I need some help please.
I am working on an ea that enters trades based on the rsi overbought and oversold indicator.
For instance the ea finds a buying opportunity when the rsi shows an oversold region.
It will enter a buy position then place a sell stop somewhere below. If the sell stop is hit, the ea is supposed to place a buy stop somewhere above.
The problem is the ea does not open a buy stop when the sell stop is triggered.
I will really appreciate your help. The code is down below
void OnTick()