Topics
Replies
dordkash@gmail.com
13 Feb 2018, 07:26
RE:
Panagiotis Charalampous said:
Hi dordkash@gmail.com,
Let me know if this works for you
if (Symbol.Bid - MarketSeries.High.LastValue > Symbol.PipSize) { // Do something }Best Regards,
Panagiotis
Hi dear Panagiotis
When i add this line to my bot
my bot dont take any Buy position
@dordkash@gmail.com
dordkash@gmail.com
30 Jan 2018, 08:19
RE: RE:
dordkash@gmail.com said:
Panagiotis Charalampous said:
Hi,
In this case you should use something like the below
using System.Linq; using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.API.Internals; using System; namespace cAlgo { [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class ingolf : Robot { const string label = ""; private double stopLossPrice; protected override void OnStart() { } protected override void OnBar() { var stopLossPrice = MarketSeries.Low.LastValue - Symbol.PipSize * 5; var pips = Math.Round((Symbol.Ask - stopLossPrice) / Symbol.PipSize); ExecuteMarketOrder(TradeType.Buy, Symbol, 1000, label, pips, 20); } protected override void OnStop() { // Put your deinitialization logic here } } }Let me know if this helps you,
Panagiotis
Hi
Thankful
by using this code,my bot Calculates stoploss = 6 pip for all positions and seys
Error CS0169: The field 'cAlgo.ingolf.stopLossPrice' is never used
Hi
I was change some thing
It is true
Thank you very much
stopLossPrice = MarketSeries.Low.Last(1) - Symbol.PipSize * 5; var pips = Math.Round((Symbol.Ask - stopLossPrice) / Symbol.PipSize);
@dordkash@gmail.com
dordkash@gmail.com
30 Jan 2018, 05:12
RE:
Panagiotis Charalampous said:
Hi,
In this case you should use something like the below
using System.Linq; using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.API.Internals; using System; namespace cAlgo { [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class ingolf : Robot { const string label = ""; private double stopLossPrice; protected override void OnStart() { } protected override void OnBar() { var stopLossPrice = MarketSeries.Low.LastValue - Symbol.PipSize * 5; var pips = Math.Round((Symbol.Ask - stopLossPrice) / Symbol.PipSize); ExecuteMarketOrder(TradeType.Buy, Symbol, 1000, label, pips, 20); } protected override void OnStop() { // Put your deinitialization logic here } } }Let me know if this helps you,
Panagiotis
Hi
Thankful
by using this code,my bot Calculates stoploss = 6 pip for all positions and seys
Error CS0169: The field 'cAlgo.ingolf.stopLossPrice' is never used
@dordkash@gmail.com
dordkash@gmail.com
29 Jan 2018, 14:08
RE:
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 ingolf : Robot { const string label = "INGOLF"; [Parameter(DefaultValue = 1000)] public int VOL { get; set; } private MovingAverage sma50; private double stopLossPrice; protected override void OnStart() { // Put your initialization logic here sma50 = Indicators.MovingAverage(MarketSeries.Close, 50, MovingAverageType.Simple); var stopLossPrice = MarketSeries.Low.LastValue - Symbol.PipSize * 5; } protected override void OnBar() { // Put your core logic here if (...........) { if (..........) if (..........) if (..........) ExecuteMarketOrder(TradeType.Buy, Symbol, VOL, label, stopLossPrice, 20); } } protected override void OnStop() { // Put your deinitialization logic here } } }
Panagiotis Charalampous said:
Hi dordkash@gmail.com,
Can you share your code with us to check what could go wrong?
Best Regards,
Panagiotis
@dordkash@gmail.com
dordkash@gmail.com
28 Jan 2018, 15:25
RE:
Panagiotis Charalampous said:
Hi dordkash@gmail.com,
This is how to get the stop loss price based on your requirements.
var stopLossPrice = MarketSeries.Low.LastValue - Symbol.PipSize * 5;Let me know if this helps.
Best Regards,
Panagiotis
Hi
Thank for your help
But it dosnt work
by using this code,my bot Calculates stoploss=1 pip
@dordkash@gmail.com
dordkash@gmail.com
16 Jan 2018, 13:28
Hi
Yes , this screenshot is from the backtesting chart
But i need so much this option for Ctrader chart
What should I do
Thank you for your help
@dordkash@gmail.com
dordkash@gmail.com
16 Jan 2018, 07:51
RE:
Panagiotis Charalampous said:
Hi dordkash@gmail.com,
Thanks for reporting this issue. Can you please tell us if you took any specific action for this to happen and if you can consistently reproduce it? When it happens again then I advise you to send some troubleshooting information to our Quality Assurance team. You can achieve that by pressing Ctrl+Alt+Shift+T and then pressing the "Submit" button on the form that will pop up. In the message area please paste a link of this discussion as well so that the QA team can associate the report with the issue.
Best Regards,
Panagiotis
Hello
I dont any action for this happening
But suddenly it was true
Thankful
@dordkash@gmail.com
dordkash@gmail.com
20 Oct 2017, 10:25
I install spotware ctrader frome this site
please help
@dordkash@gmail.com
dordkash@gmail.com
04 Oct 2017, 10:27
( Updated at: 21 Dec 2023, 09:20 )
RE:
Hi
this problem has been solved
I enabled this option(picture) to fix the 4K problem,for this reason
Ct not save my change
Panagiotis Charalampous said:
Hi dordkash@gmail.com,
Thanks for the additional info. I tried both broker platforms but I could still not reproduce it. It might be something specific with your computer. Could you please send troubleshooting information to our quality assurance team so that they can investigate further? In order to do so, please press Ctrl+Alt+Shift+T and in the form that pops up, provide a description of the issue and press Submit. The necessary information will be sent to the support team and they will be able to investigate if something is going wrong.
Best Regards,
cTrader Team
@dordkash@gmail.com
dordkash@gmail.com
03 Oct 2017, 10:45
RE:
Panagiotis Charalampous said:
Hi dordkash@gmail.com,
These settings are saved and kept after cTrader closes and reopens. We checked this on Spotware cTrader and works fine. Could you please tell us the broker you are using to check it further?
Best Regards,
Panagiotis
HI
Many thanks for your help
I work with ROBOFOREX and FXPRO but have this problem with both
@dordkash@gmail.com
dordkash@gmail.com
03 Oct 2017, 08:49
( Updated at: 21 Dec 2023, 09:20 )
RE:
Panagiotis Charalampous said:
Hi dordkash@gmail.com,
Which setting would you like to be saved exactly?
Regarding position information, you can go to History tab, select Deal Information and then Position Details. In the Position Info window that will open you can see all relevant information for this position. See below
Let me know if the above information is helpful for you.
Best Regards,
Panagiotis
@dordkash@gmail.com
dordkash@gmail.com
13 Feb 2018, 21:45
RE:
Panagiotis Charalampous said:
@dordkash@gmail.com