Topics
Replies
PanagiotisCharalampous
13 Jul 2020, 09:37
Hi Eliezer,
What do you mean when you say "real price of an open position"? What is a real price of an open position?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Jul 2020, 09:35
Hi MZen,
Could you please elaborate on how I should read more messages? In the Sample project we have Listener tread, so do you mean I have to watch for more messages as output of Listener?
Yes this is correct. The example project is already programmed to do so.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Jul 2020, 09:31
Hi jerryde,
No this is not possible.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Jul 2020, 09:30
Hi koktos632,
This information is not available via the API. You will need to calculate it yourself.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Jul 2020, 09:29
Hi Samuel,
You can use ModifyStopLossPrice to do so.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Jul 2020, 09:26
Hi koktos632,
No there are not updates on this subject.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Jul 2020, 09:24
Hi GridSurfer,
The PipSize and swaps are determined by the broker so it would be better to talk to them.
Regarding
How can Total Pips and Average Pips be negative while overall Net Profit was positive?
This can happen when the winning positions are of a larger size than the losing ones.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Jul 2020, 09:19
Hi malas7malas,
Seems correct to me. Greenwich Mean Time is the same as UTC time.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Jul 2020, 09:16
Hi niloytom,
Yes it does.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Jul 2020, 08:55
Hi rgasch,
Just get one of the previous bricks and check the difference in pips between the open and close prices e.g.
var size = Math.Abs(Bars.ClosePrices.Last(1) - Bars.OpenPrices.Last(1)) / Symbol.PipSize;
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Jul 2020, 08:43
Hi GridSurfer,
You should see it here
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Jul 2020, 08:33
Hi andyb_trading,
You can use Linked Charts
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
10 Jul 2020, 08:31
Hi koktos632,
The reference point is the market's opening time, which is Sunday 21:00. For that time and on you should see a candle every four hours (21:00, 01:00, 05:00 etc).
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
09 Jul 2020, 16:40
Hi tperalta82,
Interesting... are you backtesting? haven't tried without backtesting though
No, you did not mention anywhere that this happens on backtesting. On backtesting this method is not supported at the moment. If you want to get more bars during backtesting, you need to start testing from an earlier date.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
09 Jul 2020, 15:18
Hi tperalta82,
Works fine for me
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
09 Jul 2020, 14:42
Hi cesafat,
You can do that in cTrader as well but not by using indices. You can consider using
DrawVerticalLine(string name, DateTime time, Color color)
which uses an exact date time instead
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
09 Jul 2020, 10:15
Hi Victor,
it is not so straight forward for the Source part. The current parameter will not work. You will need to declare your own enum
public enum SourceType
{
Open,
High,
Low,
Close
}
use it as a variable type
[Parameter("Source")]
public SourceType Source { get; set; }
and then have a method to return the appropriate source from the bars object
private DataSeries GetSeries(Bars bars, SourceType type)
{
// Getting the series based on the source type
switch (type)
{
case SourceType.Open:
return bars.OpenPrices;
case SourceType.High:
return bars.HighPrices;
case SourceType.Low:
return bars.LowPrices;
case SourceType.Close:
return bars.ClosePrices;
default:
return bars.ClosePrices;
}
}
You can then use it for your indicator as below
var rsi = Indicators.RelativeStrengthIndex(GetSeries(MarketData.GetBars(RSITimeFrame), Source), 14);
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
09 Jul 2020, 08:37
Hi acrigney,
There are a lot of brokers currently offering cTrader that offer stocks as well.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
09 Jul 2020, 08:35
Hi Victor,
Here is an example
var rsi = Indicators.RelativeStrengthIndex(MarketData.GetBars(TimeFrame.Hour).ClosePrices, 14);
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Jul 2020, 09:43
Hi Uri,
There is no limitation in how many accounts you can authorize. To investigate your issue further, we will need more information. Please send us at connect@spotware.com the following
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous