In Progress

TradingView PineScript Strategy

I need a TradingView strategy that will detect the local swing lows and place the buy orders once the price drops down below the detected swing low. The Take Profit should be placed at the previously detected swing low.

----------------------------------------------------------------------------------------

Strategy Description:

Base - is the swing low where buyers actively buy and price moves significantly up. Some traders may call it support line, but in our strategy we call it base.

When price drops below the base there is a high probability to return back to the base.

Base Detection

If price moves down and then moves up on the amount of [Base Retracement Confirmation, %] - we consider that the formed local swing low is a base.

Visually, the base is a simple local swing low (grey lines on the screenshot).

Base Broken

Base considered broken when the price reaches the first buy order (Level 1).

If the price goes below the detected base but not hit the Level 1 (meaning base is not considered broken and no order placement triggered) and then price goes up/flat/ranging - the script should ignore this base and wait for another base to be detected (see Ignore Wasted Bases section).

Important: Only the last detected base is taken into account in this strategy. All previously detected bases except the last one doesn't matter and if price goes below those previous bases they should not be considered "Broken" or "Respected".

Broken base should be plotted with red line. The line should start on the local low and ends on the current bar, until the broken base is respected (as described on the screenshot). In other words previously detected base (grey) should change color to red.

Strategy Exit Sell Order (Base Respected)

TO BE DISCUSSED WITH DEVELOPER: once MARKET or LIMIT entry buy order are executed at the same time script should place LIMIT exit sell order. Exit sell order price level should calculated as following:

Broken Base - [Take Profit Below Base, %]

Meaning, we accept that price may not go exactly to our broken base and, thus, we reduce risks by placing exit order slightly below the broken base.

Important: Once the base gets respected all corresponding to this base LIMIT orders should be cancelled.

To summarise the bases color during the whole flow should be changed as following:

base detected (grey) => base broken (red) => base respected (green).

----------------------------------------------------------------------------------------

Full task description I will provide for freelancers interested in my project. Also, I would like to explain the strategy, answer the questions and discuss our cooperation on a short google meet call.

Skills: Pine Script

About the Client:
( 0 reviews ) Kyiv, Ukraine

Project ID: #32719368

Awarded to:

AlexSevan

Hi dear customer, I'm a trader and solely trading software developer mostly for Tradingview. I have read your Specification and ready to develop you Tradingview Pinescript strategy considering base line and rules menti More

$400 USD in 7 days
(86 Reviews)
7.4

8 freelancers are bidding on average $330 for this job

kcofodile30

Hello, I am an Algo Trading and Pine Script Expert. I have created several indicators and strategies on TradingView for numerous clients (please see my reviews). I can start immediately and can send some samples via c More

$350 USD in 5 days
(24 Reviews)
6.0
AnatoliyDev

Dear sir or madam. I am working on TradingView since 5 years ago. I have experience with Programming more than 10 years. I have worked on similar projects to what you are looking for. I will respect and implement y More

$300 USD in 5 days
(23 Reviews)
5.5
CryptoPostage

★ ★ ★ ★ ★ ɪ ᴄᴀɴ ᴅᴏ ᴛʜɪꜱ ꜰᴏʀ yᴏᴜ ɴᴏ ᴩʀᴏʙʟᴇᴍ! ★ ★ ★ ★ ★ ✪ PineScript is my specialty! I love writing PineScripts and I can get started right away! ✪ I have completed over 10+ PineScript projects for customers with a More

$300 USD in 7 days
(4 Reviews)
4.1
abhaykushwaha51

Hello, I can make your tradingview script based on swing low and high. We can discuss in chat. Thank you.

$330 USD in 7 days
(8 Reviews)
3.8
omobolaleu

I am a senior software developer who has carried out many tasks related to Metatrader, Ninjatrader, Amibroker, Pinescript for Tradingview, Crypto-Trading bot, Betting bot, Telegram bot, Stock trading bots, and all othe More

$280 USD in 5 days
(5 Reviews)
3.7
NasserPeiroti

I have master degree in software engineering and i have a lot of experiences in designing experts and indicators for meta trader and tradingview which do bet automatically. I also don't have any time limitation so we c More

$280 USD in 7 days
(4 Reviews)
2.8
Nikkybae

Looking for one of the best trading bots and indicator developer for your trading experience?, look no further. I am an Expert Metatrader, Pine script, Ctrader TOS, Ninjatrader, Tradestation and Crypto Exchanges tradin More

$400 USD in 3 days
(0 Reviews)
0.0