• 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

Using 3rd part indicator and drawing intrabar values

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

    Using 3rd part indicator and drawing intrabar values

    I am using 3rd party tool (GZT), and I am trying to develop my own Indicator, based on their Indicators. I managed to write my indicator to preform well, but the last bar is shown only after the bar close and intrabar, with CalculateOnBarClose=false.

    I have added the dll to my indicator Reference. I found that since I don't have the .cs file of the 3rd party indicator, if I call the 3rd party directly, like:
    Code:
    double iValue = GZTVelocityMomo(10,26,10,1).MomoHigh[0]; 
    or 
    double iValue = GZTVelocityMomo(BarsArray[1],10,26,10,1).MomoHigh[0];
    I get an error:
    Code:
    Indicator\IBEntrySignal.cs,'NinjaTrader.Indicator.GZTVelocityMomo' is a 'type' but is used like a 'variable',CS0118
    On the other hand, if I using an indirect approach, and call the indicator in 2 steps, such as:
    Code:
    GZTVelocityMomo GZTVM = new NinjaTrader.Indicator.GZTVelocityMomo();
    GZTVM.GZTVelocityMomo(10,26,10,1).MomoHigh[0];
    everything works fine, except the last bar, which is not drawn until it closes.

    I attache a simple test I have done. Since the original indicators I am using are under license, I changed the code to use CCI instead. With the indicator, you can change the InDirectCall value: true is inDirect, false is Direct.

    Any help is welcomed.
    Attached Files
    Last edited by Shai Samuel; 09-10-2015, 05:04 PM.

    #2
    Hello Shai Samuel,

    Thank you for your post and patience.

    Can you provide the full code file (strategy or indicator) used to call the GZTVelocityMomo that generates that error? As I would not expect GZTVelocityMomo(10,26,10,1).MomoHigh[0] or GZTVelocityMomo(BarsArray[1],10,26,10,1).MomoHigh[0] to generate that error when being assigned to a double.
    Patrick H.NinjaTrader Customer Service

    Comment


      #3
      Thank you Patrick for you support. I just sent the code to your support email.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NinjaCustomer, Today, 10:06 AM
      3 responses
      7 views
      0 likes
      Last Post NinjaTrader_JoshG  
      Started by crabman777, Today, 09:52 AM
      4 responses
      16 views
      0 likes
      Last Post crabman777  
      Started by Arkadiy_B, Today, 06:43 AM
      0 responses
      4 views
      0 likes
      Last Post Arkadiy_B  
      Started by leontancfa, Today, 06:09 AM
      1 response
      16 views
      0 likes
      Last Post NinjaTrader_PatrickG  
      Started by soulfx, 12-01-2017, 08:44 AM
      3 responses
      1,023 views
      0 likes
      Last Post NinjaTrader_EricB  
      Working...
      X