Your question is not clear. Please explain what you think is wrong and how you would like it to be corrected.
Best regards,
Panagiotis
hi, the code written as follows is not correct and I don't understand how to fix it. I used " Indicator.GetIndicator<> " as it is a custom indicator. I removed ".Result " but I need to manage the value of Result somewhere...
Does the indicator have a Result property? Can you share the indicator's source code?
I have the same problem, my bots (running on ctrader-cli) stop once a week without visible reason, with or without lost connection. I help myself with writing timestamps to a logfile and having a watchdog process, that restarts the cbot when the log entries don't occure anymore.
Greetings scherli
I've been experiencing this almost every morning when I check the CLI processes. “Attempting to reconnect” while everything else is still open and running. CTrader open and connected, MT5 connected and running.
@Spotware can you please have a look at this?
Hi there,
We would need more information regarding this matter. Also this seems to be a separate issue so please do the following
Create a new thread with a clear explanation of your issue
Provide your cBot code.
Provide us with exact steps on how to reproduce this problem.
Please provide us with dates, cBot parameters and backtesting settings so that we can reproduce this behavior on backtesting. Also share some screenshots demonstrating these positions.
is there a particular indicator calculation order or could we influence it, e.g. by priorities?
In the example mentioned above the custom indicator “NNFXInfosonChart” uses the values of custom indicator “SampleSMA”, but how we can make sure that SampleSMA.LastValue is belonging to current Index (Index of NNFXInfosonChart.Calculation(THIS_INDEX)) and not to the previous index when retrieved in NNFXInfosonChart.Calculation-method?
Thank you so much.
Best regards,
Bernhard
LastValue is always the value of the last index, since the Calculate() method is called when you call the property.
said: Thanks for the tips. Got the connection working. Only not plotting data. I think becouse I need to write a code to tell the database what data to send. Any tips or example python code?
I am not familiar with MongoDB, neither I understand what you are trying to do, sorry.
Calculate() method is called once per bar for historical bars and once per tick for live bars. The part below will behave differently when the method is called once per bar, compared to once per tick
In order to identify to which request the response is related to, you need to use tag 11. Tag 41 is about identifying the order to be amended.
I see OrigClOrdID and the ClOrdID fields being echoed by CSERVER
I don't see where is OrigClOrdID sent back to you and it should not. I only see ClOrdID. OrigClOrdID should have been sent to you when the order was executed.
Best regards,
Panagiotis
Another log of what actually happens, I just tweaked my code to use specific strings as ids:
You can see I place an order, modify it, but the string this_is_the_request_id is only present in my modify request, the response doesn't contain that string.
Maybe/Probably I still misunderstand something, I would be happy if you let me know what is this about, thank you very much!
Calculate() method is called once per bar for historical bars and once per tick for live bars. The part below will behave differently when the method is called once per bar, compared to once per tick
PanagiotisCharalampous
15 May 2024, 05:56
Hi there,
You should contact a prop trading firm regarding this.
Best regards,
Panagiotis
@PanagiotisCharalampous