Hi Guys,
Post your VAI Screener. Don't forget to include the following.
Date:
Script: (your script or built in VAI script)
// MAMA Set-up (Modified ALMA-MACD)
// Popularized as MAMA Set up by Trader's Den
// Works well on daily charts.
// Set variables
Set MACD_line = MACD(12,26,9, exponential)
Set MACD_signal = MACDSIGNAL(12,26,9, exponential)
Set Hist = MACD_line - MACD_signal
Set ALMA = alma(close,9,.85,6)
// *MODIFICATION HERE*
// Set Buy and Sell (
Set Buy = crossover(MACD_Line, MACD_signal) and close > ALMA
Set Sell = close < ALMA
//Plot MACD
//Plot(value,type,color,pane)
Set MACDhistup = if(hist > 0, hist ,0)
Set MACDhistdown = if(hist < 0, hist, 0)
plot(MACDhistup, stackedbar, green, MACD)
plot(MACDhistdown, stackedbar, red, MACD)
plot( MACD_line, line, blue, MACD)
plot(MACD_signal, line, red, MACD)
plot(ALMA,line,yellow,main)
//Plot Buy and Sell Signals
//Plot(value,type: Buy/Sell,color,pane)
//Buy - Label displayed below
//Sell- Label displayed above
//plot(Buy, Buy, Green, Main)
//plot(Sell, Sell, Red, Main)
//To use Buy and Sell combination, use plotbuysell command
//No Buy signal if there is existing Buy not closed by Sell. No Sell signal if there is no prior Buy signal.
//plotBuySell (Buy Variable, Sell Variable, Color for Buy, Color for Sell, main - Main pane)
plotbuysell (buy, sell, green, red, main)
//Signals - used to display flags in screener and backtesting.
signals(Buy,Sell)
//Breakout
Set Breakhigh = max(high,5)
Set Breaklow = min(low,5)
Set Breakoutsignal = close > ref(breakhigh,1)
Set Breakdownsignal = close < ref(breaklow,1)
plot(breakhigh,step,green,main)
plot(breaklow,step,red,main)
// Gaps Screener
Set Gap Up = high > (ref(high,1)*1.02)
Set Gap Down = low < (ref(low,1) *.98)
signals(gap_up, gap_down)
plot(gap up,buy,green,main)
plot(gap down,sell,red,main)
//RSI Levels Screener
//Set Variables
Set RSI = RSI(close,30)
Set Bullish Crossover = crossover(rsi,50)
Set Support = RSI > 50 and RSI <55
Set Resistance = RSI <50 and RSI >45
Set Overbought = RSI > 80
Set Oversold = RSI < 20
plot(rsi,line,red,rsi)
plotrange(50,55,green,RSI)
plotrange(45,50,red,RSI)
plot(20,line,green,rsi)
plot(80,line,red,rsi)
Signals(Bullish Crossover,Resistance,Support:Green,Overbought:red,oversold:green)