Create a pine script tool to manage risk and place orders on Tradingview

Other Scripts Consultation

Specification

I want to pull a fib, with set entry price at a certain percentage, with stopploss set at another percentage of the fib. Risk is set in USD. Risk to match stop loss level. TP is set as ratio to stop loss. Calculate no. of contracts. A hot key for buy and one for sell.

 Illustration:

In settings

Inputs:

Fib% to be displayed

Entry level fib%

stop loss fib percentage

TP ratio

Risk in USD or account percentage


Operation

I pull the fib it automatically calculates the size of the trade. Then a hot key is used to place the orders at the set prices.

Responded

1
Developer 1
Rating
(3)
Projects
2
0%
Arbitration
1
0% / 0%
Overdue
0
Free
2
Developer 2
Rating
(25)
Projects
29
21%
Arbitration
20
10% / 50%
Overdue
8
28%
Working
3
Developer 3
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free

Project information

Budget
30 - 40 USD
Deadline
to 3 day(s)