| Pivot Points- Calculations |
|
|
|
|
Because Pivot Points tend to be pretty important, I wanted make sure everyone has the ability to test with them and make changes to the platform as needed. Here are my calculations for the Pivot Points. These are set up so that you can look at the pivot point over a long term chart and can plan your strategy appropriately. Local dayC = getValue("1 day 10 yr.", Close[1]) Local dayH = getValue("1 day 10 yr.", High[1]) Local dayL = getValue("1 day 10 yr.", Low[1]) Local MyPivot, H1, H2, H3, L1, L2, L3 MyPivot = (dayH + dayL + dayC) / 3 H1 = (2 * MyPivot)- DayL L1 = (2 * MyPivot)- DayH H2 = (MyPivot - L1) + H1 L2 = (MyPivot - (H1 - L1) L3 = dayL-(dayH-dayL) H3 = dayH+(dayH-dayL) //Additional code for pivots. //If you want to use this additional code then remove the “//” in front of the code and add them in front //of the above code. //H3 = (MyPivot - L2) + H2 //L3 = MyPivot - (H2 -L2) //Indicator Ind1 Indicator Ind1 Ind1.Channel=0 Ind1.Color="Blue" Ind1.Thickness= 2 Ind1.Value=H1 Ind1.Draw //Indicator Ind2 Indicator Ind2 Ind2.Channel=0 Ind2.Color="Green" Ind2.Thickness= 2 Ind2.Value=H2 Ind2.Draw //Indicator Ind3 Indicator Ind3 Ind3.Channel=0 Ind3.Color="Red" Ind3.Thickness= 2 Ind3.Value=H3 Ind3.Draw //Indicator Ind4 Indicator Ind4 Ind4.Channel=0 Ind4.Color="Purple" Ind4.Thickness= 2 Ind4.Value=MyPivot Ind4.Draw //Indicator Ind5 Indicator Ind5 Ind5.Channel=0 Ind5.Color="Blue" Ind5.Thickness= 2 Ind5.Value=L1 Ind5.Draw //Indicator Ind6 Indicator Ind6 Ind6.Channel=0 Ind6.Color="Green" Ind6.Thickness= 2 Ind6.Value=L2 Ind6.Draw //Indicator Ind7 Indicator Ind7 Ind7.Channel=0 Ind7.Color="Red" Ind7.Thickness= 2 Ind7.Value=L3 Ind7.Draw ![]()
Powered by !JoomlaComment 3.26
3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."
|








