Home Forums computing moving average

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1850
    hessinemaaoui
    Keymaster

    Hi,

    Hope to seek assistance to two questions.

    Firstly, I have been running the Demo010 file for a while now and trying to figure out how the computation of moving average is being coded. In other words, which is the set of instructions that instruct the IDE to do the averaging? I am at a call MovingAverage.java (linked from Demo010 – SMA2Crossover – MovingAverageCrossover – MovingAverage) Please guide me as to the part of the code that instructs the IDE to compute the MA.

    Secondly, I would like to know how data is stored. How can I extract a portion of the data to do some computation? I am trying to modify the code for example to compute the average for the last two weeks of share price instead of the MA from the beginning of time.

    I have a hunch that I have to manipulate this part of the code.

    Thank you. 

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.