How Stop Loss is sent to the server (Technical Error)
How Stop Loss is sent to the server (Technical Error)
26 May 2016, 08:38
Hi
With regards to the stoploss in the statement:
"ExecuteMarketOrder(TradeType, Symbol, volume, label, stopLossPips, takeProfitPips)"
Does cAlgo send the stoploss as a pip value (e.g 10) or as a price (i.e price_at_request - stoploss_pip_value).
The reason I'm asking this is I had a technical error on Executing a market order where the stop loss was not set even though a request was made. Many similar requests beforehan had been made successfully with the same volume, stop loss and take profit. I suspect the reason that an error occured this time is that the price action was moving so rapidly that the stop loss requested became invalid by the time the request was made?
Journal:
26/05/2016 00:00:03.317 | Request to Sell 1 Oz XAUUSD (SL: 100, TP: 160) is sent to server
26/05/2016 00:00:03.567 | → Request to Sell 1 Oz XAUUSD (SL: 100, TP: 160) is ACCEPTED, order OID74878252 created (25/05/2016 22:00:03.448 UTC+0)
26/05/2016 00:00:03.708 | → Order OID74878252 is FILLED at 1220.83, position PID49948803 (25/05/2016 22:00:03.552 UTC+0)
Log:
26/05/2016 00:00:03.286 | Executing Market Order to Sell 1 XAUUSD (SL: 100, TP: 160)
26/05/2016 00:00:04.724 | → Executing Market Order to Sell 1 XAUUSD (SL: 100, TP: 160) FAILED with error "TechnicalError", Position PID49948803
Thank you
Spotware
26 May 2016, 10:04
Dear Trader,
Could you please send us an email to troubleshooting@spotware.com with the following information?
@Spotware