Page 1 of 1
Spread
Posted: Tue Nov 07, 2023 3:03 pm
by dboanca62
New here...just few days but already Q..
So, any idea why my SL (Close + ATR) for Sell doesn't add Spread, but SL (Close - ATR) for Buy does add spread.
Not using real spread, just fixed at 15 for gold
Re: Spread
Posted: Tue Nov 07, 2023 3:34 pm
by NakedMarkets
Hello,
Could you explain us what are the SL you're talking about ?
Is it Rules where you set Close of the Bar and the current ATR value ?
Are these rules used in Entry Rules or used manually ? instant orders or pending orders ?
For information, buy orders are filled when reached the Ask value, not the Bid value. The Bid value is displayed on the chart and builds the bars we can see. The Ask value can be displayed by enabling it in the Chart Properties, just like under Metatrader or TradingView.
So, if you want take in account the spread, it's normal that's it's different between Sell and Buy orders.
The Stoploss of Sell orders are triggered when the Ask is reached (contrary to the entry of the Sell orders).
The Stoploss of Buy orders are triggered when the Bid is reached (contrary to the entry of the Buy orders).
We added a
topic in the FAQ to explain it with more details.
Re: Spread
Posted: Tue Nov 07, 2023 4:26 pm
by dboanca62
This are my SL rules:
![Screenshot 2023-11-07 101003.png](./download/file.php?id=237&sid=3ed4108feb7600f600b791d08e081ecb)
- Screenshot 2023-11-07 101003.png (70.08 KiB) Viewed 9593 times
![Screenshot 2023-11-07 100426.png](./download/file.php?id=236&sid=3ed4108feb7600f600b791d08e081ecb)
- Screenshot 2023-11-07 100426.png (67.26 KiB) Viewed 9593 times
Here for a buy, SL is correct , 60+15, as ATR + spread :
![Screenshot 2023-11-07 102153.png](./download/file.php?id=239&sid=3ed4108feb7600f600b791d08e081ecb)
- Screenshot 2023-11-07 102153.png (70.66 KiB) Viewed 9593 times
Re: Spread
Posted: Tue Nov 07, 2023 4:27 pm
by dboanca62
Here for a sell , SL is just ATR...no spread added:
![Screenshot 2023-11-07 102357.png](./download/file.php?id=240&sid=3ed4108feb7600f600b791d08e081ecb)
- Screenshot 2023-11-07 102357.png (82.08 KiB) Viewed 9593 times
Re: Spread
Posted: Wed Nov 08, 2023 10:02 am
by NakedMarkets
Hello,
Thanks for the additional information.
In fact, there is no spread involved in your Rules to enter the markets here.
The rules are working as intented, for each of them, your SL is set to Close[0] - ATR Value for BUY orders and Close[0] + ATR Value for SELL orders.
We can check it on your first screenshot : Close[0] = 342.029, ATR Value = 0.603, the SL = 342.029 - 0.603 = 341.426, as we can see on your screen.
It's the same on your second screenshot : Close[0] = 342.070, ATR Value = 0.761, the SL = 342.070 + 0.761 = 342.831, as we can guess on your screen.
However, what you notice is that your Instant order is not entering the same manner for BUY positions and SELL Positions.
It's normal, as explained
here , when you enter a BUY, the Ask value is used, when you enter a SELL, the Bid value is used. This is how real-time markets work. You can check this behavior by entering the market without rules, with simple instant orders.
As explained in the link, you can display the Ask line if you want.
But you can tell us what you wanted to do or how you expected to trade in order to help you ?
Re: Spread
Posted: Wed Nov 08, 2023 11:18 am
by dboanca62
Yes, all OK...stupid me I didn't do the math...my confusion was that for buy, SL was 75 away , matching ATR+15 ...for sell , SL was 76, just ATR...I just need to add ATR in my rules
Thank you !
Re: Spread
Posted: Thu Dec 28, 2023 9:34 pm
by dboanca62
About Bid and Ask I read that possible will be added in rules...any updates if this will be done ? this way we can enter a order based on current price, not just open,close,high....etc
Re: Spread
Posted: Sun Dec 31, 2023 9:57 am
by NakedMarkets
Yes, it's on the roadmap
here.
It will be done but it's just a bit harder to implement than expected because we have to execute the rules for every minute/tick in the data.
So we have to implement new options to let the user decide what he wants since the behavior can be different by being executed every minute or every bar (for exit rules for example).