Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom instruments / Orders with computed prices?

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

    Custom instruments / Orders with computed prices?

    Hi,

    i have a simple sma crossover system (15/180, so very longterm on a daily basis) which i would like to change in the following way:

    all trades should be done with barrier options eg very simple derivatives. for the sake of ease i could compute the price of these as max(0,spot-strike) for longs (shorts vice versa; barrier is assumed to be same as strike) so i dont need additional market data like vol surfaces etc.

    what is the suggested way to accomplish this? is there a possibility to override fill prices so i could enter computed prices manually?

    or is it even possible to create real custom instruments for derivatives like options, discount certificates etc?

    additionally i would like to test how the performance changes if i also add orders in the current direction on a monthly basis. is there a suggested way to do this pyramiding or do i just create additional orders with unique names?

    #2
    Hello,

    NT does not support options, so this is not possible...if I understand you correctly.
    DenNinjaTrader Customer Service

    Comment


      #3
      Can you make the execution price writeable?

      Hi,

      actually my problem boils down to being able to set execution.Price in onExecution. Unfortunately thats not possible.

      I do understand that having execution prices and resulting avgfillprices which are completely different than the triggering orderlimits might look confusing at first but in terms of real trading it makes perfect sense: Your trades are based on market moves in the underlying and you then select derivatives which fit your assumptions best.

      Simply making the execution price writeable might be kind of quick solution, to model it correctly there should be something above Order like TriggeredMarketEvent which can then createorder(underlying,ordertype). Ideally one would be able to create Instruments on the fly which are linked to the Order. But if you dont have many european customers (especially in Germany the derivatives market is huge, iirc we have ard 300k live derivs) then this is probably an overkill so if you could just make the exec price writeable?

      As i currently see it the only alternative for me is to compute prices for a favourable derivative at current market levels, save that as a timeseries and then use the true underlying (index) as an additional time series to generate orders. But this is utterly broken as i also want to optimize my selection of derivatives eg would have to create lots of timeseries and do the optimization manually

      Comment


        #4
        Hello,

        I have to admit, I don't follow why you are doing this. You can call up any deriviative you want, so long as your broker supports it by adding the instrument and the bars using BarsInProgress. This link will help:


        I don't know what you mean, or better, what you are trying accomplish by making the execution price writable. You can designate what order to place on what instrument you want at whatever price you want using the link above and a limit, stop, or stop limit order.

        Hope that helps. Sorry I'm not completely understanding the end result you want.
        DenNinjaTrader Customer Service

        Comment


          #5
          Hi,

          what i want to accomplish is this: My trades are based on market moves in the underlying and i then want to trade an artificial instrument which fits my assumptions best. Due to the sheer amount of available instruments (ard 300k+ in germany alone) yahoo and the like dont capture quotes.

          Re the link you mentioned: In the Initialization method I can create a DataSeries but i cannot Add this to the bars as theres no suitable overload - I can only Add another instrument like Add("AAPL",PeriodType.Day,1) or an indicator but I dont get updates in the indicator bars nor can I call Set on the instrument bars. Unless I miss something Ive reached a blank.

          Slightly frustrating as NT is really a great product apart from this limitation

          Comment


            #6
            dilbert67,

            I am not quite sure if I understood what you meant by adding a DataSeries. Add() is for adding bar objects. DataSeries objects are just created however you see fit. If you want to tie these objects to different bar objects you will need to follow the technique outlined here to do so: http://www.ninjatrader-support2.com/...ead.php?t=3572
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

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