michaelb / Publications
Forum
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 order in the Terminal window shows a price of 1.27771, not
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
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();
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
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 need help with the Alert section to identify the
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 closeAllOrders() { int iOrders = OrdersTotal(); for(int
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 chart? Thanks
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 get the window to open? Thanks
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 chart? Thanks
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 ); fasterEMAprevious = iMA(NULL, 0, FasterEMA, 0, MODE_EMA