Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Retrieve Pip Value for current chart

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

    Retrieve Pip Value for current chart

    I'm trying to write an indicator that will track two EMAs, and produce seperation indications at various points. I want to be able to have it self-sufficient enough to where I can plug in any curriencies and it will function correctly based on >8 pips. But the pips change from chart to chart. In some cases it's .10, or .0005 or whatever the case may be.

    Since the pips can change from set to set, how to I find out what the pip value is for the current data series? Is there a property I can get that will tell me that, or do I have to calculate it somehow?

    EDIT: Hm...it appears that a tick = a pip? So I can use the TickSize property. Is this correct?
    Last edited by RockyH; 01-11-2009, 07:16 AM.

    #2
    Yes it is correct Rocky. If you are in doubt, put a Print("TickSize: " + TickSize) statement into your code to be sure.

    Regard
    Ralph

    Comment


      #3
      Indicator Done

      Great thanks for that. I got the indicator working well now. It works for any chart and any tick/pip values it's on. If you're interested you can download it for import here: http://www.g-wizinnovations.com/products/products.aspx

      Feedback is appreciated.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by sidlercom80, 10-28-2023, 08:49 AM
      168 responses
      2,262 views
      0 likes
      Last Post sidlercom80  
      Started by Barry Milan, Yesterday, 10:35 PM
      3 responses
      10 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by WeyldFalcon, 12-10-2020, 06:48 PM
      14 responses
      1,429 views
      0 likes
      Last Post Handclap0241  
      Started by DJ888, 04-16-2024, 06:09 PM
      2 responses
      9 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by jeronymite, 04-12-2024, 04:26 PM
      3 responses
      41 views
      0 likes
      Last Post jeronymite  
      Working...
      X