Need help with VBA code making High/Low values

#1
Hello.
I have real-time coming Last values (current price values of any stock) for example in "B2" Excel cell. How to make in "C2" Excel cell High, in "D2" cell Low real-time values for 1 min timeframe.
Result - 4 Excel Columns with real-time data: Symbol, Last, High, Low.
 
#2
How you are getting data to excel sheet? which service you have?
you can use code like this
Function xmax2(d1 As Double, d2 As Double)
x12 = IIf(d1 > d2, d1, d2)
Worksheets("Sheet1").Range("C1") = x12
End Function
 
#3
Rvaghani. Thank you for reply.
I am going to use LaserTrade (genesis). But now I export data from Thinkorswim (demo with 20 min delay) - US stocks.
I am newbie in VBA (started to read books only), Can you make Excel File with working example. I think testing can be done by changing values in "B2" cell.
Fagot.

How you are getting data to excel sheet? which service you have?
you can use code like this
Function xmax2(d1 As Double, d2 As Double)
x12 = IIf(d1 > d2, d1, d2)
Worksheets("Sheet1").Range("C1") = x12
End Function