anyone can help in fixing this code for the indicator below?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
DEFPARAM PreloadBars = 1000
// --- PARAMETERS ---
ATRPeriod = 14
ATRMultiplier = 2
VolumeThreshold = Average [ 50 ] (Volume ) * 2
// --- INDICATORS ---
ATRValue = ATR[ ATRPeriod]
ATRExplosion = ATRValue > ATRMultiplier * ATR[ 5 ]
VWAPValue = VWAP
// --- PRICE MOVEMENT DETECTION ---
BullishMove = Close > VWAPValue AND ATRExplosion AND Volume > VolumeThreshold
BearishMove = Close < VWAPValue AND ATRExplosion AND Volume > VolumeThreshold
// --- TRIGGER SIGNALS ---
IF BullishMove THEN
DRAWARROWUP (LOW , "Strong Bullish Move" , blue)
ENDIF
IF BearishMove THEN
DRAWARROWDOWN (HIGH , "Strong Bearish Move" , red)
ENDIF