Professional Documents
Culture Documents
??
??
// Original scripts are "The Lie Detector" by LucF and "Volume FLow v3" by oh92
// You need [Chart settings] → [Appearance] → [bottom margin] is set 0 %.
// volume density is volume divided by price. it means how many volume is used to
move price. large volume density means absorption by smart money.
// volume flow is value difference between bull MA(using vol which is larger than
previous vol and close > open) and bear MA(using vol which is larger than previous
vol and not close > open)
// ———————————————————— Functions {
// ----- Bar coloring cal (The Lie Detector)
upVol = ta.rising(vol, 1)
upBar = close > open
// ———————————————————— Outputs {
// }
// MA dif
vf_dif = bullma - bearma
vf_absolute = vf_dif > 0 ? vf_dif : vf_dif * (-1)
// Volume Spikes
gsig= ta.crossover(bull, bullma * x) ? vol : na
rsig = ta.crossover(bear, bearma * x) ? vol : na
// Plots
// plot(bullma*2, color=hivolup, linewidth=1, title="Bull MA")
// plot(bearma*2, color=hivoldn, linewidth=1, title="Bear MA")
plotchar(gsig, char= "🍏", color= hivolupcandle, location= location.absolute, title=
"Bull Vol Spike")
plotchar(rsig, char= "🍎", color= hivoldncandle, location= location.absolute, title=
"Bear Vol Spike")
// ================================================================
//💥💥💥💥💥💥💥💥💥💥💥💥💥💥//
//💥💥💥💥💥💥💥💥💥💥💥💥💥💥//