Hi everyone
I'm new to quantopian and also python so I need some help.
I need to calculate the Force Index within the algorithm.
I'm having trouble defining yesterday's close price separate from the day before yesterday's close price.
I am also having trouble defining the volume of trades done in yesterday's session for an instrument.
The force index calculation is: yesterday's close price (minus) the day before's close price (multiplied by) yesterday's volume of trades.
I would really appreciate your help on this.
Many Thanks
Steven