Forum

EA updates previous SL and TP when taking a new position on the same symbol (different lot sizes) with MT4

I am a US trader, so fifo applies. Using MT4 with IG Broker (us). Goal: Take multiple long positions on EUR/USD Different lot sizes each trade (to get around fifo) Different stop loss and take profit for each trade Issue: New trades update previous trade SL & TP to the current trade Previous trades

Odd backtest behavior in MT4. Ask is unrealistically far away while bid is correct. (This behavior is new, but showing on old data).

As the title states, I've been finding odd entries and exits during backtests recently. This occurs on all EA's even the examples provided (like the "MACD Sample"). It's even occurring on old data that I've been running tests against for the past couple weeks. This has not always been the case. My

MQL4 Self Referencing Custom Indicator, array out of range

Hello, I am new to the MQL language. I am attempting to access and apply past values to my indicator based on certain conditions. My test code looks like: int limit = rates_total-prev_calculated; if (rates_total<=DATA_LIMIT) return ( 0 ); //--- last counted bar will be recounted if