Wahid363
//@version=5 indicator("Double Top Pattern with Sell Signal", overlay=true) threshold = input(1.0, title="Price Difference Threshold (%)") // Double Top Detection pivotLeft = ta.pivothigh(3, 3) pivotRight = na(pivotLeft ) ? na : ta.pivothigh(3, 3) doubleTop = na(pivotLeft) ? na : (math.abs(pivotLeft - pivotRight) / pivotLeft) * 100 < threshold // Plotting the...
//@version=5 indicator("Double Top Pattern with Sell Signal", overlay=true) threshold = input(1.0, title="Price Difference Threshold (%)") // Double Top Detection pivotLeft = ta.pivothigh(3, 3) pivotRight = na(pivotLeft ) ? na : ta.pivothigh(3, 3) doubleTop = na(pivotLeft) ? na : (math.abs(pivotLeft - pivotRight) / pivotLeft) * 100 < threshold // Plotting the...