any experienced programmers out there that would be willing to help me code a bar by bar degap study using sierra charts. I have a daily shifted de gap written by rainman, and would like to do something similar for each bar intra-day. Any help here would be greatly appreciated here is the code for the daily shifted degap: #include "sierrachart.h" SCDLLName("Shifted Study DLL") /***********************************************************************/ SCSFExport scsf_ShiftedStudy(SCStudyGraphRef sc) { // Set configuration variables if (sc.SetDefaults) { // Set the defaults sc.GraphName = "Shifted BaseGraph"; sc.StudyDescription = "The Open value of the next day is set to the Close value of the previous day for all the days, starting with 2nd."; sc.IsCustomChart = 1; sc.GraphRegion = 0; sc.DrawZeros = 0; sc.GraphDrawType = GDT_OHLCBAR; sc.StandardChartHeader = 1; sc.DisplayAsMainPriceGraph = 1; // Subgraphs sc.Subgraph[0].Name = "Open"; sc.Subgraph[0].DrawStyle = DRAWSTYLE_LINE; sc.Subgraph[1].Name = "High"; sc.Subgraph[1].DrawStyle = DRAWSTYLE_LINE; sc.Subgraph[2].Name = "Low"; sc.Subgraph[2].DrawStyle = DRAWSTYLE_LINE; sc.Subgraph[3].Name = "Last"; sc.Subgraph[3].DrawStyle = DRAWSTYLE_LINE; sc.Subgraph[4].Name = "Open Base"; sc.Subgraph[4].DrawStyle = DRAWSTYLE_LINE; sc.Subgraph[5].Name = "High Base"; sc.Subgraph[5].DrawStyle = DRAWSTYLE_LINE; sc.Subgraph[6].Name = "Low Base"; sc.Subgraph[6].DrawStyle = DRAWSTYLE_LINE; sc.Subgraph[7].Name = "Last Base"; sc.Subgraph[7].DrawStyle = DRAWSTYLE_LINE; sc.Subgraph[4].Name = "Volume"; sc.Subgraph[4].DrawStyle = DRAWSTYLE_IGNORE; sc.Subgraph[5].Name = "# of Trades / OI"; sc.Subgraph[5].DrawStyle = DRAWSTYLE_IGNORE; sc.Subgraph[6].Name = "OHLC Avg"; sc.Subgraph[6].DrawStyle = DRAWSTYLE_IGNORE; sc.Subgraph[7].Name = "HLC Avg"; sc.Subgraph[7].DrawStyle = DRAWSTYLE_IGNORE; sc.Subgraph[8].Name = "HL Avg"; sc.Subgraph[8].DrawStyle = DRAWSTYLE_IGNORE; sc.Subgraph[9].Name = "Bid Vol"; sc.Subgraph[9].DrawStyle = DRAWSTYLE_IGNORE; sc.Subgraph[10].Name = "Ask Vol"; sc.Subgraph[10].DrawStyle = DRAWSTYLE_IGNORE; sc.PersistVars->i1 = -1; sc.AutoLoop = 1; return; } SCFloatArrayRef ShiftArray = sc.Subgraph[0].Arrays[0]; if (sc.Index == 0) { sc.ResizeArrays(0); sc.PersistVars->i1 = -1; } int Index = sc.Index; if (sc.OutArraySize - 1 < Index) sc.AddElements(Index - sc.OutArraySize + 1); //this tick is last day, so just copy everything for (int SubGraph = 0; SubGraph <= 10; SubGraph++) sc.Subgraph[SubGraph][Index] = sc.BaseDataIn[SubGraph][Index]; sc.CalculateOHLCAverages(Index); sc.DateTimeOut[Index] = sc.BaseDateTimeIn[Index]; ShiftArray[Index] = 0; if(Index < 1) return; // don't process the same index again if (sc.PersistVars->i1 >= sc.Index) return; // calculate start date for current index SCDateTime StartDateTimeOfCurIndex = sc.BaseDateTimeIn[sc.Index].GetDate(); StartDateTimeOfCurIndex.SetTime(sc.StartTimeOfDay); if(sc.StartTimeOfDay > sc.BaseDateTimeIn[sc.Index].GetTime()) StartDateTimeOfCurIndex -= DAYS; if(sc.BaseDateTimeIn[Index-1] >= StartDateTimeOfCurIndex) return; // save last processed index. We should process it only once sc.PersistVars->i1 = Index; float Shift = sc.Subgraph[SC_OPEN][Index] - sc.BaseDataIn[SC_LAST][Index-1];; for (int i = Index - 1; i >= 0; i--) { float CumulativeShift = Shift + ShiftArray; // shift prices prices sc.Subgraph[SC_OPEN] = sc.BaseDataIn[SC_OPEN] + CumulativeShift; sc.Subgraph[SC_HIGH] = sc.BaseDataIn[SC_HIGH] + CumulativeShift; sc.Subgraph[SC_LOW] = sc.BaseDataIn[SC_LOW] + CumulativeShift; sc.Subgraph[SC_LAST] = sc.BaseDataIn[SC_LAST] + CumulativeShift; //recalculate averages sc.CalculateOHLCAverages(i); // update shift value ShiftArray += Shift; } }
Hi stepan7 I downloaded the !price indicator and I have the user ID. but Im not able to email it to you. I contacted ET and they replied as follows: There is no means to email another user by anyone, not just you. That function was discontinued a while ago. Normally registered users can send Private Messages (PM) to other users, but since you are newly registered that function is not available to you. I would be very happy if can help me out. THANKS!!
Hi All, The Price/Volume Relationship Tools Set Version 2013.06.11.618 for NinjaTrader Version 7.0.1000.x. is available. All Tools are either upgraded or new with focus on fixing bugs. What's new: - The Candlestick's outline and wick are the same color as the body. To get "User Key" PM me your "User ID" and email. If anyone has any questions lets discuss it here for the benefits of all users. Happy Trading, Stepan
no,it is that inferior other platform TN (as someone once has said) imo i think jack has financial ties to Tn...why else would he stay with them especially for the bar by bar degapping..maybe he can just "see" it and does not see a need who knows
I asked Jack and he is using Trade Navigator and said he has no ties financially with them. In fact he said good things about them and that they do have a gap removal for the chart. Now I am curious what makes it inferior before I go and take a look at signing up with them. If you don't mind, what is your experience with TN? Thanks,
TN has a good data feed direct from the exchange and keeps up well in fast markets im told. I use Sierra charts (SC) with IB as my broker. SC is going to a direct data feed from the cme soon, and have had zero problems in fast markets without the direct feed through SC. SC can duplicate all of the hersey studies ie jw, ibgs etc etc and auto program lats etc, but most importantly jacks method is based on BAR BY BAR degapping which TN can not program and SC can. So if you are learning jacks method using bar- bar degapping, you have to ask yourself why isn't jack using something he preaches....odd id say also a lot of mistakes have been caught because of what the "visual" degap (TN) jack way vs the "actual" auto-programmed (SC) degap produces they both have free trials...try them both out and decide for yourself TN 3x the monthly cost of SC hth
Thank you for letting me know. I will send this to Trade Nav and see what they say about the gap removal. Maybe Jack can answer on this too.
Looks like they have a library for Jack already built and free to download directly from them They said some client named Spydertrader and his programmer built it to give to clients so they host it for them directly. And It does have a gap removal setting for daily bars or intra bar that covers the overnight gap. Also, as I require a lot of history, I was happy to see they offer all ticks traded back to 1969 on futures and around 12 years of all tick history on stocks. I don't think I have seen that anywhere.