With my rudimentary skills on using thinkscript I was able to come up with this to give me the difference between bid and ask. I have two questions:
1. it appears that I can choose 'Close' or 'Open' for the ask and bid price type. What exactly is the difference? I thought there was only one number for the bid/ask price? I would assume it is the closing difference is what I want. or Would it be Open for Bid and Close for Ask?
2. My second question regarding the label. There are two ways to add the label. Which one is more efficient? meaning which one take less 'resources' or does it even matter/ Am I overthinking this?
def spread = Close(priceType = PriceType.ASK) - Close(priceType = PriceType.BID);
AddLabel(Spread, Concat ("Spread=", Spread), Color.GREEN);
AddLabel (yes, "Spread: " + spread ) ;
Thank you!
1. it appears that I can choose 'Close' or 'Open' for the ask and bid price type. What exactly is the difference? I thought there was only one number for the bid/ask price? I would assume it is the closing difference is what I want. or Would it be Open for Bid and Close for Ask?
2. My second question regarding the label. There are two ways to add the label. Which one is more efficient? meaning which one take less 'resources' or does it even matter/ Am I overthinking this?
def spread = Close(priceType = PriceType.ASK) - Close(priceType = PriceType.BID);
AddLabel(Spread, Concat ("Spread=", Spread), Color.GREEN);
AddLabel (yes, "Spread: " + spread ) ;
Thank you!