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

Code Conversion

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

    Code Conversion

    I'm porting one indicator from another platform but NT don't plot the same values, I'm betting the error is on the following line:

    if (shift == Bars-1-Period)

    Any one know what is the Ninja syntax for this Meta Line.


    Regards

    #2
    Hello,


    Count is equivelant to Bars in MQL:



    So you may want to do something like this:

    if(shift == Count -1 - Period)


    I am assuming Period is what they call an external input and shift is just a variable within the code.
    DenNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Juanhuisman, Today, 06:51 AM
    0 responses
    1 view
    0 likes
    Last Post Juanhuisman  
    Started by sidlercom80, 10-28-2023, 08:49 AM
    173 responses
    2,336 views
    0 likes
    Last Post intelligenttrader  
    Started by ArkansasClint, 04-25-2024, 09:28 AM
    1 response
    23 views
    0 likes
    Last Post Leafcutter  
    Started by NM_eFe, Today, 06:14 AM
    0 responses
    5 views
    0 likes
    Last Post NM_eFe
    by NM_eFe
     
    Started by sgordet, Today, 06:04 AM
    0 responses
    4 views
    0 likes
    Last Post sgordet
    by sgordet
     
    Working...
    X