NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

study(title="WaveTrend [LazyBear]", shorttitle="WT_LB")
n1 = input(10, "Channel Length")
n2 = input(21, "Average Length")
obLevel1 = input(60, "Over Bought Level 1")
obLevel2 = input(53, "Over Bought Level 2")
osLevel1 = input(-60, "Over Sold Level 1")
osLevel2 = input(-53, "Over Sold Level 2")

// my variables
rsi = rsi(close, 14)
rsi_previous = rsi(close[1], 14)
stochastic = stoch(close, high[1], low[1], 5)
stochastic_previous = stoch(close[1], high[1], low[1], 5)

// wt_lb
n1 = input(10, "Channel Length")
n2 = input(21, "Average Length")
obLevel1 = input(60, "Over Bought Level 1")
obLevel2 = input(53, "Over Bought Level 2")
osLevel1 = input(-60, "Over Sold Level 1")
osLevel2 = input(-53, "Over Sold Level 2")
ap = hlc3
esa = ema(ap, n1)
d = ema(abs(ap - esa), n1)
ci = (ap - esa) / (0.015 * d)
tci = ema(ci, n2)
wt_lb = tci

ap = hlc3
esa = ema(ap, n1)
d = ema(abs(ap - esa), n1)
ci = (ap - esa) / (0.015 * d)
tci = ema(ci, n2)

wt1 = tci
wt2 = sma(wt1,4)

plot(0, color=gray)
plot(obLevel1, color=red)
plot(osLevel1, color=green)
plot(obLevel2, color=red, style=3)
plot(osLevel2, color=green, style=3)

plot(wt1, color=blue)
plot(wt2, color=red, style=3)
plot(wt1-wt2, color=blue, style=area, transp=80)
___________________________________________________________________________________________________________________________________________________
___________________________________________________________________________________________________________________________________________________
https://www.youtube.com/watch?v=2LRugIcbiSI
https://medium.com/@robswc/how-to-convert-tradingview-strategy-into-alerts-beginner-friendly-6d6c8a7896ed
https://www.reddit.com/r/TradingView/comments/hob5ne/tradingview_announced_strategy_alerts_with_auto/
https://backtest-rookies.com/2018/11/23/tradingview-save-a-variable-store-a-value-for-later/
___________________________________________________________________________________________________________________________________________________
___________________________________________________________________________________________________________________________________________________
convert strategy into alerts
change alert message to wunderbit(?) buy/sell order

make indicator that checks only 4hour chart
if 4hour_chart is at the bottom or lower:
check if 1hour_chart is also at bottom or lower:
check if the 15min_chart is at the bottom or lower:
if all conditions so far are met, then buy for x amount
if there are open orders, follow the above procedure, but in reverse (check all for highest position)
variables:
define current position for each chart
define high and low thresholds
define buy amount
define functions for calculations?


STRATEGY
green line = over bought level 1
red line = over bought level 2

if it's above the upper bound:
if the green line crosses top to bottom: (check if green was more than red 4 hours ago AND if green is lower or equal to red now)
if stoch is higher than 65:
if rsi is higher than 60:
send sell signal

if it's below the lower bound
if green line crosses red one from bottom to top: (check if green was less than red 4 hours ago AND if green is higher or equal to red now)
if stoch is lower than 40:
if rsi is lower than 40:
send buy signal
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.