• 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 xsgex, Yesterday, 09:46 PM
      0 responses
      2 views
      0 likes
      Last Post xsgex
      by xsgex
       
      Started by Steve L, Yesterday, 09:36 PM
      0 responses
      1 view
      0 likes
      Last Post Steve L
      by Steve L
       
      Started by krugman25, Yesterday, 09:34 PM
      0 responses
      4 views
      0 likes
      Last Post krugman25  
      Started by indy73, Yesterday, 04:42 PM
      0 responses
      15 views
      0 likes
      Last Post indy73
      by indy73
       
      Started by Italianforex, Yesterday, 06:20 AM
      2 responses
      13 views
      0 likes
      Last Post gplatis
      by gplatis
       
      Working...
      X