Topics
Replies
PanagiotisCharalampous
24 Feb 2020, 11:30
Hi Lisa,
As far as I can see you are using the Genetic Algorithm as an optimization method. GA introduce randomness between executions therefore execution times are not comparable. Can you reproduce the same behavior using Grid search?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Feb 2020, 11:25
Hi firemyst,
My code demonstrates how to display On Balance Volume using custom moving averages. Isn't there were your problem was? I cannot reproduce your problem.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Feb 2020, 10:07
Hi chefhans2012,
Can you record a short video demonstrating this issue?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Feb 2020, 10:05
Hi David,
See below
var symbol1 = Symbols.GetSymbol("AUDUSD");
var symbol2 = Symbols.GetSymbol("EURUSD");
var spread = symbol1.Ask - symbol2.Bid;
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Feb 2020, 10:02
Hi sascha.dawe,
Can you explain to us what do you think is wrong?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Feb 2020, 10:00
Hi firemyst,
I am not sure what are you trying to do with your source code but I tried the below and seems ok
using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;
namespace cAlgo
{
[Indicator("OBV x MA Crossover", IsOverlay = false, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class OnBalanceVolumexMACrossover : Indicator
{
[Parameter("MA Short Period", Group = "Moving Averages", DefaultValue = 13, MinValue = 1)]
public int MAXOverShortPeriod { get; set; }
[Parameter("MA SP Type", Group = "Moving Averages", DefaultValue = MovingAverageType.Exponential)]
public MovingAverageType MAXOverShortPeriodType { get; set; }
[Parameter("MA Long Period", Group = "Moving Averages", DefaultValue = 48, MinValue = 2)]
public int MAXOverLongPeriod { get; set; }
[Parameter("MA LP Type", Group = "Moving Averages", DefaultValue = MovingAverageType.Exponential)]
public MovingAverageType MAXOverLongPeriodType { get; set; }
[Output("MA OBV Short", LineColor = "Green", PlotType = PlotType.Line, LineStyle = LineStyle.Solid, Thickness = 1)]
public IndicatorDataSeries ResultMaObvShort { get; set; }
[Output("MA OBV Long", LineColor = "Red", PlotType = PlotType.Line, LineStyle = LineStyle.Solid, Thickness = 1)]
public IndicatorDataSeries ResultMaObvLong { get; set; }
[Output("OBV", LineColor = "Cyan", PlotType = PlotType.Line, LineStyle = LineStyle.Solid, Thickness = 2)]
public IndicatorDataSeries ResultObv { get; set; }
private OnBalanceVolume _onBalanceVolume;
private OnBalanceVolume _onBalanceVolumeMaLong;
private OnBalanceVolume _onBalanceVolumeMaShort;
private MovingAverage _maLong;
private MovingAverage _maShort;
private IndicatorDataSeries _longIDS;
private IndicatorDataSeries _shortIDS;
private Bars _marketSeries;
protected override void Initialize()
{
// Initialize and create nested indicators
_marketSeries = MarketData.GetBars(Bars.TimeFrame, SymbolName);
_maLong = Indicators.MovingAverage(_marketSeries.ClosePrices, MAXOverLongPeriod, MAXOverLongPeriodType);
_maShort = Indicators.MovingAverage(_marketSeries.ClosePrices, MAXOverShortPeriod, MAXOverShortPeriodType);
_onBalanceVolumeMaLong = Indicators.OnBalanceVolume(_maLong.Result);
_onBalanceVolumeMaShort = Indicators.OnBalanceVolume(_maShort.Result);
}
public override void Calculate(int index)
{
ResultMaObvLong[index] = _onBalanceVolumeMaLong.Result[index];
ResultMaObvShort[index] = _onBalanceVolumeMaShort.Result[index];
}
}
}
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Feb 2020, 09:27
Hi son_1122,
Do you use the same broker, account and symbol on both computers? Can you share some screenshots depicting the problem?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Feb 2020, 09:25
Hi lattymor,
Can you please explain your problem in more detail?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Feb 2020, 09:23
Hi firemyst,
Here it is.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Feb 2020, 09:18
Hi globalblack,
Trailing stop loss works on the server side so it does not matter if your pc is turned on or off for it to work.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Feb 2020, 09:12
Hi firemyst,
1) Just add more Cloud attributes e.g.
[Cloud("Fast MA", "Slow MA", FirstColor = "Aqua", Opacity = 0.5, SecondColor = "Red")]
[Cloud("Slow MA", "Super Slow MA", FirstColor = "Green", Opacity = 0.5, SecondColor = "Blue")]
[Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
2) There is no such option at the moment.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Feb 2020, 09:03
Hi victor.major,
The results are not saved in a file. As explained above, you can right click inside the History tab and select "Export to Excel".
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Feb 2020, 08:58
Hi elmpie,
Not yet. It will be added in 3.8.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Feb 2020, 08:40
Hi Nazanin,
We have asked for specific steps to reproduce the issue but we did not get any. In order to investigate this problem, we need to be able to reproduce it. Unfortunately the information that has been lost cannot be recovered.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Feb 2020, 08:31
Hi nguyendan81985,
You can use DrawVerticalLine to draw lines on cTrader charts. If you need somebody to develop this for you, you can post a Job or contact a Consultant.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Feb 2020, 08:26
Hi capt.ichimuko,
In order to help you, you need to provide us with specific steps to reproduce this message, preferably on backtesting (cBot parameters, dates etc). However if you need help with developing this cBot, it would be better to post a Job or contact a Consultant.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Feb 2020, 08:19
Hi regis.sabino.
Here it is.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Feb 2020, 14:16
Hi g4ryjones,
You can obtain it through SymbolInfo.MarketHours.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Feb 2020, 12:57
Hi g4ryjones,
You can check Symbol.MarketHours.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Feb 2020, 11:31
Hi abtraderdemo,
This is controlled by your broker, not by Spotware. Please talk to your broker.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous