CreateMarketOrder with different Symbol

Created at 06 Feb 2013, 11:08
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
GG

GGee

Joined 06.02.2013

CreateMarketOrder with different Symbol
06 Feb 2013, 11:08


Hi,

is it possible to use "Trade.CreateMarketOrder" with different Symbols? I mean, if i run the robot on EURJPY, i wanna open a trade on EURUSD.

Thx for info.

Greetings aykii


@GGee
Replies

admin
06 Feb 2013, 12:35

Hello,

Currently it is not possible but it will be available soon.


@admin

icebob
18 Jun 2013, 15:24

When will be available?


@icebob

cAlgo_Fanatic
19 Jun 2013, 11:14

We cannot provide that information at the moment.


@cAlgo_Fanatic

Cerunnos
16 Jul 2013, 11:55

RE:
aykii said:

Hi,

is it possible to use "Trade.CreateMarketOrder" with different Symbols? I mean, if i run the robot on EURJPY, i wanna open a trade on EURUSD.

Thx for info.

Greetings aykii

RobotLink from scyware.com should solve your problem. Robot on EURJPY communicates with second robot on EURUSD. With data from EURJPY you can use CreateMarketOrder within the second...


@Cerunnos

ianj
16 Aug 2013, 18:51

That truly sucks - you cant  create a robot that trades multiple symbols (e.g. triangular), hedge on other pairs or act as a bridge/copy target - at least without using a clunky robot bridge and multiple robots - one per pair


@ianj

ianj
30 Aug 2013, 12:53

When exactly is "soon" ?


@ianj

ianj
30 Aug 2013, 14:45

This is rubbish - I just managed to open a EURUSD, GBPUSD, AUDUSD positions from a single Robot on a EURUSD chart

Symbol looks to be both a property and interface (in  cAlgo.API.Internals)

I implemented Symbol in my own class (MySymbol) and override Code with GBPUSD & AUDUSD and passed an instance of that into the Trade api

            mySymbol.Code = "GBPUSD"; 

            Trade.CreateMarketOrder(TradeType.Buy, mySymbol, Volume);
            mySymbol.Code = "EURUSD"; 
            Trade.CreateMarketOrder(TradeType.Buy, mySymbol, Volume);
            mySymbol.Code = "AUDUSD"; 
            Trade.CreateMarketOrder(TradeType.Buy, mySymbol, Volume);

and voila ! 3 positions - 3 pairs


@ianj

atrader
30 Aug 2013, 17:11

RE:

ianj said:

This is rubbish - I just managed to open a EURUSD, GBPUSD, AUDUSD positions from a single Robot on a EURUSD chart

Symbol looks to be both a property and interface (in  cAlgo.API.Internals)

I implemented Symbol in my own class (MySymbol) and override Code with GBPUSD & AUDUSD and passed an instance of that into the Trade api

            mySymbol.Code = "GBPUSD"; 

            Trade.CreateMarketOrder(TradeType.Buy, mySymbol, Volume);
            mySymbol.Code = "EURUSD"; 
            Trade.CreateMarketOrder(TradeType.Buy, mySymbol, Volume);
            mySymbol.Code = "AUDUSD"; 
            Trade.CreateMarketOrder(TradeType.Buy, mySymbol, Volume);

and voila ! 3 positions - 3 pairs

This is nice.  Did you code the getter for the symbol properties (Ask, Bid, etc) for this class?


@atrader

cAlgo_Development
30 Aug 2013, 17:37

These are the next features planned for cAlgo (next release). As soon as the access to multiple timeframe data series is implemented, we will start implementation on the following features:

  • Access to multiple symbols (bid, ask, digits, etc)
  • Access to data series (OHLCV) for multiple symbols
  • Declaring parameters of Symbol type in robots / indicators
  • Trading for multiple symbols

@cAlgo_Development