Hello everyone, how are you? I have a problem for 2 days and I want your help to solve it.
I migrated to cTrader and installed the most current version to automate my operations, I made a cBot and tried to run it yesterday, but without success.
When making the code the Build returned success, even so the cBot did not open any order, so I thought that the problem could be in the code. I tested some cBots native to the platform and none of them worked either.
My last attempt was to code a cBot with just the function of opening market orders: ExecuteMarketOrder(TradeType.Buy, SymbolName, "", 10, 10, ""); Again, Build successful and no order was placed by cBot.
I am using Windows 11, cTrader version 4.8.21 Any suggestion?
The volume parameter is second, right after SymbolName, still no order placed when running the cBot.
This code is just an example so that I can discover the real problem, because none of the platform's native cBots are working, I tested several and none of them placed orders when executed.
The volume parameter is second, right after SymbolName, still no order placed when running the cBot.
This code is just an example so that I can discover the real problem, because none of the platform's native cBots are working, I tested several and none of them placed orders when executed.
The volume parameter is second, right after SymbolName, still no order placed when running the cBot.
This code is just an example so that I can discover the real problem, because none of the platform's native cBots are working, I tested several and none of them placed orders when executed.
The volume parameter is second, right after SymbolName, still no order placed when running the cBot.
This code is just an example so that I can discover the real problem, because none of the platform's native cBots are working, I tested several and none of them placed orders when executed.
firemyst
18 Aug 2023, 13:10 ( Updated at: 18 Aug 2023, 13:13 )
Yes. Read the actual parameters to the API call and what you're passing.
For instance, your third parameter, you have “”. That's the VOLUME parameter. How can you have “” for volume?
@firemyst