Unfortunately I cannot understand the question and I guess many other readers. Could you please rephrase and provide some examples of what you are doing?
Best regards,
Panagiotis
I think what the OP is asking is if he's writing either a bot or a custom indicator that references a common indicator like the EMA, does the code execute faster if he references the native indicator in cTrader, or codes his own EMA within the custom indicator/bot he's writing.
Since nano-seconds can make a difference, he's essentially wonder if anyone's done any bench marks to see which way is faster.
That's how I read it.
In principle no, as long as the implementations are identical. However, since there are always specifics in each case, this needs to be checked on a case by case basis.
When I run the indicator for the first time, nothing is displayed to me. To solve the problem, the ctrader must be closed once and opened again. Or should change the profile to show the button. This problem did not exist until a few months ago. This problem appeared with the new program update
Can you record a video demonstrating these steps?
Unfortunately, the site does not allow me to post videos or links
Hi there,
I do not think there is a problem with links but you can send us the video at community@ctrader.com
I followed your instructions, but my bot is still not working. And I reconstructed it so it looks like this
//#reference: ..\Indicators\John.algo using System; using System.Linq; using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.API.Internals; using cAlgo.Indicators;
namespace cAlgo.Robots { [Robot(TimeZone = TimeZones.UTC)] public class HAK : Robot { [Parameter("Initial Volume", DefaultValue = 1, MinValue = 1)] public int InitialVolume { get; set; }
[Parameter("Initial Stop Loss", DefaultValue = 40)] public int SL { get; set; }
[Parameter("Initial Take Profit", DefaultValue = 40)] public int TP { get; set; }
public bool isAlreadyInTrade; public IndicatorDataSeries haClose { get; set; } public IndicatorDataSeries haOpen { get; set; } public John HAJ; string label = "HAK";
I do not see my instructions being followed anywhere, neither I can help with partial code. You don't seem to use any output IndicatorDataSeries, therefore your Calculate() method is probably not evaluated.
how can I test for the pip size of the last bar closed?
Here you go
var barPipSize = Math.Abs(Bars.ClosePrices.Last(1) - Bars.OpenPrices.Last(1)) / Symbol.PipSize;
Best Regards,
Panagiotis
Thanks very much Panagiotis!
I've noticed at particular times when the London and New York hours overlap that the big banks move the markets, so I am trying to develop a cBot to look for these large aggressive buy and sell candles and “follow the whales” with a long or short trade. So 3 candles on a short time frame more than 20 pips could trigger an automated trade with a take profit and stop loss.
What method can I use to trigger a trade between specific UTC+3 times?
Really appreciate your help.
Thanks Steve
Hi Steve,
There is no specific method, you would need to implement the specific checks yourself by checking Server.Time.
When I run the indicator for the first time, nothing is displayed to me. To solve the problem, the ctrader must be closed once and opened again. Or should change the profile to show the button. This problem did not exist until a few months ago. This problem appeared with the new program update
When I run the indicator for the first time, nothing is displayed to me. To solve the problem, the ctrader must be closed once and opened again. Or should change the profile to show the button. This problem did not exist until a few months ago. This problem appeared with the new program update
Do you know if there is a solution for the Web version? Because I find the Mac Desktop version not as good to use, it lacks features by comparison to the Web version.
Hi there,
Unfortunately no. cTrader Web does not support custom indicators
PanagiotisCharalampous
04 Mar 2024, 08:38
Hi there,
Unfortunately cTrader running on Parallels is not supported. You should either use it on a native Windows machine or use cTrader for Mac.
Best regards,
Panagiotis
@PanagiotisCharalampous