We want an EA that will simply place a “hard” stop loss for any live orders irrespective of the currency pair. The EA will do this immediately as orders appear.
Parameters as follows:
ALL CHARTS: true/false. If “false” then it will only add emergency stops to all new orders on the currency pair chart that the EA is attached to. If “true” then irrespective of the chart attached to, it will add emergency stops to all orders that appear live on that account (i.e. all currency pairs).
PERCENT_or_PIPS: true/false. If “false” then the EA will use a fixed number of pips/points (depending on 4/5pt broker) as the stop loss from the order entry price. If “true” then the EA will place a stop loss based on a percentage of available equity at the time of calculation; i.e. if this setting was “true” & “Amount” was “15”, that would mean the EA calculating a stop loss point which if hit, no more than 15% of the current account equity would be lost.
AMOUNT: Either the percentage amount of the account or the amount of pips/points depending on the above setting.
MAGIC NUMBER: If blank will affect every trade. If completed, will NOT affect trades with the magic number specified. Should be able to add more than one magic number if necessary with comma between each.
The EA should be able to auto-detect the lot size in relation to the broker pricing, also taking into account if broker is 4/5 decimal points, & calculate emergency stop loss accordingly.