Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Calculate On Bar Close

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

    Calculate On Bar Close

    I have tried searching for quick answer but need direction...

    I used Strategy Wizard; and did NOT check "Calculate on Bar Close"
    I wish to ENTER Trades based on BAR data but wish to exit on hitting a price point INTRABAR.

    Running in SIM mode, it APPEARS that entries are happening intrabar which is not what I want (only exits on INTRABAR data).

    What is the correct sequence of commands to make this happen?

    Example: On 60 min BARS, if MA1 crosses above MA2, enter LONG at CLOSE of bar. If Profit target is 50 ticks, EXIT on a market order immediately (INTRABAR).

    Thanks in advance for any help!

    #2
    CRCatNinja, just let the script running then on CalculateOnBarClose = true (end of bar entries) and use the SetProfitTarget and SetStopLoss giving your intrabar exits, those can be defined on the Stops and Targets page in the Stategy Wizard -

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    152 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    89 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    131 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    127 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    107 views
    0 likes
    Last Post CarlTrading  
    Working...
    X