It triggers a buy when the SMA crosses, but if the bid is too far away from the cross I do not want it to buy. Lets say the cross happens at $10.00 if the bid is $10.20 then I want it to fill if a pull back $10.10 or not at all
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
help adding a condition if bid is to far from alert
Collapse
X
-
help adding a condition if bid is to far from alert
I use a strategy script from the wizard, I went to add a condition that I can not figure out how to add.
It triggers a buy when the SMA crosses, but if the bid is too far away from the cross I do not want it to buy. Lets say the cross happens at $10.00 if the bid is $10.20 then I want it to fill if a pull back $10.10 or not at allTags: None
-
Hello mitwave00,
There are likely a few ways you can do this. One thing to keep in mind is that bid price is a real time only value, so if you use it in a backtest it will substitute the close price instead.- Use Bid instead of Close as a cross input.
- Use the offset field to add / subtract values so you're checking for crossing + or - the offset specified.
- Add more control to your entry order with a limit or stop order.
Ryan M.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
61 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
148 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
162 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
98 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
286 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment