Topics
Replies
PanagiotisCharalampous
14 Aug 2020, 11:33
Hi kylem-93,
Probably it is the same reason. Positions are closed to maintain the equity to equity ratio due to deposits/withdrawals by the strategy provider. You can read more about this here.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Aug 2020, 09:41
Hi lavacentex,
Can you please provide us with more information about this issue e.g some screenshots or a video?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
14 Aug 2020, 08:11
Hi firemyst,
You can edit/delete an indicator if you just right click on it inside the chart.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Aug 2020, 16:06
Hi v1to,
Can you please provide more information like steps to reproduce and screenshots?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Aug 2020, 15:37
Hi v1to,
Post it here
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Aug 2020, 15:26
Hi v1to,
You have reported this in the wrong section therefore I will remove this post in a while. Please report this in the correct section of the forum.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Aug 2020, 11:55
Hi Sharpie,
Unfortunately we will need the source code to investigate this.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Aug 2020, 08:20
Hi Anders,
The issue seems to be the fact that you are comparing the LastValue, which is the value of the indicator at the opening of the bar, with the value of closed bars. The indicator value will definitely change until the bar is closed. Try printing and comparing Last(1) instead.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Aug 2020, 07:58
Hi all,
Can you please provide more information about this issue e.g screenshots of the messages you receive?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Aug 2020, 07:54
Hi ergun,
Yes this is correct.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Aug 2020, 14:15
Hi Lukasz,
Did you exclude the possibility that there is a problem with the message e.g. wrong credentials? Did you get a response for the exact same message using the C# application?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Aug 2020, 08:04
Hi ergun,
Leverage only affects the margin required for a position to open. Let's assume you have two accounts, one with balance $1000 and leverage 1:100 and one with balance $1000 and leverage 1:500. If you open a position of one lot (100000 volume) on both of them, on the 1:100 account you will use all your margin ($1000) while on the 1:500 account, you will only use $200. This means that on the 1:500 account you can open another four positions worth one lot. This is the actual use of leverage, to open positions of higher volumes. However positions with the same volume will have the same results on both.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Aug 2020, 07:54
Hi Anders,
It is not possible to access an indicator on the chart through code. If you want to use indicators in your cBots, you need to declare them in the code. You can check the sample cBot shipped with cTrader and you will find a lot of examples on how to do this.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
12 Aug 2020, 07:49
Hi samuel.jus.cornelio,
Your code is wrong. Try the below
_Ema1.Result.HasCrossedBelow(_Ema2.Result, 0)
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Aug 2020, 16:44
Hi Vamsi,
It seems that you are drawing arrows when the signal becomes bullish or bearish but you are not removing them when the signal becomes false
if (IsBullish)
{
SignalIndex = index;
DisplayArrows(index, "Buy");
lastsignaltime = Bars.OpenTimes.Last(SignalIndex);
signal = "Buy";
SignalsData[index] = 1;
SignalsIndexData[index] = index;
}
if (IsBearish)
{
SignalIndex = index;
DisplayArrows(index, "Sell");
lastsignaltime = Bars.OpenTimes.Last(SignalIndex);
signal = "Sell";
SignalsData[index] = 2;
SignalsIndexData[index] = index;
}
Try adding an else condition to remove the arrows and reset any relevant information.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Aug 2020, 16:35
Hi samuel.jus.cornelio,
There are examples in the links above.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Aug 2020, 16:30
Hi Sam,
It is not possible to know the entry price before the order is executed. To modify the stop loss price use ModifyStopLossPrice
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Aug 2020, 15:41
Hi Sam,
Yes you are right, I misread the code. If the difference is slight then this is expected since you are calculating the stop loss distance based on the current price and not based on the position's entry price which might deviate due to slippage. If you need to place the stop loss on an exact price then you need to modify the position after it has been opened.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
11 Aug 2020, 15:15
Hi Vamsi,
Can you share the source code of this indicator?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
17 Aug 2020, 07:56
Hi FreedomFx,
Automatic position opening/closing happens every time deposits/withdrawals take place on the strategy providing account. I have provided links above that describe this situation. At the moment we are developing a feature that will allow the strategy provider to receive the fees into a separate account so that this situation is avoided. It will be delivered in one of the upcoming releases of cTrader Copy.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous