1) 1-2-3 High or Low
@ LOW
#Mxl:smaany[Low[0];4;0]
#Mxh:smaany[high[0];4;0]
L := low[0]
h := high[0]
lowdis := L > low[-1] AND L > Mxl[0] AND low[-1] < Mxl[-1] AND lowindaysany[4;0 ] > lowindaysany[10;0] AND RSI[14;0] < 50
@ HIGH
highdis := H < high[-1] AND H < Mxh[0] AND high[-1] > mxh[-1] AND highindays[4;0] < highindays[10;0] AND RSI[14;0] > 50
if ( lowdis )
{
buy{"123low"}
}
if ( highdis )
{
buy{"123high"}
}
.
(Candle stick pattern formula ) Finding doji
if ( doji )
{
buy{"doji"}
}
Buy/ sell signal using Expontial Moving average
if ( close[0] > ema[15;0] and close[-1] > ema[15;-1] and close[-2] < ema[15;-2] )
{
buy{close[0]}
}
if ( close[0] < ema[15;0] and close[-1] < ema[15;-1] and close[-2] > ema[15;-2] )
{
sell{close[0]}
}
Plotting RSI oversold/overbought area in graph
if ( rsi[14;0] > 70 and rsi[14;0] < 99 )
{
plot1{close[0],red}
}
else if ( rsi[14;0] < 30 and rsi[14;0] > 0 )
{
plot1{close[0],white}
}
else
{
plot1(close[0],green}
}
shifting closing price graph by 10 days
plot1{close[-10]}
mark area where volume is double or more than simple moving average of volume
if ( volume[0] > smaany[volume[0];10;-1] * 2 )
{
circle{close[0],red,"",5}
}
