Hi,
I would like to know if it's possible to auto-trade on a different symbol as is plotted/showing in data1 of the chart?
A buy signal from a strategy on GBPUSD would result in a trade in EURUSD.
Regards,
Jo
Trade on different IB symbol?
-
- Posts: 407
- Joined: 01 Jan 2008
- Been thanked: 3 times
Yes, you can, just put Eur as data 1 and Gbp as data2, then say something like " if value1 crosses above value2 then buy next bar at open."
Value1 and value2 must refer to data 2.
Value1= average(c of data2,5)
Value2 = (average(c of data2,15); etc.
The buy sell signals will be placed on data 1.
This is just a simple example of coding, do NOT trade it !
I've never tried auto trading but it should work.
Value1 and value2 must refer to data 2.
Value1= average(c of data2,5)
Value2 = (average(c of data2,15); etc.
The buy sell signals will be placed on data 1.
This is just a simple example of coding, do NOT trade it !
I've never tried auto trading but it should work.