Script for pending orders

2019.10.16 Indicators Scripts

Specification

I need a script to place pending orders and market orders with stop loss and take profit.
there are two method of counting lots: fixed size or as a percentage loss of account value. that is, the transaction should not lose more than a certain percentage of the account.

orders are sent based on the prices of the last closed candle.
so we have to count range of candle as difference betwwen its high and low.
we also have two numbers parameters A and B.
so for buy stop will be high price last closed candle + A, stop loss will be low price last closed candle - B
for sell stop will be low price last closed candle - B, stop loss will be high price last closed candle + A
and i want to have possibiity do send market orders with stop loss counting like for pending orders.

i need te panel on the chart do modify parameters A and B, multiplier for take profit and buttons for pending orders and market orders.
if sending orders is above the current price i want to decide if it will buy stop or sell limit, if the price for sending is below current proce i want to decide if it will be sell stop or buy limit

take profit is stop loss multiplied by the number

Responded

1
Developer 1
2019.10.16
Rating
4.92
(287)
Projects
462
45%
Arbitration
26
31% / 31%
Overdue
106
23%
Working
2
Developer 2
2019.10.16
Rating
4.95
(158)
Projects
276
43%
Arbitration
17
12% / 35%
Overdue
108
39%
Working
3
Developer 3
2019.10.16
Rating
0
Projects
0
0%
Arbitration
0
Overdue
0
Free
4
Developer 4
2019.10.17
Rating
4.9
(577)
Projects
757
39%
Arbitration
39
5% / 56%
Overdue
123
16%
Working
5
Developer 5
2019.10.17
Rating
5
(3)
Projects
4
25%
Arbitration
0
Overdue
0
Working

Project information

Budget
30+ USD
VAT (23%): 6.9 USD
Total: 36.9 USD
For the developer
27 USD

Customer

Placed orders3
Arbitrage count0