• 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 xinepev, Today, 12:33 AM
    0 responses
    3 views
    0 likes
    Last Post xinepev
    by xinepev
     
    Started by sun0781, Yesterday, 05:02 PM
    0 responses
    7 views
    0 likes
    Last Post sun0781
    by sun0781
     
    Started by ronhb107, 09-12-2019, 10:09 AM
    4 responses
    43 views
    0 likes
    Last Post Mr.Trader  
    Started by rwilliam, Yesterday, 03:55 PM
    0 responses
    4 views
    0 likes
    Last Post rwilliam  
    Started by asmmbillah, Yesterday, 03:42 PM
    2 responses
    9 views
    0 likes
    Last Post asmmbillah  
    Working...
    X