Forum

PositionGetString boolean check

PositionGetString ( POSITION_SYMBOL , _Symbol ) returns error "no one of the overloads can be applied to the function call", but PositionGetString ( POSITION_SYMBOL ) == _Symbol works fine. First attempt should work according to documentation . Am I missing something? Thanks in advance

SymbolSelect and SymbolInfoDouble taking too long to return value

The following code bool flagSelect = SymbolSelect (symb, true ); while ( GetLastError () != 0 ) { Sleep ( 500 ); ResetLastError (); flagSelect = SymbolSelect (symb, true ); } int count = 0 ; double optionBid = 0 ; do { optionBid = SymbolInfoDouble (symb

ORDER_PRICE_CURRENT

Is ORDER_PRICE_CURRENT equals weighted (by volume) average of deal prices? Order 141522804 was placed during market opening auction at market execution and HistoryOrderGetTicket ( 141522804 , ORDER_PRICE_CURRENT ) == 7 , 91 but it was 9,33, according to screenshot: Am I misunderstanding

Multiple operations same EA and same symbol

Hello folks, Every time my EA receive a tick and validate as a buy signal , it executes: myTradingControlPanel.BuyStop(lote,entryPrice, _Symbol ,PFRLow - 0.01 , PFRHigh + (PFRHigh - PFRLow) * 2 , ORDER_TIME_DAY , 0 , "Preço Fech Rev" ); The problem: if I already have an opened position for same

Failed connect server - notify.mql5.net

Suddenly I stopped receiving notifications. MT5 Journal is returning Failed connect server - notify.mql5.net. This is happening on my Google Cloud Instance. Testing with my own computer was successful, so I believe GCE blocked it. Anyone faced same problem? If yes, how to handle it

EA backtest not updating profit

EA runs very well on real market. But during backtests, profit is not being updated as you can see: Orders are being filled, but in the end of simulation account balance remains the same as open balance (in this case 1.000.000 USD). On code below if ( PositionSelect ( _Symbol ) == true ) // We have

How to get market closing time

There is a situation very specific for BM&F Bovespa (Brazilian market). During US daylight savings, market hours change +1 hour (I will not get into the reason). My EA must end profitable positions during the last 10 minutes of market run (in fact, before closing auction starts). Now it is hard

Price prediction based on indicator value

Dear all, How can I get price of symbol to match predefined value of indicator? Example: RSI=5 and price=30. What is the price for RSI=2? It is < 30, but how much? Thanks in advance, Henrique

Restrict data download

Dear MT lovers, I use an Windows 2012 Server Amazon AWS instance to run EA, but constantly I am running out of disk space. My workaround is manually delete hcc files from < 2016 year and I have to do this twice a week on average. Nowadays my instance is for free (12 months Amazon trial with 30GB HD