Topics
Replies
PanagiotisCharalampous
02 Mar 2018, 12:40
( Updated at: 21 Dec 2023, 09:20 )
Hi MaRCHeW,
Use the + button
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Feb 2018, 18:02
Hi MaRCHeW,
Thanks for pointing this out. cAlgo team is already working on a fix. We appreciate the involvement of the community into making cTrader 3.0 a stable product before rolling out to brokers.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Feb 2018, 14:33
Hi BeardPower,
Indeed cTrader 3.0 Beta was released this morning. Renko charts are coming in v3.01. Range bars are coming later.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Feb 2018, 12:45
Hi itmfar,
See below
protected override void OnTick() { double totalprofit = 0; double gainedPips = 0; int winningTrades = 0; foreach (HistoricalTrade trade in History) { if (trade.Label == "Your Label") { totalprofit += trade.NetProfit; gainedPips += trade.Pips; if (trade.NetProfit > 0) winningTrades++; } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Feb 2018, 11:42
Hi itmfar,
A suggestion is to add a label to the trades placed by the cBot and then trace them by label instead by date.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Feb 2018, 11:11
Hi marwaha1@gmail.com,
Thanks for posting in our forum. See below an example that might be helpful
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)] public int Minute { get; set; } [Parameter(DefaultValue = 12)] public int Hour { get; set; } [Parameter(DefaultValue = 1)] public int Day { get; set; } [Parameter(DefaultValue = 1)] public int Month { get; set; } [Parameter(DefaultValue = 2018)] public int Year { get; set; } private DateTime _closeDateTime; protected override void OnStart() { _closeDateTime = new DateTime(Year, Month, Day, Hour, Minute, 0); } protected override void OnTick() { if (DateTime.Now > _closeDateTime) { foreach (var position in Positions) { ClosePosition(position); } } } protected override void OnStop() { // Put your deinitialization logic here } } }
You can adjust accordingly based on your needs.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Feb 2018, 09:17
Hi abhishek,
Do you mean bid/ask prices? You can get them using Symbol.Bid and Symbol.Ask properties.
Let me know if this is what you were looking for
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Feb 2018, 14:56
Hi jjwes76@gmail.com,
You can find a guide on how to use a custom indicator in a cbot here.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Feb 2018, 14:40
Hi Ochosama,
Thanks for clarifying. In order to use FIX then you will need to develop your own application using FIX API.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Feb 2018, 14:38
Hi nguyenbaocuong,
You can use the following formula
Math.Log10(Symbol.PipSize / Math.Pow(10, -Symbol.Digits))
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Feb 2018, 14:21
Hi abhishek,
See below
- Not Available.
- Not Available. Will be added in next release.
- Not possible currently. Will be covered with point 2.
- Use Account.IsLive
- If you mean the Account's margin then use Account.Margin
Let me know if the above answer your questions,
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Feb 2018, 14:04
Hi Ochosama,
No this is not meant to be used in cTrader. FIX API is way to trade with your cTrader account without having to use cTrader. You can use it to develop your own trading software. If you explain us why do you want to use FIX API in the first place then maybe I can guide you with more relevant information.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Feb 2018, 12:53
Hi Alexander,
There is an image button when you are creating the post, use that. Else send the screenshots to community@spotware.com. Also sending the cBot would be helpful so that we can reproduce the problem.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Feb 2018, 12:40
Hi jjwes76@gmail.com,
Yes this is possible. 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 { [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class NewcBot : Robot { [Parameter(DefaultValue = 0.0)] public double Parameter { get; set; } [Parameter(DefaultValue = 0.0)] public double TargerPrice { get; set; } private SimpleMovingAverage _sma; protected override void OnStart() { _sma = Indicators.SimpleMovingAverage(MarketSeries.High, 5); } protected override void OnTick() { if (_sma.Result.LastValue < TargerPrice) ExecuteMarketOrder(TradeType.Sell, Symbol, 1000); } protected override void OnStop() { // Put your deinitialization logic here } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Feb 2018, 12:25
Hi Ochosama,
Indeed cTrader provides FIX API for each cTrader account.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Feb 2018, 12:21
Hi Alexander,
It is not clear what was the problem. What do you mean that optimization was not working?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Feb 2018, 12:05
Hi again,
We have posted an announcement about this issue and instructions on how to fix it. You can find it here.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Feb 2018, 11:50
Hi Ochosama,
Thanks for posting in our forum. These credentials are not related with cTrader. If you want to use FIX API with cTrader you need to create a cTrader account with your broker. You can read more details about cTrader FIX API here.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Feb 2018, 11:29
Hi everybody,
Our product teams are aware of the issue and are working to resolve this. This seems to happen during the weekends. It should not happen during trading hours. I will keep you informed as soon as we have some updates.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
02 Mar 2018, 12:43
Hi Alexander,
Where do you define ADX?
Best Regards,
Panagiotis
@PanagiotisCharalampous