Topics
Replies
firemyst
18 Apr 2023, 15:13
( Updated at: 21 Dec 2023, 09:23 )
RE:
.ics said:
Hi,
It would be nice if we could edit our topics on the forums after posting.
For example, if we want to
- correct some mistakes or typo's
- add some additional info
- etc...
Greetings
You can do this.
Bottom right corner of your post. You need to be logged in to do it:
@firemyst
firemyst
18 Apr 2023, 15:00
cTrader Automate has the local storage ability now with the latest version.
Prior to this version, with the system.io, you need to grant the indicator/bot "full access" in the permissions so it can write to the local file system.
Assuming the folder where you want to write to has write permissions.
@firemyst
firemyst
18 Apr 2023, 14:56
I feel like it should work as you have it.
However, perhaps it's acting the way it does because with some brokers like IC Markets, users cannot trade in 0.01 lots. I believe their minimum is 0.1 lots. Maybe that's the issue?
I would try you code on two different brokers that allow for different sizes. For instance, Pepperstone allows for 0.01 lots, so try it with Pepperstone and then IC Markets and see what happens?
@firemyst
firemyst
18 Apr 2023, 10:31
( Updated at: 21 Dec 2023, 09:23 )
RE:
Spotware said:
Dear trader,
Unfortunately we were not able to reproduce this problem. Please provide us with the following information
- Please share the logs of each application.
- Please let us know which workspace you use in each application
- After you share the above information here, send us troubleshooting from both machines the next time this happens. Add a link to this discussion in the description.
Best regards,
cTrader Team
I've sent through the information via the "report a technical issue" option in cTrader.
Here's a screen capture from cTrader now running on VPS with NAS Re8 chart. Notice the "deal maps":
Now check out the same chart on my local laptop:
You can see same chart (NAS Re8), but laptop (bottom capture) is missing at least 2 deals.
Same broker, same demo account.
Let me know what other information you may need from either machine.
@firemyst
firemyst
18 Apr 2023, 09:31
No, you cannot start a bot programmatically (at least as of cTrader version 4.5.x). However, you can stop a cbot manually or programmatically.
"Is the ModifyStopLossPrice method able to be used from an Indicator?"
I'm not sure honestly as I've never tried. However, since you don't post your code that does it, are you sure the value you're passing in for "position" isn't null? Or actually has a reference to a valid, open trade?
@firemyst
firemyst
18 Apr 2023, 09:16
RE:
Samm193 said:
Dear All,
I want to add Renko Bars to my cbot.
By example, say the next Renko bars must be green, is this possible please?
How to code this in the bot please?
Thank You,
Renko bars can be added to your bot by either:
1) selecting a renko time frame and running the bot in the REnko time frame
2) in your bot code getting the Renko Bars programmatically
3) putting in logic within your cbot that measures every x pips with each tick to see if a new bar has been formed
4) using an indicator in your bot that does #3 already
@firemyst
firemyst
17 Apr 2023, 16:45
( Updated at: 21 Dec 2023, 09:23 )
@Spotware! It's done it more times today! What's happened? This has only started since the 4.7.7 release on Renko charts.
Look at all the trades missing! One instance of cTrader running on VPS; the other cTrader running on a local computer.Both cTrader's have been restarted. How come the history entries are no longer syncing up?!
Look at all the trades missing from the other cTrader's history:
@firemyst
firemyst
17 Apr 2023, 02:38
( Updated at: 21 Dec 2023, 09:23 )
Margin calculations vary by broker and currency used.
I would log into your broker's account and see what the actual margin calculator there suggests.
For example, this is what I get when using my broker's "margin calculator":
As you can see, it varies with each currency.
And cTrader displays values depending on what currency you have selected in the application. For example:
So since you don't state what currency your account is in, what currency cTrader is displaying as, and who your broker is, I hope the info I've provided above is enough to get you started in answering your question.
@firemyst
firemyst
16 Apr 2023, 05:52
I can see a potential issue on this line with sell orders:
ModifyPosition(position, TrailingStopStep * Symbol.PipSize, null);
You probably mean to use the following like you do under buy orders:
ModifyPosition(position,
newStopLossPrice, null);
since the issue you have always only happens with sell orders.
@firemyst
firemyst
16 Apr 2023, 05:35
RE: RE: RE: RE: RE: RE: RE: RE:
Shares4us said:
@firemyst
But you still havne't posted sample code that "doesn't build" so others cna try reproducing the issue?
?????? What use has code when the problem is not syntactical or in the logic but in the dev environment itself!
If it was I'd posted (as many times before) a test code to prove the problem.
Please look at the images I posted in my inital post. Think about it and you will come to the conclusion it has NOTHING to do with code!Best rgds,
All I'm suggesting is nobody else appears to be experiencing any issues running various versions of cTrader and building numerous indicators/cbots.
So to encourage people to further help you, you'll have to give people something else to go on.
That means code, the .sln file, the .csproj file, the .algo file, or everything.
Or some sampling that reproduces the issue so others can see what's happening, investigate, and perhaps give you an answer.
If you're not willing to do that, then you might be on your own.
@firemyst
firemyst
18 Apr 2023, 15:23 ( Updated at: 21 Dec 2023, 09:23 )
RE:
remon said:
@firemyst