Hi all, I am new to coding and am having some issues with this code. I have adapted this code from a friend and tried to make it work with my parameters, but the code does not seem to be working for me. Does anyone see what's wrong with it???
Files:
Trend_Trade_Bot_V2.mq5
17 kb
- Hi Guys. I am having 2 error codes on my code i am unable to fix.
- 2 errors in EA
- Unexpected end of program and unbalanced parentheses in my code
TommyRussell-LMR: Hi all, I am new to coding and am having some issues with this code. I have adapted this code from a friend and tried to make it work with my parameters, but the code does not seem to be working for me. Does anyone see what's wrong with it???
I think you should ask your friend for some help with your coding. There are just too many things wrong with it.
- In several places you have copy/pasted function declarations into the middle of the procedural code, rendering it useless.
- You have several closing braces missing.
- And after "fixing" the above you still have another 22 errors and 4 warnings.
'Trend_Trade_Bot_V2.mq5' Trend_Trade_Bot_V2.mq5 1 1 'New_Time' - undeclared identifier Trend_Trade_Bot_V2.mq5 78 44 'CopyTime' - no one of the overloads can be applied to the function call Trend_Trade_Bot_V2.mq5 78 15 could be one of 3 function(s) Trend_Trade_Bot_V2.mq5 78 15 built-in: int CopyTime(const string,ENUM_TIMEFRAMES,int,int,datetime&[]) Trend_Trade_Bot_V2.mq5 78 15 built-in: int CopyTime(const string,ENUM_TIMEFRAMES,datetime,int,datetime&[]) Trend_Trade_Bot_V2.mq5 78 15 built-in: int CopyTime(const string,ENUM_TIMEFRAMES,datetime,datetime,datetime&[]) Trend_Trade_Bot_V2.mq5 78 15 'New_Time' - undeclared identifier Trend_Trade_Bot_V2.mq5 81 20 '0' - some operator expected Trend_Trade_Bot_V2.mq5 81 29 '(' - unbalanced left parenthesis Trend_Trade_Bot_V2.mq5 81 9 ']' - unexpected token Trend_Trade_Bot_V2.mq5 81 30 ')' - unexpected token Trend_Trade_Bot_V2.mq5 81 31 'MQL5_DEBUGGING' - cannot convert enum Trend_Trade_Bot_V2.mq5 84 28 built-in: int MQLInfoInteger(ENUM_MQL_INFO_INTEGER) Trend_Trade_Bot_V2.mq5 84 28 'New_Time' - undeclared identifier Trend_Trade_Bot_V2.mq5 85 47 '0' - some operator expected Trend_Trade_Bot_V2.mq5 85 56 ']' - unexpected token Trend_Trade_Bot_V2.mq5 85 57 'New_Time' - undeclared identifier Trend_Trade_Bot_V2.mq5 86 19 '0' - some operator expected Trend_Trade_Bot_V2.mq5 86 28 'else' - illegal 'else' without matching 'if' Trend_Trade_Bot_V2.mq5 88 7 'Latest_price' - undeclared identifier Trend_Trade_Bot_V2.mq5 122 34 'Latest_price' - variable expected Trend_Trade_Bot_V2.mq5 122 34 built-in: bool SymbolInfoTick(const string,MqlTick&) Trend_Trade_Bot_V2.mq5 122 34 'maValue' - undeclared identifier Trend_Trade_Bot_V2.mq5 159 36 'CopyBuffer' - no one of the overloads can be applied to the function call Trend_Trade_Bot_V2.mq5 159 10 could be one of 3 function(s) Trend_Trade_Bot_V2.mq5 159 10 built-in: int CopyBuffer(int,int,int,int,double&[]) Trend_Trade_Bot_V2.mq5 159 10 built-in: int CopyBuffer(int,int,datetime,int,double&[]) Trend_Trade_Bot_V2.mq5 159 10 built-in: int CopyBuffer(int,int,datetime,datetime,double&[]) Trend_Trade_Bot_V2.mq5 159 10 'lot' - undeclared identifier Trend_Trade_Bot_V2.mq5 222 31 'type' - some operator expected Trend_Trade_Bot_V2.mq5 224 39 expression has no effect Trend_Trade_Bot_V2.mq5 224 46 return value of 'OrderSend' should be checked Trend_Trade_Bot_V2.mq5 228 13 'lot' - undeclared identifier Trend_Trade_Bot_V2.mq5 283 37 'type' - some operator expected Trend_Trade_Bot_V2.mq5 285 45 expression has no effect Trend_Trade_Bot_V2.mq5 285 52 return value of 'OrderSend' should be checked Trend_Trade_Bot_V2.mq5 289 19 22 errors, 4 warnings 23 5
And besides the compiler errors and warnings, there are still several logic problems with it.
The whole thing needs to be cleaned up.

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