michaelb
michaelb
Friends

Add friends via their profile or user search and you will be able to see if they are online

michaelb
Registered at MQL5.community
michaelb
Added topic Strategy Tester Manual Buy/Sell Orders
I'm using Build 419. I started the Strategy Tester using the MT4 "MACD Sample" EA. When the chart appeared and the price line began to move, I Paused the test. I then placed a Buy order at the chart price of 1.29317 However, the resulting
michaelb
Added topic Build/Create Unique Magic Number
Does anyone see a problem using the following code to build a unique magic number ?? [I cannot use symbol or timeframe in the magic number] int magic = TimeCurrent();
michaelb
Added topic How to delete Account History in Demo account
Is there any way to delete the Account History [ie the complete Trade History] in a Demo account . I can always open a new account, but I'm hoping there is a more efficient method, for example, deleting one file
michaelb
Added topic Array Begining vs End
I have an indicator with the following code. The intent is to open an alert window when the SSA line crosses the 0 level. However, when the 0 level is crossed, there is no alert window. Then, several candles later, the alert window finally opens. I
michaelb
Added topic OrderClose for Buy giving Invalid Trade Parameters
I had 5 or 6 open positions, when I executed the following routine. All of the positions closed successfully except one Buy order, with the error "Invalid Trade Parameters" Any ideas on the cause and possible solution?? Thank you. void
michaelb
Added topic Text disappearing from chart
I can add text to a chart using the toolbar "Text Label" button. [I do not mean the "Text" button] Later, if I change intervals or add an indicator, the text sometimes disappears. Is there a way to KEEP the text FIXED on the
michaelb
Added topic Script not showing Properties
It seems when you execute some scripts, a pop-up window opens, allowing you to change the Properties. Other scripts execute immediately without the pop-up window. I have a simple script that does NOT open the properties window. What can I change to
michaelb
Added topic When using Toolbar "Text Label" chart text disappears
I can add text to a chart using the toolbar "Text Label" button. [I do not mean the "Text" button] Sometimes if I add an indicator, or change intervals, and return, the text disappears. Is there a way to KEEP the text on the
michaelb
Added topic Help in understanding Current Candle +1 vs -1
I have an indicator that alerts when 2 Moving Averages cross. This indicator has the following section of code-- limit=Bars-counted_bars; for(i = 0; i <= limit; i++) { fasterEMAnow = iMA(NULL, 0, FasterEMA, 0, MODE_EMA, PRICE_CLOSE, i );
michaelb
Added topic Stop and Exit EA when Equity has increased by $ amount.
I have an EA that may open and close several trades during a Trading session . If the Equity increases by $150, then I want to close any open orders and stop/exit the EA from any further Trading. Thank you
michaelb
Added topic How to close all open orders based on Magic number
The following function will close ALL Open positions-- void closeAllPositions() { while(OrdersTotal()>0) { OrderSelect(0,SELECT_BY_POS); if(OrderType()==OP_BUY) OrderClose(OrderTicket(),OrderLots(),MarketInfo(OrderSymbol(),MODE_BID),999,CLR_NONE);
michaelb
Added topic AccountProfit by magic number.
AccountProfit () returns total profit value of the current account. Is there a way to get profit value for only those orders created with a specific magic number ?? Thank you
michaelb
Added topic Error 129 from open order in EA
I have only one chart open, the AUDUSD window. This is where the EA is running. When a certain condition is met, the EA will attempt to open a position for a different pair, for example the EURUSD. The result is always a 129 error. Here is my code--