//-------------------------------------------------------------------------
// Main code : CherBeyondCharts DJI 5M v1.0
//-------------------------------------------------------------------------
//https://www.prorealcode.com/topic/beyond-charts-code-to-convert/
//{Close above highest high in 26 wks, close above 60EMA, with a dominant green candle, on volume greater than 20% of moving average of the volume, a short wick and liquidity filter}
DEFPARAM CUMULATEORDERS = False
HighestHigh= Close> highest[26](high)[1]
GreenCandle= Close> Open
BigGreen= Close-Open>1.5*weightedaverage[15](ABS(close-open)[1])
BigMA= Close > exponentialaverage[60](close)
Y= 13
Y1= 20
Percent= Y1/100
Multiple=Percent+1
VEMA= exponentialaverage[Y](volume)
HighVolume= Volume > Multiple*VEMA
ShortWick = High-Close<0.50*(Close-Open)
AvgClose= average[21](close)
AvgVolume= average[21](volume)
//MinVolume= lowest[13](volume)[1]
Liquidity= AvgVolume*AvgClose>1000000/2
Signal= HighestHigh AND GreenCandle AND HighVolume AND BigMA AND BigGreen AND ShortWick AND Liquidity
If Signal Then
Buy at market
Endif
SET TARGET PROFIT 130
SET STOP PLOSS 60