Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

CalculateOnBarClose = false;

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

    CalculateOnBarClose = false;

    So let us say in your strategy the variable

    CalculateOnBarClose = false;

    Is there a way to take a snapshot of the market price when RSI crosses the 50 line? Or when you might have a CrossAbove event?

    To help take some jitters out of the market. I was hoping to find a snapshot of the market when a condition was achieved. Then add a value to that snapshot. And when the market might reach that new value then it would be time to EnterLong or EnterShort.

    Close
    Close[int barsAgo]
    "c" + Tab Key
    Last traded price of a bar


    Could Close return the value I am looking for? Could Close return the last traded value if CalculateOnBarClose = false?

    Thanks for any help.

    #2
    Rhyshaelkan, if CalculateOnBarClose = false, Close[0] stores the last traded price.

    Let us know if you have any other questions.
    AustinNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by AaronKoRn, Today, 09:49 PM
    0 responses
    5 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Today, 08:42 PM
    0 responses
    8 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Today, 07:51 PM
    0 responses
    9 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,975 views
    3 likes
    Last Post jhudas88  
    Started by rbeckmann05, Today, 06:48 PM
    0 responses
    9 views
    0 likes
    Last Post rbeckmann05  
    Working...
    X