Getting the MACD for previous day

#1
In EOD chart, getting the MACD values for the previous day. The MACD is calculated based on

r1 = Param( "Fast avg", 12, 2, 200, 1 );
r2 = Param( "Slow avg", 26, 2, 200, 1 );
r3 = Param( "Signal avg", 9, 2, 200, 1 );
macd1= MACD(r1,r2);


macd1 will get the value for the current day. How can we get the MACD value for the previous day?
 
#2
In EOD chart, getting the MACD values for the previous day. The MACD is calculated based on

r1 = Param( "Fast avg", 12, 2, 200, 1 );
r2 = Param( "Slow avg", 26, 2, 200, 1 );
r3 = Param( "Signal avg", 9, 2, 200, 1 );
macd1= MACD(r1,r2);


macd1 will get the value for the current day. How can we get the MACD value for the previous day?
macd_prevday = Ref(macd1, -1);
 

Similar threads