Transmit Order Problem

Joined
Mar 28, 2020
Posts
5
Likes
1
Hello,

I'm working on a strategy with Motivewave SDK. The strategy has take profit and stop points. The problem is that there is a "T" next to the orders and the orders are not considered valid until I click and remove it.

This is a big problem as you will appreciate in an auto algo strategy. By the way, I am doing the tests on the SIM account I created in Motivewave. What do I need to do for these orders to be processed directly?
 
It appears like you might just need to include ctx.submitOrders(Order); with the onSignal(OrderContext ctx) portion of your strategy.

for example:

Limit orders:
Order entryOrder = ctx.createLimitOrder(Enums.OrderAction.BUY, Enums.TIF.GTC, qty, (float) entry);
ctx.submitOrders(entryOrder);

Market Orders:
ctx.buy(qty)
ctx.sell(qty)
These two don't require submitOrders();

Hope that helps!


https://www.motivewave.com/sdk/java....motivewave.platform.sdk.order_mgmt.Order...)
 
Top