136: improve the SL and PT indicator value

We need to improve SL and PT as indicators value. Indicators sometimes return incorrect values above or bellow actual price. 




Attachments
No attachments
  • Votes +2
  • Project StrategyQuant X
  • Type Feature
  • Status New
  • Priority High

History

TV
#1

Tomas Vanek

25.03.2022 12:23

Task created

NF
#2

giantj

25.03.2022 13:58

The problem isn't that the indicator returns a value higher than the current price, it is how SQ deals with it.


For example, if there is a long order where the current price is $10, on recalculation of the indicator for the SL, it may return $11. The current behaviour is that the order will not be closed until the price goes over $11 and then falls back to $11.


However, in MultiCharts (at least when using Interactive Brokers as the broker) because the current price is below the SL value, it will close the order at current market price.


A very simple but valid example of when this may be wanted in a strategy is if your stop loss is set to be the closing price from 2 bars ago. Multicharts (with IB) will close this order if the current price is lower than that 2 bar previous closing price.


It maybe this behaviour is not the same for all brokers with MultiCharts, but it is when used with IB - and MultiCharts have confirmed this to your support -  there should at least be a toggle to allow SQ to at least emulate this behaviour.


Multiple examples of this happening on live trades have been provided to Tomas Vanek.

E
#3

Emmanuel

25.03.2022 15:43
Voted for this task.
Dw
#4

Diwi

26.04.2022 16:06
Voted for this task.

Votes: +2

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please