CodeFx / Publications
Forum
Array Index works but Array Maximum Does Not
Hello Everyone, Please I need help with a code function in my EA. The Array index works correctly but the Array Maximum gives error value. for ( int x = PositionsTotal (); x>= 0 ; x--) { ulong ticket = PositionGetTicket (x); if ( PositionSelectByTicket (ticket))
MQL5 EA opens multiple trade instead of One
Hello, I coded an EA which runs perfectly but places multiple trades instead of one. Using the most currently opened order as reference point, the EA is meant to open 1 Buy order when price increases by 100 pips and open a Sell order when it decreases by 100 pips. However, if the most currently
Current Open Order Not Selected
Dear Programmers, Please I am still learning to code EA with MQL5 language however I wrote a code that involved selection of current order. There is no error when I run it but the implementation is different from my intention. My observation was that this code always referenced the first opened
Help - EA does not open Buy order
Hello Everyone, Please I am still learning to code EA with MQL5 language however I wrote a code that involved selection of closed orders. There was no error when I run it but during implementation the EA failed to open buy order while opening of sell order was okay. The position select for sell is