Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Net Change For Forex

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

    Net Change For Forex

    Is there a way to make a net change indicator that works with Forex? I want to see the net change of a Forex pair from session break at 5:00p.m. Est until the 4.59 p.m. Est the following day. The net change column that can be added to market analyzer displays blank for Forex all Forex pairs.
    I attempted t write an indicator that compared close[1] - Close[0] and add that to the Market analyzer but that did not produce my desired result.

    Thanks in advance.

    #2
    Hello,

    Thank you for the question.

    I wanted to check who you are currently connected to? I do see that the column does work with FX pairs but it would depend on the data provider on what data is avaliable for the column to use.

    Regarding the indicator you made, This may not have worked correctly if you were using anything other than a day chart, Close[1] would just be 1 bar ago so this may have been the incorrect close for the equation.

    I looked in the code for the Net Change column, if you do not change any settings the default equation used would look like the following:
    Code:
    Value = (e.Price - e.MarketData.LastClose.Price) / e.MarketData.LastClose.Price;
    Or in an indicator
    Code:
    Math.Round((double)(Close[0] - PriorDayOHLC().PriorClose[0]) / PriorDayOHLC().PriorClose[0] * 100, 2)
    This would give a decimal percentage that appears to match up with the MA so long as the indicator is on CalculateOnBarClose = false like the MA.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Thank You!!!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by judysamnt7, 03-13-2023, 09:11 AM
      4 responses
      57 views
      0 likes
      Last Post DynamicTest  
      Started by ScottWalsh, Today, 06:52 PM
      4 responses
      36 views
      0 likes
      Last Post ScottWalsh  
      Started by olisav57, Today, 07:39 PM
      0 responses
      7 views
      0 likes
      Last Post olisav57  
      Started by trilliantrader, Today, 03:01 PM
      2 responses
      20 views
      0 likes
      Last Post helpwanted  
      Started by cre8able, Today, 07:24 PM
      0 responses
      9 views
      0 likes
      Last Post cre8able  
      Working...
      X