trading view script CS AF

Færdiggjort Opslået 1 år siden Betalt ved levering
Færdiggjort Betalt ved levering

Description:

This script will create buy and sell orders (a trading bot) when the live price crosses a pre-set price set via the Input Options by the User, and then automatically create a second buy or sell X% lower or higher than the first pre-set price. Four lines showing the four price levels display on the chart.

User Scenario:

User use the TradingView app and has a broker account with Gemini (for example)

Stock xyz is trading at $4.05.

The User runs the Strategy and opens the Options screen for the Strategy

User enters the following information:

- an Upper Range price of $4.10

- a Lower Range price of $3.00

- a percentage “move” from the Upper Range price of 10% (ie Upper Range Price 2)

- a percentage “move” from the Lower Range price of 15% (ie Lower Range Price 2)

- a Stop Loss percentage of 1%

- a Take Profit percentage of 5%

- length of lines as 20 bars

- selects “Activate”

The price levels appear on the chart in four different colours, for 20 bars. An orange line at the Upper Range price, blue for the Lower Range price, red for the Upper Range Price 2 and green for the Lower Range Price 2.

If price crosses $4.10 then a sell order is created with the broker of the User’s choice with a Stop Loss at $4.10 + ($4.10*1%) and a Take Profit of $4.10 – ($4.10 * 5%).

If price then moves higher still to the Upper Range Price 2 which is $4.10 + ($4.10 * 10%) = $4.51, then a second sell order is created using the same Stop Loss and Take Profit percentages as the first sell order.

If price then drops to $3.00 a long order is created with a Stop Loss of $3.00 – ($3.00 * 1%) and a Take Profit of $3.00 + ($3.00 * 5%).

If price drops further still to the Lower Range Price 2, then a second sell order is created.

If price goes from $4.05 to $4.15 (ie passed the Upper Price range value of $4.10) and then down to $3.95 then up to $4.20 but does not reach the stop loss or take profit to fulfil the order, then the same order will remain in place, ie a second order will not be placed at that level until the first order is fulfilled by either triggering the stop loss or take profit.

The trading strategy remains active until the User selects “De-activate” on the Options screen, or removes the strategy from the chart via other options.

See Files for Functionality spec

Pine Script Programming Trading

Projekt ID: #33475094

Om projektet

5 bud Remote projekt Aktiv 1 år siden

Tildelt til:

(24 bedømmelser)
5.1

5 freelancere byder i gennemsnit $526 timen for dette job

kcofodile30

Hello, I am an Algorithmic Trader and Pine Script Expert. I have created several indicators and strategies on TradingView for numerous clients (please see my reviews) and can send some samples via chat if required. I Flere

$550 NZD in 5 dage
(34 bedømmelser)
6.4
suyashdhoot

Hi, I lead a team of software developers, data scientists and full stack engineers with 20+ years of combined experience in developing and deploying enterprise grade software solutions. We have several years of experie Flere

$250 NZD in 7 dage
(0 bedømmelser)
2.5
neoson571

I am an expert in pine scripts programming language and a trader with 5 years experience and great profit, I will help you

$1000 NZD in 7 dage
(0 bedømmelser)
0.0