Ivan / Publications
Forum
FileWrite new line
I looked all over help menu and cannot find how to write new line when writing to file . Should be somehow overwritten or use smth CRLF
4756
#include <Trade/Trade.mqh> CTrade *P = new CTrade; P.OrderModify(0,tick.bid,tick.ask+TS*_Point,0, ORDER_TIME_GTC ,0); It is designed to move stop loss.But instead gives error [invalid request] that tells nothing special. What could be the problem? Please help
To close position
Can anybody please give a code hint how to write in MQL5 that was OrderClose() and OrderDelete() in MQL4? Please no OOP. Thanks a lot
Chart background
Is there any code that changes chart background. For example bars on the view of some picture background. Any help is much appreciated. Thanks
OOP in Mql5
Why OOP is in mql5? What advantages it brought to mql5 besides complications?Thanks
About MT5
I talked to number of brokers and they still not ready to open live MT5 accounts. One broker said it is full of bugs. How far true is this? As far as I know only nordfx.com has live accounts. Does anybody knows any other brokers who have live MT5 accounts
About trailing stop
Can anybody please upload a code section on how to modify a position e.g. trailing stop. I tried different variants and it does not work. Please help. Thank You
Strategy tester half working
When I run strategy tester I can see Comment() on the chart but Print() in Journal tab does not show up. Plus it makes trades in real time chart but no trades on strategy tester chart. What could be the problem? Thanks
Number of positions
What is wrong in this code that I am unable to get number of positions . Anyone who knows, please help. int NumberOfPositions() { static int N; ulong ticket; for ( int a= 0 ;a< PositionsTotal ();a++) { ticket= OrderGetTicket (a); if ( PositionGetString ( POSITION_SYMBOL )==
strategy tester
I wonder if strategy tester works. My EA makes trades in real time but does nothing in strategy tester. Also, there is no Experts tab in it just Journal, impossible to track EA activities. Maybe I am outdated or need to change something