
Topics
Replies
PanagiotisCharalampous
20 Dec 2017, 15:19
Dear Trader,
If you want to place a Buy pending order below the current market price, you need to place a Limit Order. Buy Stop orders cannot be placed below the market price. If you want to implement trailing of the order based on price movement, you can have a look at ModifyPendingOrder function and use it to modify the order accordingly on each tick.
Let me know if the above information helps you.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 Dec 2017, 15:00
Hi tradingu,
I haven't managed to reproduce your problem so maybe I am missing some steps. Is it easy to capture and send me a short video that displays the problem so that I can check again? You can use TinyTake for this. Also it seems that you have changed the colors for the candlesticks. Can you send me a screenshot with the exact colors you use?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 Dec 2017, 12:38
Dear Trader,
Thanks for posting in our forum. You can post a job in the Jobs section or ask help from an experienced Consultant.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 Dec 2017, 10:03
Hi symbiosis,
It is not very clear what you are asking for. Are you looking for a cBot that will close all profitable positions? You can close manually any position opened by mirroring a strategy at any time.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 Dec 2017, 15:43
Hi chrismail0209,
Thanks for posting in our forum. You can post a job in the Jobs section or ask help from an experienced Consultant.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 Dec 2017, 14:54
Hi gunning.ernie,
The information in this post is a bit outdated. OnTick() method is called for all symbols retrieved using MarketData.GetSymbol(). See the following example
using System; using System.Linq; using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.API.Internals; using cAlgo.Indicators; namespace cAlgo { [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class NewcBot : Robot { [Parameter(DefaultValue = 0.0)] public double Parameter { get; set; } protected override void OnStart() { var EURUSD = MarketData.GetSymbol("EURUSD"); var GBPUSD = MarketData.GetSymbol("GBPUSD"); var EURJPY = MarketData.GetSymbol("EURJPY"); var USDJPY = MarketData.GetSymbol("USDJPY"); } protected override void OnTick() { Print("tick"); } protected override void OnStop() { // Put your deinitialization logic here } } }
In this case, OnTick() will be invoked for all four symbols.
Let me know if this helps you.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Dec 2017, 16:24
Hi megha,
There are two ways to get the symbol id in cTrader. These are the following
1. Manual
- Go to cTrader
- in MarketWatch, right click on a Symbol
- In the popup menu, select "Information"
- In the pop up form, you can find FIX Symbol ID in the Symbol Info section
2. Using Connect API
You can use Symbols request from Accounts API and access the symbolid field for each symbol.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Dec 2017, 16:14
Ηι lec0456,
Every broker has his own backtesting data based on their price feed. If you have discovered issues it is better to contact them directly so that they can fix it with the assistance of our support team.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Dec 2017, 16:06
Hi BeardPower,
We are currently designing Open API v2.0. Not all decisions have been made yet, therefore I reserve myself to answer your questions at a later stage. However the community's feedback will be taken into consideration seriously during design and development.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Dec 2017, 15:46
Hi tradingu,
There isn't a straightforward answer to your question, as speed of execution depends on many factors. However, in principle and all other variables being equal, using FIX API should be faster than cAlgo, as the protocol is optimized for speed and exchange of financial information. Regarding the "How much" question, I don't have any hard data available but it would be an interesting experiment to run.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Dec 2017, 15:32
Hi tradingu,
I just tried this with EURUSD in m5 timeframe and cTrader Desktop has far more history than cTrader Web. Would you like to provide me with a specific symbol and some screenshots to try it myself?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
18 Dec 2017, 12:48
Hi ranjeet.naidu@gmail.com,
Can you please send us some screenshots displaying the differences between the mobile and the web version so that we can investigate this?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Nov 2017, 15:27
Hi denn,
I suggest that you contact Pepperstone direclty. They can track the necessary information from their backoffice and tell you why this is happening. If needed, they will contact our support team for a more formal investigation of the issue.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Nov 2017, 15:12
Hi nonioko,
Thanks for posting in our forum. Currently this is not possible in cTrader, except if you develop it as an indicator. However, you can add your suggestion in the Suggestions section in case the product team would like to consider it for future releases of cTrader.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Nov 2017, 14:51
Hi Enrico,
You can use the sumbolId from Connect API. It is the same ID number. It is in our plans to add the Security List Request in FIX API as well.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Nov 2017, 12:42
Hi denn,
Thanks for the information. I have been running the cBot for almost a day now but did not get the error yet. Does this still happen for you?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Nov 2017, 09:36
Dear costavar,
Thanks for posting in our forum. You could also consider posting a job in our Jobs section or contact direclty a professional cAlgo Consultant for further assistance.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
30 Nov 2017, 09:32
Hi andi21,
Thanks for the clarification. Your suggestion will be forwarded to the product team for further consideration.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
29 Nov 2017, 15:21
Hi denn,
Thank you for the cBot. Can you also tell the TriggerPip and the timeframe you use? Knowing your broker would also be useful.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 Dec 2017, 15:41
Hi tradingu,
I managed to reproduce it as well. I will report this to the Quality Assurance team to take a look at this. Thanks for your help.
Best Regards,
Panagiotis
@PanagiotisCharalampous