Would anybody give me an Idea how to plot on chart bars that meet criteria 1 and 2. Not 1 or 2. I want to plot bars with small body size that having big volume , but it's plotting both small bars and bars with big volume separate of each other. What's wrong here? The script is below. For example, I want to find bars that having bar size of 370 points or less and volume more than 100.
input VolCount = 370;
input BodySize = 100;
def dir = if(close > open, close - open, open - close);
AssignPriceColor(if BodySize >= dir and volume >= VolCount then color.white else color.current);
input VolCount = 370;
input BodySize = 100;
def dir = if(close > open, close - open, open - close);
AssignPriceColor(if BodySize >= dir and volume >= VolCount then color.white else color.current);
Last edited: