Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 04-22-2009, 03:06 PM   #1

daedalus's Avatar

Join Date: Jul 2007
Location: Omaha, NE
Posts: 627
Ignore this user

Thanks: 431
Thanked 546 Times in 225 Posts



Making TS Plot Wider

I have a indicator that I am trying to modify to my own parameters and i've got everything coded correctly but now i'd just like the trigger plot (in blue) to be wider or something so it visually just shows up a bit better on the chart.

I tried something like:

Quote:
begin
color = Trigger;
SetPlotWidth(Width,1);
Plot1(SR,"Support",Color) ;
Alert( "Buy Signal" );
with no luck... anyone? kinda hard to see the blue dot, but its there around 12:27

Attached Thumbnails
Making TS Plot Wider-pic001.png  
daedalus is offline  
Reply With Quote
Old 04-22-2009, 04:08 PM   #2
zdo

Join Date: Nov 2007
Location: boonies
Posts: 1,178
Ignore this user

Thanks: 299
Thanked 299 Times in 213 Posts
Blog Entries: 104



Re: Making TS Plot Wider

try switching the order of the parameters
SetPlotWidth(Width,1);
bcmes
SetPlotWidth(1, Width);
zdo is offline  
Reply With Quote
The Following User Says Thank You to zdo For This Useful Post:
daedalus (04-22-2009)
Old 04-22-2009, 04:10 PM   #3

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,589
Ignore this user

Thanks: 2,027
Thanked 1,402 Times in 862 Posts



Re: Making TS Plot Wider

here's the proper syntax:


SetPlotWidth

Assigns a specified line width to the specified plot for the duration of the current bar.

Usage
SetPlotWidth(PlotNumber, LineWidth)

Where:
PlotNumber - a numerical expression specifying the plot number;
plot numbers range from 1 to 999

LineWidth - a numerical expression specifying the plot line width;
line width can range from 1 to 14

Example
Assign a plot line width of 10 to plot1 for the duration of the current bar:

SetPlotWidth(1,10);
Tams is online now  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
daedalus (04-22-2009)
Old 04-22-2009, 04:37 PM   #4

daedalus's Avatar

Join Date: Jul 2007
Location: Omaha, NE
Posts: 627
Ignore this user

Thanks: 431
Thanked 546 Times in 225 Posts



Re: Making TS Plot Wider

I appreciate the help gents. I've tried both suggestions but I think it just must be getting overridden by something else earlier on in the code.

Oh well... just wanted it more for easy backtesting that anything!

Thanks again!
daedalus is offline  
Reply With Quote
Old 04-22-2009, 04:54 PM   #5

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,589
Ignore this user

Thanks: 2,027
Thanked 1,402 Times in 862 Posts



Re: Making TS Plot Wider

put the width in the plot.

Plot

Plots the specified numerical expression on a chart;
up to 999 different plots can be used simultaneously.
Plot offset, name, color, and plot line width can be specified by using the optional parameters.

Usage
PlotN <[Offset]>(Expression <,"PlotName"<,PlotColor <,Default <,LineWidth >>>>)


Parameters inside the angled brackets are optional

Parameters
N - a number used to identify the plot; plot numbers can range from 1 to 999

Offset - an optional parameter; a numerical expression specifying the plot offset, in bars; a positive value will displace the plot to the left along the time axis, and a negative value will displace the plot to the right along the time axis

Expression - the numerical expression to be plotted

PlotName - an optional parameter; assigns a name to the plot

PlotColor - an optional parameter; specifies the plot color
Plot color can be specified by a numerical expression representing an RGB color number or a legacy color value, by one of 17 base color words, or by the word Default to specify the color chosen by the user. In order for PlotColor to be used, PlotName parameter must also be used.

Default - an optional parameter reserved for future use; should be specified as Default; use of this parameter is required in order for LineWidth to be used

LineWidth - an optional parameter; specifies the plot line width, ranging from 1 to 14
Plot line width can be specified as a numerical expression or by the word Default to specify the line width chosen by the user. In order for LineWidth to be used, PlotName, PlotColor, and Default parameters must also be used.

Examples

Plot the closing price using the default plot color and line width:

Plot1(Close);

Plot the closing price using the default plot color and line width, and name the plot "Close":

Plot1(Close,"Close",Defau lt,Default,Default);

Plot the closing price, offset back by 3 bars, using the plot color of blue and line width of 3, and name the plot "Close 3 bars later":

Plot1[3](Close,"Close 3 bars later",Blue,Default,3);

Plot the closing price, offset forward by 3 bars, using the RGB color 2138336 (Orange), and name the plot "Close 3 bars ago":

Plot1[-3](Close,"Close 3 bars ago",2138336);

Plot the closing price using the legacy color value of 4 (Green) and name the plot "Close":

[LegacyColorValue=True];
Plot1(Close,"Close",4);
Tams is online now  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
daedalus (04-22-2009)
Old 04-22-2009, 05:00 PM   #6

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,589
Ignore this user

Thanks: 2,027
Thanked 1,402 Times in 862 Posts



Re: Making TS Plot Wider

Quote:
Originally Posted by daedalus »
I appreciate the help gents. I've tried both suggestions but I think it just must be getting overridden by something else earlier on in the code.

Oh well... just wanted it more for easy backtesting that anything!

Thanks again!
how about putting the setplotwidth after the plot statement?
would it make a difference?
Tams is online now  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
daedalus (04-22-2009)
Old 04-22-2009, 05:04 PM   #7

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,589
Ignore this user

Thanks: 2,027
Thanked 1,402 Times in 862 Posts



Re: Making TS Plot Wider

maybe it has to do with the candle?
Tams is online now  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
daedalus (04-22-2009)
Old 04-22-2009, 05:05 PM   #8

Join Date: May 2007
Location: Toronto
Posts: 247
Ignore this user

Thanks: 8
Thanked 143 Times in 53 Posts



Re: Making TS Plot Wider

Why don't you just change the settings of the SHOWME indicator to a wider WIDTH?

FORMAT --> STYLE --> WIDTH
bakrob99 is offline  
Reply With Quote
The Following User Says Thank You to bakrob99 For This Useful Post:
daedalus (04-22-2009)

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Plot Option Volume On Chart? cbratton Options Trading Laboratory 5 06-11-2009 01:06 AM
Easylanguage: Plot Points at the Extremes of High / Low nuno-online Swing Trading and Position Trading 13 02-17-2009 10:22 PM
Anyone here making $100K+ carcanaques General Discussion 9 10-27-2007 10:30 AM
How to plot MP using IB data feed? jj2005 Market Profile 0 03-14-2007 11:34 AM
Your ODDS of Making It rwalkerx Beginners Forum 2 12-06-2006 02:24 PM

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