Announcement

Collapse
No announcement yet.

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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    633 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    364 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    567 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    568 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X