Could you pleasesend us some troubleshooting information the next time this happens? Please paste a link to this discussion inside the text box before you submit it.
Thank you for reporting this issue. Could you pleasesend us some troubleshooting information the next time this happens? Please paste a link to this discussion inside the text box before you submit it.
You can use a flag to achieve this e.g. bool CanTrade. Set it to false when a trade is taken and then set it back to true when a new bar is opened.
Best regards,
Panagiotis
Thanks Panagiotis,
I have attempted the code below, but believe I am missing something as it places multiple trades per bar, but trader per bar after bar is opened. I attempted to limit positions with Positions.Count, but that stops it being placed per bar.
protected override void OnTick() { if (IncludeBreakEven == true) GoToBreakEven();
var Ema1 = _ema1.Result.Last(0); var Ema2 = _ema2.Result.Last(0); var Ema1i = _ema1.Result.Last(2); var Ema2i = _ema2.Result.Last(2); var Ema3 = _ema3.Result.LastValue; var rising = _ema1.Result.IsRising(); var falling = _ema2.Result.IsFalling(); var rising2 = _ema2.Result.IsRising(); var falling2 = _ema1.Result.IsFalling();
I got the same issue recently. When I would try to use any objects like Trend Line or Fibonacci Fan and etc. it will get out of mouse control when market is ticking but when a symbol stopped or disabled I can draw properly. Using cTrader 4.8.28 on Errante
Hi there,
Could you pleasesend us some troubleshooting information the next time this happens? Please paste a link to this discussion inside the text box before you submit it.
Best regards,
I made a simple indicator that will cause this issue to occur 100% of the times. The line causing the issue is DrawText or drawing anything every tick, if I am drawing something or drawing on the chart window, the object will lose focus as soon as Calculate is invoked on the indicator.
Code below:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using cAlgo.API;using cAlgo.API.Collections;using cAlgo.API.Indicators;using cAlgo.API.Internals;namespace cAlgo{ [Indicator(AccessRights = AccessRights.None, IsOverlay = false)] public class DrawingBug : Indicator { public override void Calculate(int index) { IndicatorArea.RemoveObject("test"); IndicatorArea.DrawText("test", "BUG!!!", Bars.Last().OpenTime, 0, Color.Red); } }}
Hi razor_00,
Thank you, I have forwarded this to the product team for resolution. In the meanwhile, the issue is caused by the RemoveObject method, which in this case is redundant, you don't need to remove an object in order to redraw it. If you remove that line of code, it should fix the problem.
I am not convinced by your arguments, however I can accept this limitation.
In any case, the app act as an intermediary to send these notifications, which could be disabled/filtered in case an option for this was available.
I really believe that every step made by Spotware to provide traders with the tools to become less dependent on the brokers, would be highly appreciated by the community.
I've been noticing that some settings that are not even brokers' business but a sole traders' choice, still need to be requested to the brokers, which is very annoying (e.g. lowering an account leverage).
Thanks for considering the above.
Hi ncel01,
I am not trying to convince you about anything, I am explaining to you how it works. If you have a different opinion, feel free to post a suggestion and the product team will consider it.
Any chance you can provide us with more clear images? I cannot see the pip scale in these images.
Best regards,
Panagiotis
Any updates on this? Have they discovered the issue? It's getting to be real annoying.
Check out the GER40 today in multichart mode.
You can see the same numbers on the right side of both charts, but notice how one chart is screwed and says “100” pips while the other is correct and says “10” pips based on the values:
Hi firemyst,
Our team is still investigating this issue. Can you please send us the template you are using at 00:29 of the video?
Yes, like any other user I have an account with some broker, but that's not the point to me.
Main point:
Would't make sense to have an option to turn the notifications off in the app itself? After all, these are sent via cTrader app, right?
Hi ncel01,
These notifications are sent by the broker, not by the cTrader app it self. In other words, they are not sent automatically by the platform as a response to an event happening in your account. They are sent by the broker on demand, it is equivalent to the broker emailing you directly. Therefore you need to talk to your broker regarding this matter.
If you need assistance with your cBot, you would need to provide at least the following information
What is the cBot supposed to do?
What does it do instead?
What is the exact problem you are trying to solve?
Best regards,
Panagiotis
Hello Panagiotis and thanks for getting back to me
Ive been working too long on trying to fix the cBot, my brain was fried and I completely missed providing more information. Sorry about that. And pardon the messy look of the code. I used the “code” function, hope you can read it anyways.
- The major issue is that its not performing any Buys or Sells. Im not even sure if its the code or my settings for the demo account. The Log messages reads:
PanagiotisCharalampous
12 Jan 2024, 07:17
Hi there,
The correct property to modify is GroupName
Best regards,
Panagiotis
@PanagiotisCharalampous