
RV

Info
Username: | diiptrade |
Name: | RV |
Member since: | 17 Nov 2016 |
Country: | Belarus |
Favorite symbols:
About
Signature
Last Algorithm Comments
@MACD PIVOT POINT BOT: 25 Dec 2020, 22:59
I can help you. Telegram: @dillidon
@Adaptive Zig Zag (AZZ): 30 Jul 2020, 11:27
you are so observant)
@Divergence On Balance Volume: 16 Feb 2020, 21:04
no more keys, its free now)
@MACD Divergence Overlay: 15 Nov 2018, 10:11
Yes, its repaint. The green and red dots in Overlay show when the indicator began to draw the divergence itself and they do not redraw, unlike the divergence line itself.
@MACD Divergence: 15 Nov 2018, 10:10
Yes, its repaint. The green and red dots in Overlay show when the indicator began to draw the divergence itself and they do not redraw, unlike the divergence line itself.
@MACD Divergence: 15 Nov 2018, 10:10
Yes, its repaint. The green and red dots in Overlay show when the indicator began to draw the divergence itself and they do not redraw, unlike the divergence line itself.
Last Forum Posts
@How to calculate margin for 1 lot?: 26 Jan 2021, 11:20
double MarginFor(Position Pos)
{
double vol = Pos.VolumeInUnits;
double margin = 0;
foreach (var DynamicLeverage in Symbol.DynamicLeverage)
{
if (vol >= DynamicLeverage.Volume)
{
double used = Math.Floor(vol / DynamicLeverage.Volume);
margin += used / DynamicLeverage.Leverage;
vol -= used;
}
else if (vol > 0)
{
margin += vol / DynamicLeverage.Leverage;
vol = 0;
}
}
return margin * Pos.EntryPrice;
}
@Error: Single-threaded apartment - cannot instantiate ActiveX control: 15 Oct 2019, 15:28
Panagiotis Charalampous said:
Hi D D,
It seems that your product needs a single threaded appartment to run. Therefore you should run it on a separate thread specifying the STA apartment state on the thread. See here.
Best Regards,
Panagiotis
Tried this solution, but nothing)
@Error: Single-threaded apartment - cannot instantiate ActiveX control: 15 Oct 2019, 14:25
Hi,
Use FxPro's cTrader and when try to add subscription service (paddle.com) to the indicator and such an error appears.
after press the button "Buy Now"
code of the indi:
protected override void Initialize() { VerifyLicence(); } public void VerifyLicence() { // Default Product Config in case we're unable to reach our servers on first run var productInfo = new PaddleProductConfig { ProductName = "Divergence (cTrader Indicator)", VendorName = "Divergence Pulse" }; // Initialize the SDK singleton with the config Paddle.Configure(apiKey, vendorId, productId, productInfo); // Set up events for Checkout. // We recommend handling the TransactionComplete and TransactionError events. // TransactionBegin is optional. //Paddle.Instance.TransactionCompleteEvent += Paddle_TransactionCompleteEvent; //Paddle.Instance.TransactionErrorEvent += Paddle_TransactionErrorEvent; //Paddle.Instance.TransactionBeginEvent += Paddle_TransactionBeginEvent; // Initialize the Product you'd like to work with PaddleProduct product = PaddleProduct.CreateProduct(productId); // Ask the Product to get it's latest state and info from the Paddle Platform product.Refresh(success => { // product data was successfully refreshed if (success) { if (!product.Activated) { // Product is not activated, so let's show the Product Access dialog to gatekeep your app Paddle.Instance.ShowProductAccessWindowForProduct(product); } Activated = product.Activated; if (Activated) Print("Divergence: Licence verified"); else Print("Divergence: Failed to verify licence. Please, activate this indicator on www.divergencepulse.com"); } else { // The SDK was unable to get the last info from the Paddle Platform. // We can show the Product Access dialog with the data provided in the PaddleProductConfig object. Paddle.Instance.ShowProductAccessWindowForProduct(product); } }); }
Is there a solution?
@How to use MACD Crossover to calgo: 05 Dec 2018, 16:50
It doesn't work. MACD require DataSeries istead of MarketSeries as you in your example.
@How to prefetch indicator history when Robot starts?: 03 Oct 2018, 20:58
But, in real time it prefetch about 2k bars, in backtesting - about 120 bars... How to prefetch more?
@How to prefetch indicator history when Robot starts?: 03 Oct 2018, 10:51
Hi!
Could you explain how to preload / prefetch indicator data (for example for ZigZag - https://ctrader.com/algos/indicators/show/1597) when cBot starts? Now I should whait for min 2 extremum points to draw Zigzag.
Thanks.
@What's new in cAlgo API 3.0: 11 Mar 2018, 19:21
Good work!
It will be great if you can fix backtesting to show more than 2k deals and to show more logs) Also sometimes when there are a lot of deals in backtesting, it's not showing after backtesting stop.
@Multi-timeframe robots/indicators: 27 Jul 2017, 08:17
MarketData.GetSeries doesnt work properly!!!
For example, If indicator is on Hour1 Timeframe and I want to get DataSeries from Minute1 Timeframe, it only get truncated Minute1 DataSeries.
DataSeries.Close.Count = 6000
M1DataSeries.Close.Count = 9000, but it should be at least 6 000 x 60 = 360 000!
And when you scroll to the beginning DataSeries.Close is updated, but M1DataSeries.Close is the same = 9000.
Please, fix it!