You have not provided a screenshot therefore it is hard for us to understand what you are doing. If you can provide a video and also rewrite a post in a form of a question, explaining what you expect to happen, it would help us help you.
Why would you want that? Simply start a new test with new parameters :)
And hope for the script to be better? :D
Clearly, I have no idea why my script is wrong (otherwise I would not have programmed that problem into the script). So I have to “debug”. There is no debug feature in cTrader so I had to make it myself which is bastardizing the output screen with drawn characters where certain events should have happened (like to MAs crossing each other and THERE I expect the BUY to happen). I have to do this because cBots lack almost all plotting features that an Indicator has (for some weird reason).
But those self-created debug prints will be completely overwhelmed by the result of the backtest and there was no obvious “clear” option.
When you add a symbol to a cBot, the starting screen is empty. Why isn't there an action that brings the user back to that empty state?
Also, this kind of displaying the trades (drawing gazillion horizontal lines) is pretty much useless, compared to what others do to make less noise:
Hi there,
It seems you are not very familiar with cTrader
There is no debug feature in cTrader
Of course there is, cTrader has the most advanced debugging options compared to other tools I know
I have to do this because cBots lack almost all plotting features that an Indicator has (for some weird reason).
No it doesn't. Check how you can plot indicators using a cBot https://help.ctrader.com/ctrader-algo/references/Attributes/RobotAttribute/?h=addindicat#addindicators
Also, this kind of displaying the trades (drawing gazillion horizontal lines) is pretty much useless, compared to what others do to make less noise:
The horizontal likes are not trades. They are positions and orders. You can enable/disable the in your chart's viewing options. Deals are represented with the deal map.
Take some time to learn cTrader better and your life will become easier :)
I have a backgroundworker that needs to use some indicators(eg DMS) while running calculating some MTF bars. The values of the indicators are to be used in the backgroundcalculations and the indicators should preferably be local to the static backgroundworker. Usage like var O = Bars[10].Open; and like var RS = Indicators.RelativeStrengthIndex(closePrices, entry.14); var I DM = Indicators.DirectionalMovementSystem(entry.14);
How to achieve that without invoking the main thread?
You can't. If you need data from the Bars object, you need to work on the main thread.
jokes aside - i can type via option+5 in the search bar for the indicators without any problems.
just INSIDE the Code-area it is not available. i also checked for some hotkey assignments in the settings. option+5 was assigned → i changed it, but no impact
Hi there,
What keyboard layout do you use?
Best regards,
Panagiotis
Good Morning Panagiotis,
iMac 27": mac OSVentura 13.6.9, Keyboard ("qwertz" / German), Keyboard Model A1843. MacBook Air OS 14(I THINK), Keyboard ("qwertz"), MacBook Model A1932.
Thank you in Advance!
Best regards
levd20 :)
It will be solved in an upcoming update. In the meanwhile, try using an English layout when typing code
What is the actual inquiry? Do you want somebody to develop this for you for free? Do you want to develop this yourself but you need clarifications? Please elaborate.
It seems that you run several cBot's and custom indicators which are consuming the CPU. The actual cTrader applciations do not seem to use more than 5% of the CPU. Also it is normal that the CPU usage during peak hours will increase as all of these custom algos will have more ticks to process.
As you can see from the image between the two horizontal lines there are 2518.48 - 2498.34 = 20.1 pips which is pretty much what the True Range Indicator shows but when measuring the distance you can see the popup showing 200+ pips. I
Hi there,
As per the chart's scale, I don't see any problem. The indicator's measuring unit is not pips but quote price.
You guessed right, this is not possible. We are not considering this either, since in the majority of cases, this need can be covered by cTrader Algo.
Best regards,
Panagiotis
Hi Panagiotis,
Thanks for clarifying.
Unlike spreads, I agree that such feature could be a bit redundant for the remaining account/symbol properties mentioned, due to the following:
These can be checked as often as needed (OnTick())
The process of filling out orders and closing positions is not directly depending on these
However, spread has a direct impact on filing pending orders and closing positions (with a harmful effect on the SL side). This impact can be particularly negative when considering sudden spikes in spreads and cannot be avoided via cAlgo (on the cBot side), unless some instruction is stored on the server. Am I right?
I understand that spreads can be checked before placing market orders which will mitigate the risk, however, I don't really see how this can be achieved when it comes to pending orders and open positions.
Hi ncel01,
Yes you are right. This is the only use case I can think of that cannot be managed on the client side. You can post it as a separate suggestion.
PanagiotisCharalampous
27 Aug 2024, 09:29
Hi there,
You have not provided a screenshot therefore it is hard for us to understand what you are doing. If you can provide a video and also rewrite a post in a form of a question, explaining what you expect to happen, it would help us help you.
Best regards,
Panagiotis
@PanagiotisCharalampous