Replies

cprcrack
09 Apr 2015, 15:04

You should really improve this color stuff, custom easy to use colors everywhere is a must.


@cprcrack

cprcrack
20 Mar 2015, 13:23

Thanks for the detailed answer, it makes a lot of sense.
@cprcrack

cprcrack
19 Mar 2015, 18:39

And if you don't want to add the CPU configuration option there, please at least increase the default usage from 25% to 75% or 100%. There's really no reason to use only 25% if you can use much more (which I assume you can because you can when optimizing).


@cprcrack

cprcrack
19 Mar 2015, 18:33

Will selected colors be saved in any way? This is very important. If I chose a random color, such as #98DFCB, I need a way to chose the same color again without having to memorize its code. Something like saving the last 10 colors used would be a good idea.


@cprcrack

cprcrack
17 Mar 2015, 13:04

I need tick-based timeframes: t10, t20, t50, t100, t200, t500, t1000, t2000, t5000, t10000


@cprcrack

cprcrack
28 Feb 2015, 21:19

By returning and accepting only double parameters in the API, you are encouraging the API consumer to use doubles itself, which can lead to problems. For example, this is how you could calculate the pips of a just closed position:

Pips: (closePrice - entryPrice) / Symbol.PipSize

Pips in double: (1.18013 - 1.17913) / 0.0001 = 9.999999999998899

Pips in decimal: (1.18013M - 1.17913M) / 0.0001M = 10

However I prefer double if there's a performance reason behind.


@cprcrack

cprcrack
27 Feb 2015, 15:43

Awesome, it worked perfectly. May I suggest you copy and update that xml file automatically in future versions?


@cprcrack

cprcrack
20 Feb 2015, 02:47

This kind of things should really be documented on the API reference. I find myself constantly looking for basic answers like this. Thankfully you provide support via this forum, but your documentation is very poor, if you want my opinion.


@cprcrack

cprcrack
19 Feb 2015, 16:17

RE:

cprcrack said:

even if the Spread of Ask Price has changed.

I meant Spread or Ask Price.


@cprcrack

cprcrack
19 Feb 2015, 16:16

Okay, I think I know what's happening. OnBar() is not fired after onTick() when the Bid Price has not changed since the last tick, even if the Spread of Ask Price has changed. Please correct me if I'm wrong.

 


@cprcrack

cprcrack
19 Feb 2015, 14:45

A simple backtest with tick timeframe and tick data from 1/10/2014 to 10/10/2014 (10 days) brings the following results:

  • Total ticks: 878872
  • Total bars: 586469

However the same backtest with 1m timeframe and 1m data for the same period brings the following result as expected:

  • Total ticks: 11278
  • Total bars: 11278

I need to understand this discrepancy for the development of my bot.


@cprcrack

cprcrack
19 Feb 2015, 13:22

I understand that if the stop loss is invalid it won't be applied, but here I'm talking about a modification of a currently valid stop-loss order. Do you mean that if the stop loss modification is not valid, it will return that error and the previous price of the stop loss will be kept?


@cprcrack

cprcrack
18 Feb 2015, 14:49

It's somehow inconsistent because with ExecuteMarketOrder() you must specify relative pips, but with ModifyPosition() you must specify a price.

Also, one of the side effects of specifying relative pips in ExecuteMarketOrder() is that if the current spread is bigger than the stop loss pips, your stop loss will fire immediately after the ExecuteMarketOrder() call, and you will lose money with that order (- spread - commissions +/- slippage).


@cprcrack

cprcrack
18 Feb 2015, 14:05

OnBar() seems to be fired immediately after the first tick of a new bar (open price), and thus the last bar is useless in general, you will have to use the previous to the last one.


@cprcrack

cprcrack
18 Feb 2015, 11:59

Please allow us to customize the folders. I hate standard folders.
@cprcrack

cprcrack
17 Feb 2015, 17:13

Traffic in and traffic out are not available for me in Windows 7 Professional x64 running as admin. Would be really useful to see the bandwidth my bots are using...


@cprcrack

cprcrack
17 Feb 2015, 09:34

This is a must for scalping. For example you may want to set the grids to a fixed 2 pips, because it's your expected profit per trade. So with this feature you could set the grids to 2 pips of height, and in that way you can visually see how easy or hard you have to make that gap.


@cprcrack

cprcrack
16 Feb 2015, 19:52

RE:

cprcrack said:

How can I set only Take Profit or Stop Loss when executing the market order? Should I provide 0 or -1 as parameter or alike?

Oh I just saw it's a nullable type, so I guess the answer is pass null.


@cprcrack

cprcrack
16 Feb 2015, 19:29

How can I set only Take Profit or Stop Loss when executing the market order? Should I provide 0 or -1 as parameter or alike?


@cprcrack

cprcrack
16 Feb 2015, 11:50

RE:
modarkat said:

If I set Commission per Million = 9

Where did you find broker with such commissions?


It's always a good idea to read the full post before making a question that is already answered in the original post.
@cprcrack