
Topics
Replies
PanagiotisCharalampous
25 Feb 2020, 10:55
Hi Mr. John,
I am not sure why do you think this is an issue and what values would you expect to see. If the indicator is shifted backwards then there will not be any results in the latest bars.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Feb 2020, 10:36
Hi Ben Floyd,
If you can share with us the exact steps you are following so that we can reproduce the problem, we can have a look at it and let you know if we have any suggestions.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Feb 2020, 08:44
Hi barancansahin88,
I cannot reproduce the problem. The values change on every bar, see below.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
25 Feb 2020, 08:33
Hi Mihai,
The issue has not been fixed yet. You can find the correct links below
https://api.spotware.com/connect/profile?access_token=
https://api.spotware.com/connect/tradingaccounts?access_token=
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Feb 2020, 14:58
Hi genappsforex,
All positions have a TakeProfit and StopLoss property which are in absolute prices. What other closing price do you need?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Feb 2020, 14:42
Hi koktos632,
No this is not supported.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
24 Feb 2020, 11:55
Hi Lisa,
Please send me the cBot code at community@spotware.com.
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
@PanagiotisCharalampous
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
25 Feb 2020, 11:06
Hi Douglas,
Price data is a responsibility of the broker. You need to address this issue with your broker.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous