You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Don't double post! You already had this thread open.
General rules and best pratices of the Forum. - General - MQL5 programming forum 2017.07.19
How can I fix this Error
'Ticket'- variable already defined
int ticket= OrderSend(Symbol(), OP_SELL, gTradeSize, Bid, 3, Ask + gStopLoss * Point, Ask - gTakeProfit * Point,
NULL, 0, 0, Red);
How can I fix this Error
'Ticket'- variable already defined
int ticket= OrderSend(Symbol(), OP_SELL, gTradeSize, Bid, 3, Ask + gStopLoss * Point, Ask - gTakeProfit * Point,
NULL, 0, 0, Red);
You have already defined Ticket in your code meaning you have already stated what the value of Ticket is equeal to. (so check were in your code you have typed the same ting Ticket =.... Twice
No, you are describing assigning a value to an already defined variable.
He should look for a previous
int ticket;
or int ticket=?;
The error report should actually state where the variable was previously defined.