Topics
Replies
PanagiotisCharalampous
05 Aug 2019, 09:50
Hi Gabriele,
Taking the middle point of a trend line and snaping it on a high/low seems to work fine for me. Could you provide more details about your issue, like a short video demonstrating this behavior?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Aug 2019, 09:46
Hi abc,
To investigate futher we will need you to send us some troubleshooting information when this happens as well as the settings file of your cTrader. To send troubleshooting information, press Ctrl+Alt+Shift+T, paste a link to this discussion into the text box and press submit. You can find your settings file in C:\Users\UserName\AppData\Roaming\Broker cTrader\Settings and send it to us at community@spotware.com.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Aug 2019, 09:41
Hi AlgoGURU,
I am not sure which indicator are you referring to. The built in Fractal Chaos Bands indicator does not have any paramaters.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Aug 2019, 09:38
Hi 66281850,
"But how do you get the version of the api used locally?"
There is no such functionality since you are the one developing the client side therefore if you need it, you will need to develop ot yourself. The two messages mentioned can be used to check the current version on the proxies and detect if there was any update. If you need to keep track what was the current version of your compiled classes, you will need to develop the relevant functionality.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Aug 2019, 09:32
Hi wisegprs,
If you want to get spot prices via Open API, you need to supscribe to stop prices using ProtoOASubscribeSpotsReq. If you want to get trend bar data you can use ProtoOAGetTrendbarsReq. Examples for both messagtes are available in our Open API example project.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Aug 2019, 09:27
Hi useretinv,
If you mean to filter the positions by symbol, here is an example below
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 { [Parameter(DefaultValue = 1000)] public double Amount { get; set; } protected override void OnStart() { // Put your initialization logic here } protected override void OnTick() { if (Positions.Where(j => j.SymbolName == "EURUSD" || j.SymbolName == "EURGBP").Sum(x => x.NetProfit) > Amount) foreach (var position in Positions) position.Close(); } protected override void OnStop() { // Put your deinitialization logic here } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Aug 2019, 14:51
Hi useretinv,
It is an expression for a selector. Read more here
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Aug 2019, 14:47
Hi Piotr,
This is today's bar. The opening time was yesterday at 23:00 UTC+2.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Aug 2019, 12:28
Hi Jeff,
I am 99% this has something to do with your QuickFix configuration. This is why we provide the dictionary. If after examining possible configuration issues you can still not figure out what is the problem, we can leverage to the product team for further investigation. However this is a time consuming process so let's rule out every other possibility.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Aug 2019, 11:54
Hi Jeff,
The github FIX API application was written by me and as you say it works. I was referring to the application you use. Based on the edited post it seems you are using QuickFix. Make sure that your QuickFix engine is using the dictionary posted above to validate messages. You can find more info on configuring QuickFix here.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Aug 2019, 11:23
Hi Jeff,
Unfortunately I cannot advise you about an application I don't know about. Did you try contacting the developer of this third party application?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Aug 2019, 09:48
Hi 66281850,
All market orders in cTrader are IOC. Pending orders are either GTC if no expity date is set ot GTD if an expiry date is set.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Aug 2019, 09:44
Hi leighc1,
I use TinyTake but anyone you feel comfortable with would do.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Aug 2019, 09:42
Hi algodevtrader,
Does your application send heartbeats to keep the connection alive? You might also want to have a look at our FIX API dictionary in case your application uses it.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Aug 2019, 09:38
Hi useretinv,
See an example below
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 { [Parameter(DefaultValue = 1000)] public double Amount { get; set; } protected override void OnStart() { // Put your initialization logic here } protected override void OnTick() { if (Positions.Sum(x => x.NetProfit) > Amount) foreach (var position in Positions) position.Close(); } protected override void OnStop() { // Put your deinitialization logic here } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Aug 2019, 09:31
( Updated at: 21 Dec 2023, 09:21 )
Hi Aiki1000,
Thanks. I tested it and it seems to return the results you expect. It prints the high bar value. See below
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
01 Aug 2019, 16:08
Hi Kafeldom,
We have received your email and investigated the issue. However the solution to this problem is not easy. We are studying possible solutions.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
01 Aug 2019, 16:01
Hi Be Rich,
See below
using System; using System.Collections.Generic; using System.Linq; using cAlgo.API; using System.Text; namespace cAlgo { public class Myclass { public int MyPos(string symbol, string label, Positions positions) { int ret = 0; for (int i = 0; i < positions.Count; i++) { if (positions[i].Label == label && positions[i].SymbolName == symbol) ret++; } return (ret); } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
01 Aug 2019, 15:56
Hi hugo_carpegianny,
Thanks for posting in our forum. You can consider contacting a Consultant or posting a Job.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
05 Aug 2019, 09:50
Hi Gabriele,
Taking the middle point of a trend line and snaping it on a high/low seems to work fine for me. Could you provide more details about your issue, like a short video demonstrating this behavior?
Best Regards,
Panagiotis
@PanagiotisCharalampous