Execute trade on arbitrary Symbol name

Created at 17 May 2024, 23:23
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!
MH

mhsgoud2023

Joined 17.05.2024

Execute trade on arbitrary Symbol name
17 May 2024, 23:23


Hi,

how can I place a trade on a totally arbitrary name for symbol?


 ExecuteMarketOrder(tradeType, SymbolName, volume, "TP1");


basically I don't know how to change SymbolName…


I might need to start positions on different symbols. currently I have to run a new instance on every symbol…


Thanks,


@mhsgoud2023
Replies

mhsgoud2023
20 May 2024, 10:57 ( Updated at: 21 May 2024, 05:34 )

so strange…. there is no ways to do it?


@mhsgoud2023

PanagiotisCharalampous
21 May 2024, 05:57

Hi there,

SymbolName is just a string. You can replace it with any symbol name you wish e.g.

 ExecuteMarketOrder(tradeType, “EURUSD”, volume, "TP1");

Best regards,

Panagiotis


@PanagiotisCharalampous