I need and expert like a console with 3 buttons, 2 to open both buy and sell positions and a button to close all open operations of the product where the expert is installed.
To open operations it is necessary to calculate the position size, the stop loss would be equal to the parabolic sar of the last closed bar and the capital at risk would be based on an adjustable percentage from 0.05 to 1 of a selection between Balance, Equity and Free Margin, said selection is required to be possible in the console itself, without having to go to modify the properties of the expert.
In case the parabolic sar (most be possible to configurate in propieties of the expert) is a buy signal (under the last closed bar) the sell button will be blocked and it will not be possible to open a sell position and vice versa.
The console must have the possibility of being minimized and dragged to the place on the screen that is needed.
The calculated number of lots must appear in a non-editable box, after each bar close.
It is for working in index, gold and forex markets, time limit 1 minute.
It must have the possibility of activating or not the automatic trailing stop by the parabolic sar itself, and with the possibility of selecting between activating it from the moment there are profits or from the first moment, all these selections directly in the console, through drop-down menus or selectors, but with out the necessary to go to propieties.
Each operation must leave a comment with the expert's identifier (selectable number in properties) and in case that de close button will be used to close the commet slould incluide also "close by user".