How To Plot Previous Close Value?
FXC911 – Forex & Crypto News & Insights
Goals
Pine Script Code
//@version=5
indicator("Plot Previous Close")
// This is the current close value
plot(close, color=color.red)
// This is the previous close value
plot(close[1], color=color.white)Code Output

Explanation
1. Version Declaration:
2. Indicator Declaration:
3. Current Close Value:
4. Previous Close Value:
Keywords
Visit me on:
Last updated