Comparing Different Futures Percentage Label.

Alex

Active member
VIP
Code:
def Spread = close(symbol = "/ES") - close(symbol = "/NQ");

def PC = close(period = AggregationPeriod.DAY)[1];

def PctChange = (Spread / PC * 2) / PC;

AddLabel(1, " " + AsPercent(PctChange) + " ", Color.Light_Gray);
 
Last edited:

Similar threads

Top