A simple script for opening market orders (only Buy or Sell) on any financial instrument.
- Buy-default: false
- Sell – default: false
- Volume-default: 0.10
- Deviation-default: 10 points
- Stoploss-default: 50 points
- Takeprofit-default: 50 points
- Comment-default: Order by Market
- Confirm-default: false
Order Type
Buy: to select Buy orders, simply double-click on the Buy line
Sell: to select Sell orders, simply double-click on the Sell line
If you specify false or true in both lines, you will receive an error message
Deviation
Maximum deviation from the requested price (in points).
Stoploss and Takeprofit
Stop loss and take profit in points. Pay attention: this value will be added to the minimum level of the broker’s stops.
For example, if you set a stop loss value of 30 points for a copper futures contract, the stop loss will be set at 145 points: Stop loss 30 pips Spread (15 pips) Stop level of the symbol (100 points).
The spread and stop level values depend on the broker.
Comment
Comment, the default value is “Order by Market”, but you can enter any information about the transaction.
Confirm
When set to true (double-click), a window with information about the transaction will appear, where you can confirm or cancel the operation.