|
|
-
Hello,
 Originally Posted by AnkaSoftware
Another question - How do I find out, if a Stop is attached to a trade, all Trade row parameters viz, Stop, StopOrderID etc return <blank> or nil values?
If there is no associated stop/limit order, the values of the Stop and Limit parameters in the Trades table are "0" and the values of the StopOrderID and LimitOrderID parameters are empty.
a) ExtAsyncOperationFinished
Will send the code sample to reproduce the problem shortly
Looking forward to receiving it.
b) Error "The Entry,Stop or Limit price you are entering is incorrect .. "
I am using Stop Order for an existing position with the Rate specified and TrailUpdatePips set to 1. Any way to suppress the errors/warning and not to let Strategy to stop?
You can use the method host:execute("getTradingProperty", conditionalDistance*,...) to get the minimal allowed distance between the market rate and the rate of the order. Besides, to avoid the error, use wider distance on the volatile market, for example when news comes.
-
Hi Natalya,
Is there any Lua API command to find out that the strategy is running in backtester? I need this because commands like core.host:execute("extendHistory", 1, BidSource, from, 0); are not supported in back tester
-
Hi,
There is no such a command. I would recommend you to add the custom parameter to your strategy, something like "Use extend history" (Yes/No), and set it to No for backtesting.
|