Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Creating a user instrument from other two instruments NT7

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

    Creating a user instrument from other two instruments NT7

    Hello,
    the goal here is to build some code I suppose on an indicator that allows us to create an instrument X like the result of multiplying two other instruments already set up in a NT 7 chart.

    The idea is to track different instruments on a different price point of view. Let's look at crude oil CL and have it multiplied with instrument 6E so as to have a chart with crude oil based on euros.

    Thought of simply creating 4 dataseries in a new indicator for open, high, low and close values of the resulting instrument X values, updating them at OnBarUpdate when BarsInProgress==1.
    Then for the Plot() function I thought of using similar technique to build GomCD_style_candlesticks at Plot().

    But thought there should be an easier way to just 'tell NT' to plot the result X of this indicator as new user_instrument so it would already be perfectly plottable as candlesticks, point and figure and so on.

    Is there a way to create a new user_Instrument and feed its data from an indicator?

    Or is there a way to treat as an instrument (at least for the plotting capabilities) the 4 dataseries OHLC resulting from an indicator?

    Thank you for your time to imagine this.

    #2
    Welcome to our forums David - have you already taken a look at KDoren's spread indicator works?



    Unfortunately you can't create a custom symbol for the spread, you would need to do all calcs in the MultiSeries indicator and then plot from there.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    571 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    330 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    548 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    549 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X