Topics
Replies
serge.owonaokoa
03 Nov 2024, 13:32
( Updated at: 04 Nov 2024, 06:49 )
RE: RE: RE: Proposal: Improved Project Structure for cBots Development in cTrader
PanagiotisCharalampous said:
kaxalope said:
PanagiotisCharalampous said:
Hi there,
Why don't you use an external IDE like Visual Studio instead? I don't think the team will invest time in reinventing the wheel.
Best regards,
Panagiotis
I do it, and although it improves things like IntelliSense, the management of duplicated code between bots doesn't get better since each bot is a solution, as I mentioned in the previous post. If there were a way to make each bot a project instead of a solution, then the development experience could be greatly improved. And if there is a way, I'm not aware of it.
No it is not possible, however you can reference shared projects across many solutions, if this is what you are looking for.
Best regards,
I'm trying to create a shared Library to use across my indicators and cBots, I can't stand replicating or copying code.
I decide to follow you recommendation of using a Shared Project. I have a couple questions:
1- Do you recommend having a single Git Repo for all Indicators and cBots, I mean creating the repo under <USER_HOME>\Documents\cAlgo\Sources or Should I setup 1 project per indicator?
2-If 3 indicator are all using the same shared Project, Do I need to create that sharedProject with the Solution of 1 Indicator or cBot and reuse in others?
I noticed that if the SharedProject isn't located within a specific location the AlgoHost.exe proecess crashes with error of not having access to the SharedProject folder. Which folder under under <USER_HOME>\Documents\cAlgo\Sources the SharedProject must be to prevent this?
Thanks.
Would be great i you could provide a sample of 2 indcators and 2 cBots using a shared project.
@serge.owonaokoa
serge.owonaokoa
12 Nov 2024, 21:51
RE: RE: RE: RE: RE: Proposal: Improved Project Structure for cBots Development in cTrader
PanagiotisCharalampous said:
Thank you for your very diplomatic reply, that doesn't really take us anywhere.
I think it's really deciving to point your users nowhere rather than helping with real problems.
If what cTrader recommend is to write duplicate code, then please be clear on that.
If you recommend shared project then please be clear and give a simple example of :
Indicator A, Indicator B, sharedProject C and robot D all using logic in SharedProject C.
If that's not possible then please say so.
I really don't see what our own requirements could make a difference in this very specific question.
@serge.owonaokoa