Forum

OrderModify changes to many orders

So I have this EA that reads from a txt file and takes the info from that checks if its a AdjustTradeOrder or NewTrade or CloseTrade. NewTrade works as it should but my AdjustTradeOrder sometimes changes all open orders but I'm using a check system to check if the myTradeID is the same as on the

market order #xxx cannot be deleted

Hi. I'm trying to delete an order but I only get: market order #58321089 cannot be deleted. I know that the ID is correct. I also know that the order is still live. Why can this be? //+------------------------------------------------------------------+ void CanceledOrder( string myType, string

FileWrite / FileWriteArray Only Appens.

So I'm trying to read from a text file and after reading the information delete that line from the text file. The reading part I get but when I try to Write with one less in the array it appends the array insted of deleting the contend and then writing with this new array size. Do I need to FileOpen

Show Profit between two drawn object.

So. I'm working on a small indicator that draws 3 objects openPosition TakeProfitPosition TakeStopLossPosition These Object should calculate Profit in Dollar. With The code I have it works on EURUSD but not XAUUSD. Then it gives me xxxx instead of xx.xx ($7799 instead of $77.99) double lot =

Move subscription - subscription can be moved no more then once a week

So I made 2 mistakes. 1. Install signal on my demo account . 2. after finding the move subscription option I prest ENTER to earily when switching tabs with only the brooker information correct and not the account info correct. No i'm stuck with subscription can be moved no more then once a week. Any

Multi Currency Multi TimeFrame

So I'm trying to create a Multi Currency Multi TimeFrame EA. I've come so far that it loops thru currencies and Periods of my chose. I send those to a Signal function that test the signal of my chosen indicator. So far so good. My problem is that if my SL takes out my order on the first bar it

Multi-Currency EA - Problem with TP & SL not getting to OrderSend.

So I’m working on my first Multi-Currency EA from the template given by DADALI ARWALY https://www.mql5.com/en/code/28181. I’m using <Deleted> as my Buy Sell Signal and TP & SL. This works very well now but I’m having one problem that only happens sometimes and that is that my EA don’t ad the TP & SL

Pending Order comments

Hi. I was thinking of making a indicator that plats the comment of pending orders on those buy/sell Limit/stop lines. Is there any way of finding pending orders? im using this for something eleas but this only gives me trades that have been open for ( int i=OrdersHistoryTotal() - 1 ; i >= 0 ; i--)

iCustom With over 70 inputs problem

Hi. So I've started to test and see if I can use a bought Indicator as a trigger for my EA. I can get the EA to work with all the Indicators buffers if i just dont count for all the inputs in the code. double PFTP_BuySignal = iCustom ( Symbol (), PERIOD_CURRENT , "Market/Payed/PipFinite Trend PRO"

Indicator based on EA with live Backtest

We are working on a EA that shows you trading signals and stop signals that also plots a rectangle and show you how many pips your profit of that trade was. This picture is from a strategy tester run. You can see red Vlines as sell signals and green as buy. Black Vlines are close orders and the