The full job is shown below.
Script must not allow “open trade” and “close trade” together. If open trade is true, close trade options must be false, and vice versa
OPEN TRADES
Script must be able to enter Buy or Sell trade(s) as a market order immediately
Script must give the option for the no. of units to be entered (minimum of 0.01 lots, no maximum)
Script must give the option for the # of trades to be entered (minimum 1 but no maximum)
How will the # of trades be sent? As a block (ie all together) or in rapid sequence (one after the other)?
Script must account for accurate/best slippage
Script must be usable on any forex pair
Script must give Option to use Stop Loss
Must allow for SL value (pips – 5 digit broker) to be chosen
Script must give option to move SL to break even after a certain value, x, of pip movement
where x must be allowed to be chosen
Script must give Option to use Trailing stop (pips)
Must allow for TS value to be chosen
Script must give Option to use Take profit (pips) –
TP must be stepwise with three different values to be allowed
Must present option for the % of trades to be closed at each step value (if multiple trades were entered)
Selected SL, TS and TP options should accompany each of the # of trades (market orders) entered as per 3 above
CLOSE TRADES
Script must be able to close trades
Trades will be closed in the following manner:
Option to close all open trades immediately
Option to close all open trades based on a % account equity increase
Option to close all open trades based on the total number of pips of all open trades
Script must do only one event, that is, after it enters a trade, it must never reconsider another entry until the Script/chart is closed and restarted