Forum

OrderSend slippage value

The help for OrderSend says: slippage [in] Maximum price slippage for buy or sell orders If Is this a digits or pip value (i.e. 20 means 2 pips for EURUSD contract with 5 digits)

Launch Terminal Using Settings of the Strategy Tester

I am trying to l aunch the Strategy Tester from a command line. I am using the steps indicated in the Client Terminal help, section Tools-Configuration at Startup. I created a ma0.ini file as in the help example, I placed it in the terminal \config folder and a the ma0.set in the

mq4 batch build

I have a few EA and indicators that depend on several libraries and include files. Is there a way to make a sort of batch build file to compile all of them instead of manually build within MetaEditor

SendNotification from a script hangs MT4

I tested Notification with the Test button in the Notification tab and it works. Then I have a simple script that sends a notification. void OnStart () { //--- SendNotification ( "Test SIGNAL!" + Symbol ()); } When I run it, I receive the notification on the phone, but MT4 hangs and I have to

Changing extern variable within the EA does not change input mask when reopened

I would like to change an input variable value within the EA and show its changes value in the EA input mask. If a define a variable like a extern int myvar = 0 ; then I can change its value myvar += 1 ; but when I reopen the input mask I got the same 0 value. Is that correct? I would like to show

Expert advisor input validation

I would like to validate EA input values (i.e min. and max.). Is this possible? I would like to enable some inputs based on the selection of one other (i.e. enabling one option would enable some other inputs). Is this possible too

Order stop loss notification

I place an order with take profit and stop loss within an EA. Is it possible to be notified of the stop loss execution of a placed order in the EA, without looking at the trade history? If I have to look at history, I must send a PostMessageA(main, WM_COMMAND, MT4_WMCMD_ALL_HISTORY, 0); that

Disable manual trading when a EA is running

Is it possible to disable manual trading (i.e. closing EA opened positions) when the EA is running in order to not interfere with the EA

Flat GUI panel for EA in MT4

I would like to have a panel in an EA like this one: - some text with a chevron to open the panel. - a flat panel with no title bar with buttons and edit boxes Someone knows any similar example out there

Input value array with ComboBox

I have an array of N values as EA inputs with a default value. Instead to have N number of input fields , I would like to have a combo to select the i-th value in a single associated input field and change it. Is this possible