Topics
Replies
firemyst
28 May 2023, 06:29
The issue would be with your broker. Perhaps time to consider switching to Pepperstone instead?
@firemyst
firemyst
28 May 2023, 06:28
People always seem to be reporting issues with IC Markets. Perhaps it's time to consider switching to Pepperstone?
@firemyst
firemyst
28 May 2023, 06:26
( Updated at: 21 Dec 2023, 09:23 )
RE:
lics_cs said:
after i make complain to my broker which is ICmarkets
they credit back to my account about wrong swap after 4 days
thanks for they fast support
but i dont know if u got wrong swap but you are not aware and dont complain to IC cust support they will restore automatically about wrong swap
With all the issues people seem to have and report with IC Markets, you might consider switching to Pepperstone.
@firemyst
firemyst
27 May 2023, 18:19
( Updated at: 21 Dec 2023, 09:23 )
Unfortunately, cTrader is very limited with its charts and how you can display them. It would be nice if Spotware spent time on improving these features to bring it into the 21st century like other trading platforms instead of lagging behind the competition.
For the moment, the best you can do is get all the tabs you want, and then click the button to put cTrader into "multichart" mode:
@firemyst
firemyst
27 May 2023, 18:15
In regards to:
2) You can already do all this in Desktop version (exception being able to set a gradient background). Go under Color Options and set the Background and Grid color to what you want
3) you can already do this. Adjust the horizontal scale of the chart.
4) you can already do this in Desktop. Go under Color Options and set the color to what you want
5) You can already do this in Desktop. Go under Color Options and set the color to be transparent
6) Already in Desktop version
@firemyst
firemyst
27 May 2023, 18:00
( Updated at: 21 Dec 2023, 09:23 )
I have no idea what you mean because your English is a bit broken.
All the timeframes you have selected as a preference or preferred are shown along the top of cTrader:
And you can select any of your preferred time frames from the 3 dots which give you a dropdown of all the available time frames:
@firemyst
firemyst
26 May 2023, 03:45
RE:
amanordarkwa said:
I need help...
I want to write a cbot that can make pending order in a range from the open price of timeframe example 100pips from open price of Day timeframe.
This order is basically going to be stop orders (buy stop and sell stop)
Anyone can help with code?
Sample code to help get you started:
if (Bars.ClosePrices.Last[0] >= Bars.OpenPrices.Last[0] + (Symbol.PipSize * 100))
{
//if the current close price is >= the current open price + 100 pips, place your order
}
@firemyst
firemyst
26 May 2023, 03:41
Getting the first balance of the week or month should be relatively straight forward. A "Brute force" way of doing it would be:
1) have a timer job that runs every x-hours (need a timer in case you're watching a market on the weekend that isn't open and no tick data is coming through to trigger either the "Calculate" or "OnTick" meth event handlers)
2) In the timer event, check that Time.DayOfWeek == DayOfWeek.Sunday. If so, grab the account balance and save it for use however you need to (eg, into a file, into a global variable, or whatever)
Another option is to have your code running 24/7, and every so often check if Time.DayOfWeek == DayOfWeek.Sunday. If so, you know it's the first day of the week, and grab the balance.
To do the beginning of the month, it's the same principle, except the comparison changes a bit, to something along the lines of:
if (Time.Day == 1)
{
}
@firemyst
firemyst
25 May 2023, 03:35
Why do people never search for or look at the cTrader code samples Spotware provides?
@firemyst
firemyst
25 May 2023, 03:27
No, you shouldn't have to do that.
If you're running multiple instances of your bot and they all take 20 seconds to complete, what could be happening is cTrader and the CPU are going back/forth between bot threads and not getting to it right away. If you are running multiple instances, instead try running 2 or 3 sessions of cTrader with only a few instances each.
If you're just running the one bot instance, are you able to provide any sample code that can reproduce the behavior? For all we know, you might have code that erases chart objects, and then redraws later, or something else.
@firemyst
firemyst
25 May 2023, 03:23
Yes, you're missing something -- the symbol of the chart you've captured.
If you would actually provide the symbol being watched and confirm your time zone (it's obscured, but looks like it may be UTC + 0?), that may encourage others to look at their charts, investigate, and perhaps give you feedback.
@firemyst
firemyst
24 May 2023, 16:06
RE:
pick said:
I don't believe you can set the default for the indicator, but you can access the users current offset:
protected override void Initialize() { TimeSpan t = this.Application.UserTimeOffset; Print("User time offset = " + t.TotalHours); this.Application.UserTimeOffsetChanged += Application_UserTimeOffsetChanged; } private void Application_UserTimeOffsetChanged(UserTimeOffsetChangedEventArgs obj) { TimeSpan t = this.Application.UserTimeOffset; Print("User time offset changed = " + t.TotalHours); }
From there, it's easy to just combine the utc time with the offset for user time.
Thank you for this. Appreciate your time! I'll give it a try. :-)
@firemyst
firemyst
24 May 2023, 09:14
RE:
PanagiotisChar said:
Hi firemyst,
Unfortunately this info is not available through the API.
Need help? Join us on Telegram
Need premium support? Trade with us
Thank you for the confirmation @PanagiotisChar . That's a bummer, but oh well... at least I didn't overlook something that's stupidly simple :-)
@firemyst
firemyst
24 May 2023, 04:49
RE:
bjarman16 said:
Anyone have any examples of how i can implement when my positions close, it pauses trading and onstarts again the following hour?
You need to be a little more specific.
Suppose a trade closes at 12:15:36pm
By "onstarts the following hour", do you mean:
1) on the actual hour? Next trade can occur starting at 1pm?
2) or at least 1 hour from the time of close. Eg,nothing is done until at least 1:15:36pm?
@firemyst
firemyst
28 May 2023, 06:32
Sure it wasn't your internet connection? Everything working fine now?
@firemyst