Topics
06 Jun 2019, 17:34
 1212
 3
16 May 2019, 04:33
 1465
 3
08 May 2019, 00:41
 1203
 3
07 May 2019, 13:26
 1072
 1
26 Apr 2019, 04:45
 1707
 5
24 Apr 2019, 21:34
 1085
 1
Replies

lec0456
17 Oct 2014, 13:40

no, no.  I mean when you check or uncheck the output to be displayed, like %K in the window above:  if there a way to read that variable within the code?

Like

if (!PercentK.Hidden){ ChartObjects.DrawText("STOlabel1", DisplayK, index, PercentK[index], VerticalAlignment.Center, HorizontalAlignment.Right, Colors.Green);)

 


@lec0456

lec0456
25 Jun 2014, 09:18

This is critical, Hurry up with this already.


@lec0456

lec0456
14 Jan 2014, 02:42

not yet


@lec0456

lec0456
09 Jan 2014, 21:35

You say net profit now includes closing commissions. Can u give an example of how net profit calculation has changed and what modifications need to be made?


@lec0456

lec0456
07 Jan 2014, 11:36

Ah, forget it.  

you just use:

 MarketData.GetSymbol(position.SymbolCode).Bid

Found it in a post...


@lec0456

lec0456
31 Dec 2013, 08:33

that is correct,  meant to say that there is NO variable named "positions"  and that that the function ClosePosition should use the variable "position"

 

it was just a type-o, I wanted clarified


@lec0456

lec0456
30 Dec 2013, 22:07

ok, thanks


@lec0456

lec0456
27 Dec 2013, 22:31

Yes, I agree.  Spotware does an excellent job at answering questions in the forum but it would be nice if this wisdom was distilled into the API reference.


@lec0456

lec0456
26 Dec 2013, 22:24

Ok, I realized there was a difference and wanted to verify.  But here is another thing.  Even if they start on different numbers lets say an index for GBPUSD starts at 10 and EURUSD starts at 1.  Lets say you are on a 5 min chart, in an hours time you will not always get 12 periods because sometimes the series skips!!!  I see times where it jumps from 00:35 to 00:45.  This can screw up a lot of calculations.  

could there be a setting so that periods with no activity still get a mark?  I've heard of a such a setting on other platforms.


@lec0456

lec0456
17 Dec 2013, 07:33

Ok, so in this post you use a function:

/forum/whats-new/1463

 private int GetIndexByDate(MarketSeries series, DateTime time)
        {
            for (int i = series.Close.Count - 1; i > 0; i--)
            {
                if (time == series.OpenTime[i])
                    return i;
            }
            return -1;
        }

We don't need to use this function or multitime frames anymore? because its implemented as a method, correct?


@lec0456

lec0456
15 Dec 2013, 10:22

 

if you take a look at this chart:

http://roboforex.ctrader.com/c/lj2nn

I would like to get the day labels on the same y-position independent of scrolling left or right.


@lec0456

lec0456
15 Dec 2013, 09:56

I figured that if I had the high or low of the chart I could use that value.  This is not the same as the high or low of the series


@lec0456

lec0456
13 Dec 2013, 16:39

I've always wanted to do back testing without having to be connected to the server.  That way I don't even have to be connected to the internet.   But I don't have my own data.  Any suggestions?


@lec0456

lec0456
13 Dec 2013, 03:56

isn't the code in the example wrong? It reads:

foreach (var position in Positions)
{
    ClosePosition(positions);
}

There is o variable positions, right? shouldn't it be:

foreach (var position in Positions)
{
    ClosePosition(position);
}

???


@lec0456

lec0456
13 Dec 2013, 00:47

Can you download a csv from the server?


@lec0456

lec0456
08 Dec 2013, 20:03

RE:

AwarenessForex said:

So why isn't spotware allowing the broker to choose its own server time?  Doesn't the broker have a choice in what time is displayed in the platform?

I actually preferred the UTC +2/3 so that all trading times start at 00:00:00 Monday and finish 23:59:59 on Friday of every week.

Of course, you mean Cyprus time or Western European time zone.  so do I.  I think all was fixed.  You can select the time zone you like in the gui Sever +3  and you can  set the time zone for robots and indicators specifically to Western European Time Zone.  

 

The  only gap I am not certain about is that when you are looking at the gui If you select Server +3 there are certain periods of maybe a week when some time zones start daylight savings on different days.  During those gaps the gui will be off because it is displaying a fixed utc+3 instead of a time zone which adjusts on the proper day +2 or +3 for example


@lec0456

lec0456
11 Nov 2013, 22:21

Beautiful!


@lec0456

lec0456
11 Nov 2013, 22:20

sounds great!


@lec0456

lec0456
23 Oct 2013, 08:22

I renamed my robot folder and it still hangs on start up.  this is not an optimization issue, like saying it should be faster.  Its more of a "this program is not working issue".  When I opened the program it created a new robots folder with the samples but even as I write this comment the cAlgo will not start up


@lec0456

lec0456
19 Oct 2013, 20:04

OK, so what I have been able to determine is that cTrader opens fine, its just cAlgo.  I have about 70 indicators and  50 robots


@lec0456