Forum

Problem in filtering by symbol in a rare circumstances.

My EA is attached to several symbols, the opening order depends on the last closed order from history, every single EA works perfect separately for every symbol for a long time without problem until when the 2 or 3 orders for each symbol closes at the same exact time, at that time it loses control

The spread in the past.

Hi, SymbolInfoDouble() or MarketInfo() can give the current market spread Is there a way to know what was the spread for previous 10 or 20 candles ? Thank you

Troubles trying to pay a VPS.

Hi there, Can some one help me understand the message while trying to pay a VPS by credit card ? The only option I can pay with is Credit card. Thank you

Do EA normally stops after Last error ?

I think EA stops control just after getting an error, If it's the case please tell me how to let the control passes in advance after the last error regardless what the error is. { while (TicketSell2 == - 1 ) Sleep ( 100 ); RefreshRates (); TicketSell2 = OrderSend

Select the most recently closed order from History ?

Hi guys, After being filtered by Symbol, MagicN, Negative or positive Profit, is it possible to select the most recently closed order, I mean the last one closed among the others. Thanks for your help

Help me understand why Order failed to open ?

Hi, Under my EA the order failed to open saying in log "Invalid S/L or T/P" while SL and TP are set to NULL, it happened in very volatile market and spreads were widened at that moment. 1 12:01:09.942 '11111': order sell stop 1.20 GBPUSDmicro opening at 1.32476 sl: 0.00000 tp: 0.00000 failed

Checking if a market order is open "What's wrong with my code" ?

I need to check if a specific market order is open or not and return a Boolean result It returns "not all control paths return a value" bool IsMOrderOpen() { for ( int h = OrdersTotal () - 1 ; h >= 0 ; h--) if ( OrderSelect (h, SELECT_BY_POS , MODE_TRADES )) if

TestGenerator: no history data 'EURUSD 240' from 2010.01.01 to 2010.12.31

Hi guys, I wanna know how to import more history in mt4 for backtesting the oldest history as possible. Thank you

How to say "Do nothing" with if-else operator.

I just want for the EA to not execute anything when a certain condition is met (expression1) for ( int i = 0 ; i < OrdersTotal (); i++) { if (! OrderSelect (i1, SELECT_BY_POS , MODE_TRADES )) { Print ( "Error Selecting Order: " , GetLastError ());

Need Help with OrderSelect function.

Hi guys, The function works well with just one symbol but once adding the EA to more than one, the function becomes unable to select the pending order to be deleted. I can't find the problem why it doesn't work with more than one symbol. Thank you. void PODelete() { int j;