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

Reply
Old 12-06-2010, 01:00 PM   #1

Join Date: Jan 2010
Location: Valencia
Posts: 26
Ignore this user

Thanks: 0
Thanked 2 Times in 1 Post

Execute Orders on Data2 Subchart

Hello

If I want to calculate something on Data2 chart I just need to add Data2 at the end of my instruction.

For example
myvar=(close data1)/(close data2)

What I don't know is how to send an order to the underlying of data2, all my orders get executed on data1.

What do I have to do?
For example I have on miniRusell data1 and S&P500 on data2 on the same chart. I make some calculations with both and I'd like to buy 1 contract of S&P500.

cheers
skan is offline  
Reply With Quote
Old 12-06-2010, 01:02 PM   #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: Execute Orders on Data2 Subchart

Quote:
Originally Posted by skan »
Hello

If I want to calculate something on Data2 chart I just need to add Data2 at the end of my instruction.

For example
myvar=(close data1)/(close data2)

What I don't know is how to send an order to the underlying of data2, all my orders get executed on data1.

What do I have to do?
For example I have on miniRusell data1 and S&P500 on data2 on the same chart. I make some calculations with both and I'd like to buy 1 contract of S&P500.

cheers
go put S&P500 on data1.
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote
Old 12-06-2010, 01:10 PM   #3

Join Date: Jan 2010
Location: Valencia
Posts: 26
Ignore this user

Thanks: 0
Thanked 2 Times in 1 Post

Re: Execute Orders on Data2 Subchart

OK, I've tried to state my problem in a easy way. I can't switch it.
The real think I want to do is pair trading, executing orders on data1 and data2 at once.
For example buy data1 and sellshort data2.
I know how to execute orders on data1, now I just need to know how to execute on data2
skan is offline  
Reply With Quote
Old 12-06-2010, 01:38 PM   #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: Execute Orders on Data2 Subchart

Quote:
Originally Posted by skan »
OK, I've tried to state my problem in a easy way. I can't switch it.
The real think I want to do is pair trading, executing orders on data1 and data2 at once.
For example buy data1 and sellshort data2.
I know how to execute orders on data1, now I just need to know how to execute on data2
can't do that with MultiCharts, yet.
they have promised to do it in the future.
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote
Old 12-06-2010, 02:50 PM   #5

UrmaBlume's Avatar

Join Date: Apr 2008
Location: Las Vegas
Posts: 670
Ignore this user

Thanks: 87
Thanked 618 Times in 251 Posts

Re: Execute Orders on Data2 Subchart

Quote:
Originally Posted by skan »
OK, I've tried to state my problem in a easy way. I can't switch it.
The real think I want to do is pair trading, executing orders on data1 and data2 at once.
For example buy data1 and sellshort data2.
I know how to execute orders on data1, now I just need to know how to execute on data2
tradestation 9.0 has smart order objects that will let you issues orders not only to any instrument but to any account that you are linked to and do it from any chart on any market in any time frame.


cheers

UB
UrmaBlume is offline  
Reply With Quote
Old 12-06-2010, 03:27 PM   #6

Join Date: Jan 2010
Location: Valencia
Posts: 26
Ignore this user

Thanks: 0
Thanked 2 Times in 1 Post

Re: Execute Orders on Data2 Subchart

Quote:
Originally Posted by UrmaBlume »
tradestation 9.0 has smart order objects that will let you issues orders not only to any instrument but to any account that you are linked to and do it from any chart on any market in any time frame.


cheers

UB
Hi


And what are those orders on Easylanguage?
skan is offline  
Reply With Quote
Old 12-06-2010, 04:50 PM   #7

UrmaBlume's Avatar

Join Date: Apr 2008
Location: Las Vegas
Posts: 670
Ignore this user

Thanks: 87
Thanked 618 Times in 251 Posts

Re: Execute Orders on Data2 Subchart

Quote:
Originally Posted by skan »
Hi And what are those orders on Easylanguage?
They are not so much about easy language per se as they are objects and properties in the new tool box in TS 9.0. Of the tools/objects of interest here are accounts providers, position providers and order providers.

Coupled with the price series providers (PSPs) they make a powerful set of tools for automating trading strategies.

cheers

UB
UrmaBlume is offline  
Reply With Quote
Old 12-07-2010, 06:39 AM   #8

Join Date: Apr 2010
Location: Balashikha
Posts: 1
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

Cool Re: Execute Orders on Data2 Subchart

Quote:
Originally Posted by skan »
Hello

If I want to calculate something on Data2 chart I just need to add Data2 at the end of my instruction.

For example
myvar=(close data1)/(close data2)

What I don't know is how to send an order to the underlying of data2, all my orders get executed on data1.

What do I have to do?
For example I have on miniRusell data1 and S&P500 on data2 on the same chart. I make some calculations with both and I'd like to buy 1 contract of S&P500.

cheers
Hi. You can use portfolio backtester. Add two data sources and type such a code:




gl
adeka 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
Buyer for Every Seller? gregn E-mini Futures Trading Laboratory 120 07-20-2011 04:10 PM
Phantom Orders, High Frequency Bots & Latency Arbitrage UrmaBlume Trading and the Markets 11 08-17-2010 04:32 AM
Slippage on Central Exchange rightbyleft Technical Analysis 3 09-11-2009 12:57 AM
Daytrading - Big Picture/Volume Analysis EMC2Trader Technical Analysis 56 08-12-2008 12:26 PM
Different Types Of Orders For Futures Markets? kyle Beginners Forum 2 10-11-2006 02:41 AM

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