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

Reply
Old 08-05-2009, 04:53 AM   #1

Join Date: Jul 2009
Location: london
Posts: 25
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

2 Indicator 1 Chart 2 Times.

Hi

I use the hulMA on my charts and would like to modify it to pull info from another chart.

For example i have a 60 min and a 15 min chart open in the same workspace in Tradstation.

on my 15 min chart i want to add the hullMA of the 15 min and 60 min chart.

How can i do this


Here is the code im using

Code:
	

Inputs: price(Close), length(21),
		zeroLine(0.0), zeroVisible(false),
	    upColour(Green), downColour(Red), colourDeltaBar(1);

Value1 = jtHMA(price, length);

Plot1(Value1, "jtHMA");

If ZeroVisible = true then
	Plot2(zeroLine, "Zero");

{ Color criteria }
if (Value1 > Value1[1]) then 
	SetPlotColor[colourDeltaBar](1, upColour)
else if (Value1 < Value1[1]) then 
	SetPlotColor[colourDeltaBar](1, downColour);

Last edited by kamakazy; 08-05-2009 at 05:04 AM.
kamakazy is offline  
Reply With Quote
Old 08-05-2009, 10:12 AM   #2

Tams's Avatar

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

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: 2 Indicator 1 Chart 2 Times.

take a look at this thread:
http://www.traderslaboratory.com/for...hart-6492.html


Tams is offline  
Reply With Quote
Old 08-05-2009, 10:34 AM   #3

Join Date: Jul 2009
Location: london
Posts: 25
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

Re: 2 Indicator 1 Chart 2 Times.

tams thanks as always for replying to my post!

im really stuck here though i do understand data2 and that i can set data 2 as a 60 min chart i dont get where to add that into the code above!!

Manay thanks again!
kamakazy is offline  
Reply With Quote
Old 08-05-2009, 10:37 AM   #4

Tams's Avatar

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

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: 2 Indicator 1 Chart 2 Times.

in the Property of FORMAT STUDY , select data2 as the data source to base the study on.



edited

Last edited by Tams; 08-05-2009 at 11:01 AM.
Tams is offline  
Reply With Quote
Old 08-05-2009, 10:46 AM   #5

Join Date: Jul 2009
Location: london
Posts: 25
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

Re: 2 Indicator 1 Chart 2 Times.

Value1 = jtHMA(price, length, data2); ??
kamakazy is offline  
Reply With Quote
Old 08-05-2009, 11:00 AM   #6

Tams's Avatar

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

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: 2 Indicator 1 Chart 2 Times.

Quote:
Originally Posted by kamakazy »
Value1 = jtHMA(price, length, data2); ??

pls see my edited post #4.
Tams is offline  
Reply With Quote
Old 08-05-2009, 11:06 AM   #7

Join Date: Jul 2009
Location: london
Posts: 25
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

Re: 2 Indicator 1 Chart 2 Times.

hi tam

I found that but i only have 1 in the option even though i have 2 charts in this 1 window!

Do i have to define the studies anywhere?
kamakazy is offline  
Reply With Quote
Old 08-05-2009, 11:09 AM   #8

Tams's Avatar

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

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: 2 Indicator 1 Chart 2 Times.

you have to add data2 INTO the chart you want the indicator to show up.
Tams is offline  
Reply With Quote

Reply

Tags
multiple time frame

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
Value Chart Indicator Soultrader Trading Indicators 14 08-06-2009 11:44 AM
Custom Columns & Session Times Pepperdog Linnsoft 1 05-26-2009 03:14 PM
Assigning Values of Specific Times of Day in EasyLanguage? Tams Coding Forum 3 04-12-2009 11:15 AM
From $80,000 a Year to Eviction: Hard Times in America Soultrader Wall Street News 3 01-29-2009 05:15 PM
Exchange Times for Calculations for MP dubley Market Profile 0 01-04-2009 04:24 PM

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