Welcome to the Traders Laboratory Forums.
Market Profile Are you a market profile trader? Post here.

Reply
Old 03-01-2010, 04:00 PM   #1

Join Date: Mar 2010
Location: Medellin
Posts: 2
Ignore this user

Thanks: 1
Thanked 0 Times in 0 Posts

Volume Profile on Think or Swim

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 the bars as histogram ?

Thanks.
jvillegas is offline  
Reply With Quote

Reply

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Think or Swim Code/indicators MC Coding Forum 129 02-12-2012 03:24 PM
Volume Profile pinonirvana Trading Indicators 13 03-17-2010 09:19 AM
[Market Profile] Market profile / volume profile jfutures Technical Analysis 2 10-10-2008 10:08 AM
Ant: Simulating volume profile in Activity Bar? nasdaq5048 Market Profile 5 03-27-2007 05:56 PM
ER2 Profile and Volume Breakdown TinGull Technical Analysis 4 12-15-2006 06:32 PM

All times are GMT -4. The time now is 10:37 AM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.