Replies

xjacks
29 Nov 2017, 05:04

I'm so sorry that I found that my account currency is JPY, so the profit displayed on the backtest result is converted to JPY. This can explian my question.

Please close my thread, thank you.


@xjacks

xjacks
27 Nov 2017, 10:39

RE:

Spotware said:

Currently enum parameters are not supported. We plan to support them in the future.

The year 2017 almost end and the enum parameters are still not supported...


@xjacks

xjacks
24 Jun 2016, 06:57

Thank you for your help, it works!

I thought the PlaceStopOrderAsync() method supports stop loss and take profit with decimal because these parameter are all in double? type...Hope these can be improved in the future version.

 


@xjacks

xjacks
22 Jun 2016, 03:10

RE:

Hi tmc, thank you very much, it's a perfect solution !

 

tmc. said:

Hi, this method returns you how many bars back was the highest or lowest bar within a period.

private int HighestBar(DataSeries series, int period)
{
    for (int i = 0; i <= period; i++)
    {
        if (series[series.Count - 1 - i] == series.Maximum(period))
        {
            return i;
        }
    }
    return -1;
}

private int LowestBar(DataSeries series, int period)
{
    for (int i = 0; i <= period; i++)
    {
        if (series[series.Count - 1 - i] == series.Minimum(period))
        {
            return i;
        }
    }
    return -1;
}

 

 


@xjacks