The pivot lines on 1 minute charts are displayed incorrectly
Announcement
Collapse
No announcement yet.
PIVOT LINES displayed incorrectly on 1 min charts
Collapse
X
-
Hello Robert,
Could you describe in greater detail as to what you are seeing as incorrect? Also which Pivots are you using (Advanced Get Pivots, or the EFS Pivots)?
Jay F.
eSignal Community SupportRegards,
Jay F.
Product Manager
_____________________________________
Have a suggestion to improve our products?
Click Support --> Request a Feature in eSignal 11
-
Hello Robert,
If you are referring to /Pivots/PivotPointAll.efs, please download the new file below.
PivotPointAllnew.efsJason K.
Project Manager
eSignal - an Interactive Data company
EFS KnowledgeBase
JavaScript for EFS Video Series
EFS Beginner Tutorial Series
EFS Glossary
Custom EFS Development Policy
New User Orientation
Comment
-
I have also found that the pivot lines are calculated differently if the chart is brought up before the trading starts. Once trading starts the pivot calculations are done a certain way and they results are not the same as one would expect from manually calculating the pivot.
What I found was that if one closed the layout and reloaded it after the data is pouring in it works fine.
Kiri
Comment
-
Hello Kiri,
Another option is to right-click on your chart , select "Reload" and just reload the specific formula in question. This would have the same affect and you won't have to close and reopen your layout.
Regards,Jason K.
Project Manager
eSignal - an Interactive Data company
EFS KnowledgeBase
JavaScript for EFS Video Series
EFS Beginner Tutorial Series
EFS Glossary
Custom EFS Development Policy
New User Orientation
Comment
-
Here is an efs I picked up from the old Yahoo board that does RTH sessions and also plots the previous day's H/L/C .
I wish I could give credit to whoever wrote it and was kind enough to post it but that information escapes me at this time.
Brian
/************************************************** ********
PriorDayEmacs.efs - reports the prior day's HLC and
the pit traders' pivot, support
and resistance on intraday charts
************************************************** ********/
function preMain() {
setPriceStudy(true);
setStudyTitle("Prior Day");
setCursorLabelName("R2", 0);
setCursorLabelName("R1", 1);
setCursorLabelName("PP", 2);
setCursorLabelName("S1", 3);
setCursorLabelName("S2", 4);
setCursorLabelName("H", 5);
setCursorLabelName("C", 6);
setCursorLabelName("L", 7);
//setComputeOnClose(true);
// R2
setDefaultBarStyle(PS_SOLID, 0);
setDefaultBarFgColor(Color.red, 0);
setDefaultBarThickness(2, 0);
// R1
setDefaultBarStyle(PS_SOLID, 1);
setDefaultBarFgColor(Color.red, 1);
setDefaultBarThickness(1, 1);
// Pivot Point
setDefaultBarStyle(PS_SOLID, 2);
setDefaultBarFgColor(Color.black, 2);
setDefaultBarThickness(1, 2);
// S1
setDefaultBarStyle(PS_SOLID, 3);
setDefaultBarFgColor(Color.blue, 3);
setDefaultBarThickness(1, 3);
// S2
setDefaultBarStyle(PS_SOLID, 4);
setDefaultBarFgColor(Color.blue, 4);
setDefaultBarThickness(2, 4);
// Previous Day's High
setDefaultBarStyle(PS_DOT, 5);
setDefaultBarFgColor(Color.green, 5);
setDefaultBarThickness(2, 5);
// Previous Day's Close
setDefaultBarStyle(PS_DOT, 6);
setDefaultBarFgColor(Color.black, 6);
setDefaultBarThickness(2, 6);
// Previous Day's Low
setDefaultBarStyle(PS_DOT, 7);
setDefaultBarFgColor(Color.red, 7);
setDefaultBarThickness(2, 7);
}
// globals
var vOutputArray = null;
var vLastSeenDay = null;
var vInterval = null;
var vSymbol = null;
function main() {
// initialize upon first loading formula
if(getBarState() == BARSTATE_ALLBARS) {
vInterval = getInterval();
vSymbol = getSymbol().toUpperCase();
// for RTH, eg, to convert, ES Z2 to ES Z2=2
var rootSymbol = vSymbol.substring(0,3);
if (rootSymbol == "ES " || rootSymbol == "NQ ")
if ( vSymbol.indexOf("=2") == -1 )
vSymbol += "=2";
vSymbol += ",D";
return null;
}
// return null if not an intraday chart
if(vInterval == null || vInterval == "D" ||
vInterval == "W" || vInterval == "M" || vInterval == "T")
return null;
// if first bar in new day, get and save yesterday's data
var vThisday = null;
if (vLastSeenDay != (vThisDay = getDay()) ) {
var vTime = getValue("Time");
if(vTime != null) {
var vYDay = getPreviousTradingDay(vTime,vSymbol);
if(vYDay != null) {
var vIndex = getFirstBarIndexOfDay(vYDay,vSymbol);
if(vIndex != null) {
var ydayH = getValueAbsolute("High", vIndex,
vSymbol);
var ydayL = getValueAbsolute("Low", vIndex,
vSymbol);
var ydayC = getValueAbsolute("Close", vIndex,
vSymbol);
var ydayP = (ydayH + ydayL + ydayC) / 3;
var ydayR1 = 2 * ydayP - ydayL;
var ydayS1 = 2 * ydayP - ydayH;
var ydayR2 = (ydayP - ydayS1) + ydayR1;
var ydayS2 = ydayP - (ydayR1 - ydayS1);
vOutputArray = new Array
(ydayR2,ydayR1,ydayP,ydayS1,ydayS2,
ydayH,ydayC,ydayL);
vLastSeenDay = vThisDay;
return vOutputArray;
}
}
return null;
}
}
// else just return the saved data
else
return vOutputArray;
}
Comment
-
Robert
PivotPointsAllNew.efs will work with any symbol on any interval.
In the case of ES #F and ES #F=2 it is as if they were two completely different symbols with different OHLC because ES #F includes all sessions whereas ES #F=2 instead includes only data from 9:30 to 16:15 ET. So, the Pivots are bound to be different.
Hope this helps
Alex
Comment
Comment