0% found this document useful (0 votes)
174 views

VDX Org

The document defines a trading strategy that calculates buy and sell signals based on RSI and price levels. When a buy signal occurs, it places labels on the chart at the entry, two take profit targets, and stop loss level. For sell signals, it similarly places labels at the exit, two take profit targets, and stop loss level.

Uploaded by

Vikas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
174 views

VDX Org

The document defines a trading strategy that calculates buy and sell signals based on RSI and price levels. When a buy signal occurs, it places labels on the chart at the entry, two take profit targets, and stop loss level. For sell signals, it similarly places labels at the exit, two take profit targets, and stop loss level.

Uploaded by

Vikas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 2

//@version=4

study(title = "VDX ", overlay = true,max_labels_count = 500)

sSL = highest(high, 60)

bSL = lowest(low, 60)

R = sSL-bSL

bEN = bSL + 0.11 * R

bT1 = bSL + 0.23 * R

bT2 = bSL + 0.38 * R

sEN = sSL - 0.11 * R

sT1 = sSL - 0.23 * R

sT2 = sSL - 0.38 * R

buy = crossover(rsi(close,14), 30) and close <= bT1 and hour <= 14

sell = crossunder(rsi(close,14), 70) and close >= sT1 and hour <= 14

if (buy)

label.new(bar_index,high, text = "B")

label.new(bar_index[4], bEN, text="———————————————————————— Buy: " +


tostring(bEN),style = label.style_label_left,textcolor = color.blue, color = color.new(color.black, 100))

label.new(bar_index[4], bT1, text="———————————————————————— TGT1: " +


tostring(bT1),style = label.style_label_left,textcolor = color.green, color = color.new(color.black, 100))

label.new(bar_index[4], bT2, text="———————————————————————— TGT2: " +


tostring(bT2),style = label.style_label_left,textcolor = color.green, color = color.new(color.yellow, 100))

label.new(bar_index[4], bSL, text="———————————————————————— SL: " +


tostring(bSL),style = label.style_label_left,textcolor = color.red, color = color.new(color.black, 100))

if (sell)

label.new(bar_index,high, text = "S")

label.new(bar_index[4], sEN, text="———————————————————————— Sell: " +


tostring(sEN),style = label.style_label_left,textcolor = color.blue, color = color.new(color.black, 100))
label.new(bar_index[4], sT1, text="———————————————————————— TGT1: " +
tostring(sT1),style = label.style_label_left,textcolor = color.green, color = color.new(color.black, 100))

label.new(bar_index[4], sT2, text="———————————————————————— TGT2: " +


tostring(sT2),style = label.style_label_left,textcolor = color.green, color = color.new(color.yellow, 100))

label.new(bar_index[4], sSL, text="———————————————————————— SL: " +


tostring(sSL),style = label.style_label_left,textcolor = color.red, color = color.new(color.black, 100))

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy