
Topics
Replies
PanagiotisCharalampous
21 Jul 2022, 10:58
Hi ncel01,
As far as know, you can ask your broker for the leverage you want for your account. Also cTrader offers the option to traders to change their leverage but in needs to be enabled by the broker.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
21 Jul 2022, 10:50
Hi parrilla,
Here are the request limits. You need to work around that.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
21 Jul 2022, 10:39
Hi Takis,
I could not reproduce any problem. Please let me know the following
- Explain to us what do you think the indicator is doing. The logic as is does not make any sense to me.
- Provide broker, symbol and timeframe, as well as screenshots demonstrating the problem.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
21 Jul 2022, 10:29
Hi there,
Can you share some screenshots of this so that can have a look at this?
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
21 Jul 2022, 10:27
Hi K100,
To achieve this, you will need to manually execute the Calculate() for all bars.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
21 Jul 2022, 10:24
Hi massimiliano.quarti,
I need the exact log of exchanged messages to understand what you are sending and what you are receiving e.g.
Request
8=FIX.4.4|9=100|35=AN|49=live.theBroker.12345|56=CSERVER|34=99|52=20170117- 10:09:54|50=any_string|57=TRADE|710=876316401|10=103|
Response
8=FIX.4.4|9=163|35=AP|34=98|49=CSERVER|50=TRADE|52=20170117-10:09:54.076|56=live.theBroker.12345|57=any_string|55=1|710=876316401|721=101|727=1|72 8=0|730=1.06671|702=1|704=0|705=30000|10=182|
Also I need some screenshots from cTrader deomnstrating that the orders have not been placed on the requested position.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
21 Jul 2022, 10:17
Hi Trader.1,
You should talk to your broker to check this trade and explain why it is in loss.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
21 Jul 2022, 10:16
Hi Ahmed,
It will be fixed in the next update of your platform but there is no specific ETA.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
20 Jul 2022, 09:32
Hi colymaxa,
You will need to go through tick data to achieve this. You need to find the exact tick with the specific price. You will need to use the GetTicks() method.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
19 Jul 2022, 13:48
( Updated at: 21 Dec 2023, 09:22 )
Hi 4valuetrading,
Just press here
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
19 Jul 2022, 11:39
Hi MongolTrader,
cTrader Desktop 4.1 is using .Net Framework 4.0. 4.2 and onwards is using .Net 6.0 and the latest version of C#.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
19 Jul 2022, 08:21
Hi there,
It is not possible at the moment.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
18 Jul 2022, 15:53
Hi matteoID,
Thanks for reporting this. Our team will investigate it.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
18 Jul 2022, 12:42
Hi marktbs,
This is because you need to convert the value you receive, which is in your account's currency, to the base asset value. 40000 is in GBP, you need to find out how many US 30 contracts you can buy for 40000 GBP.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
18 Jul 2022, 09:09
Hi Ahmed,
The team has identified the problem and it will be fixed in an upcoming update.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
18 Jul 2022, 08:24
Hi there,
What is not working?
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
18 Jul 2022, 08:18
Hi matheuscabralkk,
No this is not possible.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
18 Jul 2022, 08:17
Hi Liquidity,
Here you go
// -------------------------------------------------------------------------------------------------
//
// This code is a cAlgo API sample.
//
// This cBot is intended to be used as a sample and does not guarantee any particular outcome or
// profit of any kind. Use it at your own risk.
//
// The "Sample RSI cBot" will create a buy order when the Relative Strength Index indicator crosses the level 30,
// and a Sell order when the RSI indicator crosses the level 70. The order is closed be either a Stop Loss, defined in
// the "Stop Loss" parameter, or by the opposite RSI crossing signal (buy orders close when RSI crosses the 70 level
// and sell orders are closed when RSI crosses the 30 level).
//
// The cBot can generate only one Buy or Sell order at any given time.
//
// -------------------------------------------------------------------------------------------------
using System;
using System.Linq;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.Indicators;
namespace cAlgo
{
[Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class SampleRSIcBot : Robot
{
[Parameter("Source")]
public DataSeries Source { get; set; }
[Parameter("Periods", DefaultValue = 14)]
public int Periods { get; set; }
[Parameter("Quantity (Lots)", DefaultValue = 1, MinValue = 0.01, Step = 0.01)]
public double Quantity { get; set; }
[Parameter("From", DefaultValue = 7)]
public int From { get; set; }
[Parameter("To", DefaultValue = 10)]
public int To { get; set; }
private RelativeStrengthIndex rsi;
protected override void OnStart()
{
rsi = Indicators.RelativeStrengthIndex(Source, Periods);
}
protected override void OnTick()
{
if (Server.Time.Hour >= From && Server.Time.Hour < To)
{
if (rsi.Result.LastValue < 30)
{
Close(TradeType.Sell);
Open(TradeType.Buy);
}
else if (rsi.Result.LastValue > 70)
{
Close(TradeType.Buy);
Open(TradeType.Sell);
}
}
}
private void Close(TradeType tradeType)
{
foreach (var position in Positions.FindAll("SampleRSI", Symbol, tradeType))
ClosePosition(position);
}
private void Open(TradeType tradeType)
{
var position = Positions.Find("SampleRSI", Symbol, tradeType);
var volumeInUnits = Symbol.QuantityToVolume(Quantity);
if (position == null)
ExecuteMarketOrder(tradeType, Symbol, volumeInUnits, "SampleRSI");
}
}
}
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
15 Jul 2022, 15:55
Hi ncel01,
in such case, currency conversion ratio is a constant (equal to 1).
That's not the case and as I explained it is an issue that needs to be fixed :) What you describe is how it should work, but it doesn't work like that at the moment.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous
PanagiotisCharalampous
21 Jul 2022, 10:59
Hi amirus.stark,
Please share the complete indicator code so that we can check.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous