CreateMarketOrder with different Symbol
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
Replies
Cerunnos
16 Jul 2013, 11:55
RE:
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
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
admin
06 Feb 2013, 12:35
Hello,
Currently it is not possible but it will be available soon.
@admin