[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Buy or Selling Data2 - How can do?



PureBytes Links

Trading Reference Links

> Does anyone know how can I Buy Data1 and Sell Data2 like doing a
> intermarket spread? 

You can't.  TS only supports buys, sells, stops, etc on Data1.

You can construct a synthetic spread for backtesting purposes -- just 
chart your two markets and write the spread OHLC to a file, then 
chart that in data1.  But you can't do that in realtime, unless you 
want to try something fancy like charting Mkt1 and Mkt2 in one 
window, calculating and writing out the spread to a file, and then 
forcing a second chart to re-read and chart the file at the end of 
each bar.  Messy.

If you don't use stops, you could compute your buy/sell points by 
calculating the spread value between data1 and data2, or data2/3, or 
whatever.  What you actually buy and sell in data1 is fairly 
irrelevant.  Then just follow the system's buy/sell signals when they 
hit.  But this won't work if you need to use stops on the spread.

Gary