Connecting to live data…

Settings

//@name My script and //@overlay true (on price) or false (own pane).

Series

open high low close volume hl2 hlc3 ohlc4 bar_index. close[1] is the previous bar.

Maths

+ - * / %, > < >= <= == !=, and or not, cond ? a : b, abs max min pow sqrt log round nz. Assign with name = expr.

Indicators

sma ema wma rma(src, len), rsi(src, len), stdev highest lowest sum change roc(src, len), atr(len), tr(), vwap(), crossover crossunder cross(a, b).

Output

plot(series, "Title", "#hex"), hline(70), plotshape(cond, "Text", "up" or "down", "#hex"), bgcolor(cond, "#hex").

Strategy

long(cond), short(cond), exit(cond). Orders fill at the next bar's open; results show in the Strategy tester.

Paper trading with $100,000 of virtual funds. Orders never reach a broker. Every trade is checked against your Trading rules. Drag order, TP and SL labels on the chart to move them.