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

Midpoint charts?

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

    Midpoint charts?

    Hello,

    i am using MBTrading for Forex. Is it somehow possible, to produce charts based on the bid/ask midpoint price instead of the bid-price - possibly with a custom bartype? If yes, i would appreciate links to sample code, any other hints welcome too.

    Best regards,
    P.

    #2
    Hello Pippi,

    Thank you for your post.

    Yes, this is possible but not with a custom bar type but rather a custom indicator.

    This will allow you to get the Bid and Ask prices and then you calculate the midpoints for them and then have them plot on the chart via the Plot Method in the code.

    You can look at the source code for the Heiken Ashi indicator in NT7 to see how this is done.
    Tools -> Edit NinjaScript -> Indicator -> Heiken Ashi

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Brevo, Today, 01:45 AM
    0 responses
    2 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    3 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    238 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    384 views
    1 like
    Last Post Gavini
    by Gavini
     
    Started by oviejo, Today, 12:28 AM
    0 responses
    4 views
    0 likes
    Last Post oviejo
    by oviejo
     
    Working...
    X