Forum

Help with MQL5 EA code not taking any positions. it doesn't have any errors

#property copyright "Copyright 2024, MetaQuotes Ltd." #property link " https://www.mql5.com " #property version "1.00" #include <Trade/Trade.mqh> CTrade trade; CPositionInfo pos; COrderInfo ord; input group "=== Trading inputs ===" input double RiskPercent

My code has a couple of errors. Could you guys help me?

I would be grateful if you could solve the issues with this code

MQL5 Ea code, no errors, but not compiling

This code doesn't compile any EA, can somebody help me? //+------------------------------------------------------------------+ //| Expert settings | //+------------------------------------------------------------------+ input string EAName

Help me with fixing the syntax error (unexpected end of program / unbalanced parentheses (Meta editor MQL4 EA) Void OnTick()

void OnTick () { int ticket = - 1 ; double price; double SL; double TP; double CheckNews= 0 ; if (AfterNewsStop> 0 ) { if ( TimeCurrent ()-LastUpd>=Upd){ Comment ( "News Loading..." ); Print ( "News Loading..." );UpdateNews();LastUpd= TimeCurrent (); Comment ( "" );}