I've only used IB, but you can use any of the NT compatible data providers. If you use one that also provides futures data there wouldn't be a synch issue. - palinuro
I have improved the BarPaint2 indicator for NinjaTrader -1 tick ibgs has lighter color -lateral formation will be killed by an IBGS that pierces its boundary -lateral formation must end by 2 consicutive closes outside, and as such will will continue when price closes outside followed by close inside I believe it does laterals much more accurate now. HTH -- innersky
Thank you very much innersky for the 'lateral tuneup'. Indeed it is more accurate however as you will see in the attachment, it appears that there is no volume constraint on the 'ability' of a 'piercing' IBGS to terminate a lateral. Do you think you could address this? TIA
Hmmm. Let's see if I remember the lateral protocol. Yes I do. As I said, come up with something better. As an aside, a lateral very frequently reflects the overnight price action, especially on a 60 min timeframe. Memo to innersky. Booleans deal with perceived absolutes, for want of a better term and as yet I have to find a violation of your proclamation voiced elsewhere. Interestingly, lateral movements do violate the condition and perhaps that's one of the reasons why they have been left behind.
While I don't think volume is of any importance here, here is the code you asked. (this code will only end the lateral when an IBGS pierces the lateral on increasing volume) Just add the bold part in the code. // if ibgs that pierces a lateral then it must end this lateral if (FirstTickOfBar && lat && Volume[1] > Volume[2] && ((High[1] > High[CurrentBar - latBar]) && ( High[1]>High[2] ) && ( Close[1]<Open[1] )) || ((Low[1] < Low[CurrentBar - latBar]) && ( Low[1]<Low[2] ) && ( Close[1]>Open[1] ))) { lat = false; }