
Topics
Replies
PanagiotisCharalampous
14 Jan 2019, 11:21
Hi Glen,
Thanks for posting in our forum. At this moment there is no such feature. You can use our UserVoice forum to suggest it.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Jan 2019, 11:12
Hi montblanc,
Limit orders are copied using market orders.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Jan 2019, 11:10
Hi Sasha,
This enum indicates the way SL was triggered. Here are the enum values.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Jan 2019, 10:38
Hi seibert,
It seems there is a typo.The correct command is below
ExecuteMarketOrder(tradeType, Symbol, Volume, "SampleRSI", StopLoss, null);
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Jan 2019, 10:35
Hi Piotr,
See below an example on how to do this.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using cAlgo.API; namespace cAlgo { public class General { public static int GetPosCnt(Robot robot) { int iPosCnt; iPosCnt = robot.Positions.Count; return iPosCnt; } public static double GetLastCloseValue(Robot robot) { return robot.MarketSeries.Close.LastValue; } } }
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 { protected override void OnStart() { Print(General.GetPosCnt(this)); Print(General.GetLastCloseValue(this)); } protected override void OnBar() { } protected override void OnStop() { // Put your deinitialization logic here } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Jan 2019, 10:26
Hi bienve.pf,
It is not possible at the moment. We will add this feature in one of the future updates.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Jan 2019, 14:07
Hi ulises.guerrero,
We are having a look at this. I will come back to you soon.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Jan 2019, 14:06
Hi densotnikovhtc,
You can find more information here. Let me know if you need any further assistance.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Jan 2019, 12:23
Hi densotnikovhtc,
Thank you for posting in our forum and for sharing your suggestions with us. The code editor is basic tool for creating basic cBots. If you are an advanced user, I would suggest to you to use Visual Studio to edit your cBots since it contains all the features you want. It does not make much sense for us to reinvent the wheel and develop features that already exist and they are easily available to anyone.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Jan 2019, 10:24
Hi Ben,
So probably the problem in the non relevant parts :)
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Jan 2019, 17:04
Hi Ben,
I will need to have the robot to comment on this. Can you post it?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Jan 2019, 12:53
Hi Dim13,
Yes all brokers have them except FxPro.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Jan 2019, 09:52
Hi Filip,
We did not receive any troubleshooting inforrmation with a link to this thread. Can you please send it again? We will also need your indicators as well as your settings file. Your settings file is located here C:\Users\<USERNAME>\AppData\Roaming\<BROKERNAME cTrader>\Settings\settings.ctr201. You can send them at community@spotware.com.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Jan 2019, 09:40
Hi Patrick,
There is no such option. Why do you want to hide it?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Jan 2019, 09:39
Hi Piotr,
I am confused regarding what you are trying to do. Why do you need to call GetPosCnt(robot) from within the cBot? Where did you define this function? What do you try to accomplish with the following line of code?
robot = Robot;
In order to help you, I would be good to understand what you are trying to do.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
09 Jan 2019, 12:08
( Updated at: 21 Dec 2023, 09:21 )
Hi terryww2,
It does not seem that FXPIG has DoM for the specific symbol. See below
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
09 Jan 2019, 11:30
Hi terryww2,
Who is your broker?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
09 Jan 2019, 10:43
Hi terryww2,
If you do not get a response using the example application then probably you have entered wrong credentials. Regarding your questions
1. If you set tag 264 to 0 then you should be getting the full order book with message 35=W. Subsequent messages 35=X should only include incremental updates, additions and deletions. If you manage to run the sample application, you will see how this works.
2. Not really. I do not get such a behavior using the example application.
3. I am not sure what do you mean with trades. 35=X messages just inform you about new entries in the market depth as well as deletions of existing entries.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
09 Jan 2019, 10:10
Hi jam584St1,
If you get a resend message from the server, then probably you have a problem in the message sequence numbering (tag 34). Make sure that you implement message sequence numbering properly.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Jan 2019, 11:28
Hi seibertm,
In principle, you can do this with cAlgo. However, you will first need to define what a pullback is for you. You should put down in detail what events consist a pullback e.g. three consecutive bars against the trend followed by two that follow the trend. After you do this, it would be easier to code your cBot. Another option is to contact a Consultant that could help you with setting your requirements and implementing your strategy.
Best Regards,
Panagiotis
@PanagiotisCharalampous