In Progress

Add to a Pine script indicator for TradingView to plot buy arrows with alert conditions

I simply need someone to add a part to the end of the below script that adds upward buy arrows with 'buy' alert conditions for this Volatility Stop indicator.

The main condition is that I don't want a green buy arrow to appear at every green cross, I only want it to appear once at the beginning of a run of green crosses / after each run of red crosses.

Below is the code. Should be a 5 minute job to someone who knows Pine script. Not a big job as I am already providing the bulk of the code for this indicator. Also I have attached an image with an example of where I want the arrows to make things clearer. Thanks!


study("Volatility Stop Custom", shorttitle="VStop", overlay=false)

length = input(20)

mult = input(2)

atr_ = atr(length)



is_uptrend_prev = false






max_ = 0.0

min_ = 0.0


max1 := max(nz(max_[1]), close)

min1 := min(nz(min_[1]), close)

is_uptrend_prev := nz(is_uptrend[1], true)

stop := is_uptrend_prev ? max1 - mult * atr_ : min1 + mult * atr_

vstop_prev := nz(vstop[1])

vstop1 := is_uptrend_prev ? max(vstop_prev, stop) : min(vstop_prev, stop)

is_uptrend := close - vstop1 >= 0

is_trend_changed := is_uptrend != is_uptrend_prev

max_ := is_trend_changed ? close : max1

min_ := is_trend_changed ? close : min1

vstop := is_trend_changed ? is_uptrend ? max_ - mult * atr_ : min_ + mult * atr_ : vstop1

plot(vstop, color = is_uptrend ? green : red, style=cross, linewidth=2)

Skills: Javascript, Metatrader, PHP, Software Architecture

See more: I would like to turn the pine script into a MT4 automated, pine script metatrader, pine script, script is done but the main functionality is not implemented well you so we have to make it correct -- 2, divergence indicator tradingview, script mt4 pending order buy stop price, buy sell arrows indicator, thinkorswim script indicator, script mt4 pending order buy sell, script indicator, script credits users can buy credits unlockbase, fix java script erors free nothing buy, ninja script indicator example, script php glitter pictures buy, buy travian script

About the Employer:
( 5 reviews ) Moncrabeau, France

Project ID: #17240855

Awarded to:

$55 USD in 1 day
(66 Reviews)

7 freelancers are bidding on average $189 for this job


Hi there, Greetings! We believe that we can help you by resolving your issues regarding scripts. The main thing about us is that we hold one goal above all others: 100% client satisfaction. Our in-house team of w More

$200 USD in 3 days
(117 Reviews)

Hello, Warm greetings! You require to make modification in the website and to introduce the script you mentioned into the page. We have review your project and it could be done as your requirements says, We More

$155 USD in 3 days
(58 Reviews)

I believe that my 9+ years of programming experience makes me highly qualified for this project. I believe that I would be an asset to this project. Javascript, Metatrader, PHP, Software Architecture,

$155 USD in 1 day
(19 Reviews)
$50 USD in 3 days
(8 Reviews)

Hi, Expert here, ready to start immediately. I will always available to discuss project specs. I have reviewed all your requirements and can deliver exactly what you are looking for, 100% guaranteed. If you want More

$555 USD in 8 days
(2 Reviews)

HIGHLY interested with your project. I'm ready to start right now. My completion rate is always 100% and I STRICTLY BITE WHICH I CAN CHEW. Knock me please

$150 USD in 3 days
(20 Reviews)