Hi, I use volumen profile indicator. The code is:
input pricePerRowMode = {default AUTOMATIC, TICKSIZE, CUSTOM};
input customRowHeight = 1.0;
input timePerProfile = {default CHART, HOUR, DAY, "2 DAYS", "3 DAYS", "4 DAYS", WEEK, MONTH, "OPT EXP"};
input profiles = 1000;
input onExpansion = yes;
def period;
switch (timePerProfile){
case CHART:
period = AggregationPeriod.CHART;
case HOUR:
period = aggregationPeriod.HOUR;
case DAY:
period = AggregationPeriod.DAY;
case "2 DAYS":
period = AggregationPeriod.TWO_DAY S;
case "3 DAYS":
period = AggregationPeriod.THREE_D AYS;
case "4 DAYS":
period = AggregationPeriod.FOUR_DA YS;
case WEEK:
period = AggregationPeriod.WEEK;
case MONTH:
period = AggregationPeriod.MONTH;
case "OPT EXP":
period = AggregationPeriod.OPT_EXP ;
}
def heigth;
switch (pricePerRowMode){
case AUTOMATIC:
heigth = PricePerRow.AUTOMATIC;
case TIckSize:
heigth = PricePerRow.TICKSIZE;
case CUSTOM:
heigth = customRowHeight;
}
DefineGlobalColor("Profil e", GetColor(1));
addProfile(Profile.VOLUME , "timePerProfile" = period, "onExpansion" = onExpansion, "numberOfProfiles" = profiles, "pricePerRow" = heigth, "color"=globalColor("Prof ile"));
The question is: How I see as histogram ?
Thanks.