Forum

Close all positions

All, How to close all opened positions in MQL5. Need your sample please

simulation test always stop at 5% progress

i had a problem while performing the simulation test to one of my EA. it always stopped at 5% progress. in the log i saw a message saying that 44512323 bytes not found. could anyone help me on this matter

ORDER_VOLUME_INITIAL/ORDER_VOLUME_CURRENT

Could you guys explain what is the difference between ORDER_VOLUME_INITIAL and ORDER_VOLUME_CURRENT

Using Technical indicator in an EA

Gents, Could you help me how to solve "handle" stuff in new MQL5. I just want to compare MA period 20 days with MA period 12 days, do I need to create two handles for this indicator

Multicurrency trading and different time frame in Championship 2008

All, In the championship 2008 , does our EA get access to all 12 currency pairs history data in all different timeframe , i.e. H1, Weekly, H4, Daily, etc. I am just thinking since we are only allowed to attach the EA into one currency pair in a single timeframe say EURUSD H1

Error Code 1 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I understand that the error code 1 means there is no change when compiler execute OrderModify. But I cannot understand why such code like below giving error code 1 too... if ( TrailingStop > 0 ) { if ( NormalizeDouble ( Bid - OrderOpenPrice () , Digits ) > ( Point * ( TrailingStop + 0.5 ))) { if (