
Topics
Replies
PanagiotisCharalampous
16 Feb 2021, 16:43
Hi Shares4us,
Well in this case you need to use LoadMoreHistoryAsync().
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
16 Feb 2021, 16:05
Hi Share4us,
Did you try the example as is or just incorporated in some other code?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
16 Feb 2021, 15:53
Hi intelligence21119,
PlaceStopOrder takes symbol name as an argument. You can place an order to whichever symbol you want,
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
16 Feb 2021, 15:47
Hi Shares4us,
To offer you a better solution I need to understand what are you trying to achieve. Why do you need to load more bars the way you do it now?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
16 Feb 2021, 13:45
Hi deknibar,
I cannot know what did the developer do exactly. Maybe contact him directly.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
16 Feb 2021, 10:43
Hi there,
This happens because you have set deviation to 0.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
16 Feb 2021, 10:16
Hi intelligence21119,
You don't seem to be using the parameter in the method call. See below
PlaceStopOrder(TradeType.Buy, Symbol, Vol, Symbol.Bid + 10 * Symbol.PipSize, "Label", StopLoss, TakeProfit, null, "Comment01", true);
You should be using this instead
PlaceStopOrder(TradeType.Buy, Symbol, Vol, Symbol.Bid + 10 * Symbol.PipSize, "Label", StopLoss, TakeProfit, null, "Comment01", TrailingStop);
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
16 Feb 2021, 10:10
Hi Shares4us,
This happens because every time bars are loaded on the chart, the indicator needs to he reinitialized and recalculated for the new bars arrived. Could you think of a different approach that would move the loading code into the Initialize() method?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
16 Feb 2021, 08:26
Hi r.stipriaan,
Check your log and you will see the exception below
The problem is that you are trying to close a position even if there is no position open.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
16 Feb 2021, 08:21
Hi GridSurfer,
There is no such option in cTrader Copy. If you want a 1:1 copying of trades you can consider using third party tools like Trade Copier or cMAM.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
16 Feb 2021, 08:18
Hi deknibar,
To see the price you can just add a horizontal line and set the IsInteractive property to true.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
16 Feb 2021, 08:15
Hi Share4us,
You need to do the update asynchronously. The below example might help you.
using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;
using System.Threading.Tasks;
namespace cAlgo
{
[Indicator(IsOverlay = false, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class NewIndicator : Indicator
{
protected override void Initialize()
{
Task.Factory.StartNew(() => { LongOperationWithProgress(); });
}
private void LongOperationWithProgress()
{
for (var i = 0; i < 100; i++)
{
UpdateProgress(i.ToString() + "%");
System.Threading.Thread.Sleep(50);
}
UpdateProgress("Finished");
}
private void UpdateProgress(string message)
{
BeginInvokeOnMainThread(() => { Chart.DrawStaticText("progress", message, VerticalAlignment.Top, HorizontalAlignment.Left, Chart.ColorSettings.ForegroundColor); });
}
public override void Calculate(int index)
{
// Calculate value at specified index
// Result[index] = ...
}
}
}
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
15 Feb 2021, 16:19
Hi deknibar,
Where did you get this screenshot from? And which object are you referring too? The price or the "Daily PP"?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
15 Feb 2021, 15:22
Hi TopCat,
The teams are aware of this issue. Unfortunately, it needs time to be addressed properly.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
15 Feb 2021, 15:10
Hi Shares4us,
I am not sure what is the question. Can you clarify?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
15 Feb 2021, 10:50
Hi andywhitehi,
The mobile applications work on any network. We got some reports of issues on some providers and it seems the traffic is blocked by the ISP. You should contact your ISP regarding this issue.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
15 Feb 2021, 10:46
Hi ctid2613585,
I just tested it and I get one. Can you tell me the exact steps you follow?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
15 Feb 2021, 09:54
Hi matt92,
Can you provide steps to reproduce your problem?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
15 Feb 2021, 09:52
Hi cenk.avcigil,
This can be easily programmed into a cBot.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
16 Feb 2021, 16:44
Hi Romain,
No this data cannot be exported at the moment.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous