Hi there,

 

I wanna calculate the average price change of the last 24 hours of a symbol.

Example: Btc fell -4,04% of the last 24 hours.

Do I need to calculate with the MIDPRICE method?

I want to have check it every minute so (minutes of trading = 60minutes * 24 hours)

public decimal symbolChange24Hours; public static int MinutesOfTrading = 1440; Resolution res = Resolution.Minute; symbolChange24Hours = algorithm.MIDPRICE(crypto.Symbol, MinutesOfTrading,res);

 

Thanks in advance!

David

 

Author