After compilating my Expert doesn't work,

 

hi

Can someone explain why my EA doesn't work?

I have the source code of my AFscalper, i do compile it and put in my mt4 platform, but then when running the EA, the EA doesn't open anytrade, even when doing BT, it's the same, the historical trading hasn't opened any trade. 


Can anyone tell me if there is something wrong on my source code?



 
You must provide the source code if you want help. No one knows what the issue is in your program if you do not attach the source code.
 
oscar.fernandez:

Can anyone tell me if there is something wrong on my source code?

How can anyone tell you without seeing the code?

 
oscar.fernandez:

Can someone explain why my EA doesn't work?

Can anyone tell me if there is something wrong on my source code?

  1. Do you really expect an answer? There are no mind readers here and our crystal balls are cracked. Always post all relevant code (using Code button) or attach the file.
         How To Ask Questions The Smart Way. (2004)
              Be precise and informative about your problem

    We can't see your broken code.

  2. Yes it is broken. void name(){} compiles just fine but do you expect it to do anything?

 
  1.   for(cnt=OrdersTotal()-1;cnt>=0;cnt--)
         {// ïîèñê ïîñëåäíåãî íàïðàâëåíèÿ
          if(OrderSelect(cnt,SELECT_BY_POS,MODE_TRADES)){continue;} ;
          ⋮
    Do you think this code does anything?
  2. Use the debugger or print out your variables, including _LastError and prices and find out why. Do you really expect us to debug your code for you?
              Code debugging - Developing programs - MetaEditor Help
              Error Handling and Logging in MQL5 - MQL5 Articles (2015)
              Tracing, Debugging and Structural Analysis of Source Code - MQL5 Articles (2011)
              Introduction to MQL5: How to write simple Expert Advisor and Custom Indicator - MQL5 Articles (2010)