Question to support : How to handle failed requests
Question to support : How to handle failed requests
06 May 2013, 15:14
Hello support,
We are developing a robot that should survive high volatility markets.
In backtest the robot functions normally. But when executed in real market conditions it suffers from several problems related to setting the Take profit level of some orders. This issue happens frequently that it becomes a real issue to us.
What causes the issue:
We have a list of 10 or more open orders. At a certain event we set the TP off all open orders to a same value.
In almost 50% of times, not all the Take profit levels get succefully set due to a technical error.
Do you have an idea, what causes this and how can it be solved?
All the best.
Replies
hichem
07 May 2013, 10:40
RE:
Technical errors are due to invalid values. Therefore, most probably the Take Profit you are setting cannot be applied to all open orders. You would have to modify the code to calculate the value for take profit instead of assigning the same value to all.
What are the possible invalid values of the Take profit ? apart from the entry price
@hichem
cAlgo_Fanatic
07 May 2013, 12:01
Take profit has to be above the entry price for a buy order and below the entry price for a sell order.
@cAlgo_Fanatic
hichem
07 May 2013, 12:07
RE:
Take profit has to be above the entry price for a buy order and below the entry price for a sell order.
In this case I should be getting the Technical errors due to another reason than the validity of the condition you mentioned.
Because right after I recieve a technical error when trying to set a TP on a position (with a valid TP values according to your last post), I retry again with the same values and it passes with no technical errors.
Do you have an idea why is that ?
@hichem
cAlgo_Fanatic
07 May 2013, 16:12
We can try to investigate, in the meantime if you like you may post the code (or snippet) or email it to us at engage@spotware.com to help us reproduce the error.
@cAlgo_Fanatic
cAlgo_Fanatic
07 May 2013, 10:32
Technical errors are due to invalid values. Therefore, most probably the Take Profit you are setting cannot be applied to all open orders. You would have to modify the code to calculate the value for take profit instead of assigning the same value to all.
@cAlgo_Fanatic