Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

jvillegas

Members
  • Content Count

    2
  • Joined

  • Last visited

Everything posted by jvillegas

  1. 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.
  2. 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_DAYS; case "3 DAYS": period = AggregationPeriod.THREE_DAYS; case "4 DAYS": period = AggregationPeriod.FOUR_DAYS; 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("Profile", GetColor(1)); addProfile(Profile.VOLUME, "timePerProfile" = period, "onExpansion" = onExpansion, "numberOfProfiles" = profiles, "pricePerRow" = heigth, "color"=globalColor("Profile")); The question is: How I see the bars as histogram ? Thanks.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.