• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 gomotixa, Today, 12:19 AM
    0 responses
    1 view
    0 likes
    Last Post gomotixa  
    Started by fluffier, Yesterday, 11:49 PM
    0 responses
    2 views
    0 likes
    Last Post fluffier  
    Started by GARZONJ, Yesterday, 09:02 PM
    0 responses
    2 views
    0 likes
    Last Post GARZONJ
    by GARZONJ
     
    Started by bouncetherubble, Yesterday, 08:42 PM
    0 responses
    3 views
    0 likes
    Last Post bouncetherubble  
    Started by connorgrant5, Yesterday, 01:33 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Working...
    X