
Topics
Replies
PanagiotisCharalampous
15 Oct 2018, 12:08
( Updated at: 21 Dec 2023, 09:20 )
Ηι Sonar Trades,
This information is displayed when you hover your mouse on top of the dropdown with the volume values. See below
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
15 Oct 2018, 10:10
Hi noorimotlagh.reza,
Here it is
foreach (var position in Positions.Where(x => x.SymbolCode == Symbol.Code)) { }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Oct 2018, 17:55
Hi noorimotlagh.reza,
Try this
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 CV2 : Robot { protected override void OnTick() { foreach (var position in Positions) { Print("SL {0}", position.StopLoss); Print("The current symbol has pip size of: {0}", MarketData.GetSymbol(position.SymbolCode).PipSize); } } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Oct 2018, 17:49
Hi noorimotlagh.reza,
This method is available only in Spotware Beta 3.3.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Oct 2018, 17:47
Hi Thomas,
Thanks for posting in our forum. At the moment, backtesting does not take into account free margin. This feature will be added in a future release.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Oct 2018, 16:49
Hi Sasha,
Indeed a database is the most proper way to do this. I just thought it would be overengineering for such a case.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Oct 2018, 12:36
Hi yearn2012,
It is a known issue and should be fixed in one of the upcoming updates.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Oct 2018, 12:35
Hi noorimotlagh.reza,
Thanks for posting in our forum. Which version of cTrader do you use? Can you post your cBot code so that we can fix it?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Oct 2018, 09:49
Hi Sasha,
The best approach to this would be to keep this information saved in a file i.e. records with position id, SL, TP. You should be updating this file every time the information changes while the cBot runs and delete it on cBot stopping. On starting the cBot, you should be checking if the file exists. If yes, then it means the cBot was closed unexpectedly, therefore you should read the file and update your variables accordingly.
Let me know if this was helpful.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Oct 2018, 12:43
Hi iuri.govoni,
Can you please try to perform a clean installation?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Oct 2018, 10:58
Hi aboukerker,
That works fine as well. Is it possible to make a short video with your issue and send it to us?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Oct 2018, 10:11
Hi aboukerker,
I could not reproduce any issue. Visual backtesting seems to be working fine. Can you make sure that this is not caused because of the speed setting?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
09 Oct 2018, 17:59
Hi ctid244560,
It is a matter of weeks to start rolling out this version to brokers.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
09 Oct 2018, 15:29
( Updated at: 21 Dec 2023, 09:20 )
Hi Ranjeet,
Go to your profile and hover the mouse over the bottom right conrer of the general info area. A button will appear like the below.
Click on it and change your details.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
09 Oct 2018, 15:11
Hi Ranjeet,
To get the last bar's close price, try the below
MarketSeries.Close.Last(1)
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
09 Oct 2018, 15:00
Hi ranjeet,
That is correct. MarkerSeries can only return data that is known at the moment of the bar change, meaning up to the last closed bar.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
09 Oct 2018, 14:38
Hi Ranjeet,
"What does it return when used under onBar and onTick ?"
MarketSeries returns the OHLC and other values of a timeframe as you would have seen then on the chart. It doesn't matter where it is called, the results are the same.
"From the examples why is 'MarketSeries.Close.Count - 2;' used to get indicator data within onBar"
Which example are you referring to?
At what point does onBar get called. What does this mean during backtesting?
On the change of each bar of the selected timeframe
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
09 Oct 2018, 10:31
Check line 57. You wrote positons instead of Position.
@PanagiotisCharalampous
PanagiotisCharalampous
09 Oct 2018, 10:24
Hi Sasha,
That is correct. I do not get an error using that type. Can you share the full code so that I can reproduce?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
15 Oct 2018, 12:17 ( Updated at: 21 Dec 2023, 09:20 )
Hi Sonar Trades,
It is available in both. See below
Which broker's web app to you use and which browser?
Best Regards,
Panagiotis
@PanagiotisCharalampous