Rejected Orders
Hi,
I'm investigating AlgoStudio and Trading System List but TSL shows all orders as being rejected although on the chart there seems to be positions.
This is with the built in strategies, although the screenshot below shows a strategy I've created to place and order every new bar. As you can see all orders have been rejected although the chart is showing positions.
In case it's of use the order logic is below, this is the same as the build in strategies.
Broker is FXCM demo.
Any ideas?
Thanks
NewOrderRequest request1 = new NewOrderRequest
{
Instrument = Instruments.Current,
Account = Accounts.Current,
Type = OrdersType.Market,
Side = Operation.Buy,
Amount = 1,
Price = Instruments.Current.LastQuote.Ask,
StopLossOffset = 30
};
orderId = Orders.Send(request1);
state = State.EnteredBuy;
Hi support team, any thoughts on the above? Thanks
Hi, tmfdouglas! I had a similar problem. By the way you may have problems with creating SL/TP orders. On an example of your code the price will be equal 30. To avoid this, add "* point" after 30. For example: "StopLossOffset = 30 * Point", "TakeProfitOffset = 30 * Point". Point is "Tick size" of instrument. You can see it in Symbol info.