A screenshot of the full UI showing that there is only one account displaying in cTrader
A screenshot from the ID site showing that there are more than one accounts linked to this cTrader ID.
Best regards,
Panagiotis
Demo - Hedging - 4060387 - 47,150.85 USD - 1:100 This is with SwiftFunding
Demo - Hedging - 4060387 - 47,150.85 USD - 1:100 This is with My Funded FX
There is no option to switch accounts !! Currently, I can only use My Funded FX account. I want to be able to use both accounts by switching between them and taking trades !
Hi there,
The images are not visible. Can you please try again?
I do not understand what the problem is with the specific code sample. Can you please share the complete cBot code so that we can reproduce it and explain to us how we can see this?
If you are looking for somebody to write the code for you, you can assign the job to a professional. If you need help to implement this yourself, please rephrase your post to a specific question that we can answer.
Protobuf class generation generates the ProtoOAGetPositionUnrealizedPnLRes class but it does not generate the code to handle the message. Therefore your code builds but it does not handle the specific message. For example, did you update the MessageFactory.GetMessage() method?
You can't use the bar counter on chart from Automate API, and there is no need for it.
You can easily code one, each bar has an open time and if you know the time frame you can subtract the bar open time from current time, ex:
using System;using System.Linq;using cAlgo.API;using cAlgo.API.Indicators;using cAlgo.API.Internals;using cAlgo.Indicators;namespace cAlgo.Robots{ [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class NewcBot : Robot { private TimeSpan _barTimeLeft; protected override void OnStart() { Timer.Start(1); } protected override void OnTimer() { var previousBarTimePeriod = Bars.LastBar.OpenTime - Bars.Last(1).OpenTime; _barTimeLeft = previousBarTimePeriod - (Server.Time - Bars.LastBar.OpenTime); // Check logs, it should match with chart counter Print("{0:hh':'mm':'ss}", _barTimeLeft); // Close all positions if the time left is less than or equal 10 seconds if (_barTimeLeft.TotalSeconds <= 10) { foreach (var position in Positions) { ClosePosition(position); } } } }}
By any chance, there is one for mobile Android CTrader app?
PanagiotisCharalampous
06 May 2024, 05:41
Hi there,
Can you share a link to the suggestion that has disappeared? Autochartist is only available to brokers that have subscribed to the service.
Best regards,
Panagiotis
@PanagiotisCharalampous