READ-ONLY

The forum is now a read-only archive.

For bug reports & platform questions → [email protected]

Our community lives on Discord and YouTube — come join us!

Min, distance to the market

2 replies

Silemeister

Subscriber, bbp_participant, sq-ultimate, customer, community, 18 replies.

Visit profile

2 months ago #293281

2026.04.17 06:00:00.106 Strategy 4.2.189 – GBJPY LONG 1H (GBPJPY.pa,H1) —VERBOSE— 2026.04.17 07:00 Based on its logic, the strategy tried to place stop/limit order at incorrect price. Min Distance: 0.00100000 Market price: 215.59200000, max. price allowed: 215.59300000, stop/limit order price: 215.51900000 (this is NOT an error)

How tf can I fix this? I changed the min. distance on the Instruments section in the Data Manager, I changed as well the min. distance in the data settings, and I’m just getting this message every time that the strategy is trying to open a trade.

I’ce read that this is not an error, but I can’t see why it’s not an error, since the market price and the strategy prizes are not matching even though I downloaded the data from Axi and I did a custom broker profile.

I don’t mind it’s not an error, I want a solution to this because in other brokers like ICMarkets I don’t have this message, and the procedure is the same I did on Axi.

Can anyone enlighten me? I’ve tried everything I could read but nothing works.

I sell strategies and this is hard to explain to the clients. I just want this to be smooth and profitable as it shows in SQX.

 

0

Jason

Subscriber, bbp_participant, customer, community, sq-ultimate, 26 replies.

Visit profile

2 months ago #293293

Are you getting this from your broker when you try to trade live or from the backtest engine? I don’t trade currencies, I trade futures. With my broker trading futures stop entries are not supported below the market price and limit orders are not supported above the market price. My broker would allow a small amount of deviation on this, 10 ticks or something, otherwise it would reject the order. The solution was to code in an auto conversion to market orders if the limit was above the market or the stop was below. Equity curve didn’t show a difference. Perhaps this would fix your problem?

0

Silemeister

Subscriber, bbp_participant, sq-ultimate, customer, community, 18 replies.

Visit profile

1 month ago #293701

I fixed it by adding Min.Distance inside the instrument section, on the data.

That little and simple thing fixed it, seems if it’s not in the instrument it doesn’t mind that you place on the Data settings.

Now I’m getting this:

2026.05.06 04:59:52.563 S.10.9.14 – I.9.6.5 – EURUSD Long h1 – 260426 (EURUSD.pro,H1) —VERBOSE— 2026.05.06 06:00 Based on its logic, the strategy tried to place stop/limit order at incorrect price. Min Distance: 0.00010000 Market price: 1.17176000, max. price allowed: 1.17186000, stop/limit order price: 1.16955000 (this is NOT an error)

It says it is not an error but if the logic of the bot dictated to open a trade and it didn’t, it seems like an error.

Not meant to be a StrategyQuant error but an error I have to start working on it.

I may add some ranges in the Building Blocks part or give more space to the Min Distance.

It’s frustrating because I have to start again everytime I have this kind of errors, since I can’t change it after it has been coded.

0

Viewing 2 replies - 1 through 2 (of 2 total)