Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

help adding a condition if bid is to far from alert

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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 all

    #2
    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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    52 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    23 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    16 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    23 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    24 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X