@julio
To compute pivot points in VB.NET, you can use the following formula:
Pivot Point (P) = (High + Low + Close) / 3
Support 1 (S1) = (2 * P) - High
Support 2 (S2) = P - (High - Low)
Resistance 1 (R1) = (2 * P) - Low
Resistance 2 (R2) = P + (High - Low)
Here is an example code in VB.NET to calculate pivot points:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
Module Module1 Sub Main() Dim high As Double = 50.25 Dim low As Double = 48.75 Dim closePrice As Double = 49.50 Dim pivotPoint As Double = (high + low + closePrice) / 3 Dim support1 As Double = (2 * pivotPoint) - high Dim support2 As Double = pivotPoint - (high - low) Dim resistance1 As Double = (2 * pivotPoint) - low Dim resistance2 As Double = pivotPoint + (high - low) Console.WriteLine("Pivot Point: " & pivotPoint) Console.WriteLine("Support 1: " & support1) Console.WriteLine("Support 2: " & support2) Console.WriteLine("Resistance 1: " & resistance1) Console.WriteLine("Resistance 2: " & resistance2) End Sub End Module |
You can modify the values of high, low, and closePrice variables according to your data and run the code to compute pivot points in VB.NET.