Laguerre MetaTrader indicator — a completely custom indicator that doesn't rely on the standard MT4/MT5 indicators. It shows the weighted trendline in the separate window of the chart. It can be used for easy entry and exit signals.
Input parameters:
gamma (default = 0.7) — multiplier that is used in the line's levels calculation. The higher it is the smoother is the line.
CountBars (default = 950) — the maximum amount of bars for which to calculate this indicator. Set as high as possible if you don't experience performance problems.
Laguerre MetaTrader indicator — a completely custom indicator that doesn't rely on the standard MT4/MT5 indicators. It shows the weighted trendline in the separate window of the chart. It can be used for easy entry and exit signals.
Input parameters:
gamma (default = 0.7) — multiplier that is used in the line's levels calculation. The higher it is the smoother is the line.
CountBars (default = 950) — the maximum amount of bars for which to calculate this indicator. Set as high as possible if you don't experience performance problems.
Most indicators out there run on bars. Let’s take a 3-period moving average. You compute it on the Close, the previous Close, and the Close before that. Well, what if you used 3 other values in your average, instead of the last three prices? Like, what if you used the current value of the 2-EMA, 5-EMA, and 8-EMA and computed the average of those instead?
Ehlers uses the 4-RSI as an example application of the Laguerre treatment. Instead of the last 4 Closes, he uses 4 Laguerre values. Using only four values makes the indicator turn quickly, but you can adjust the overall speed of the output via the gamma input to the transform. Pretty neat!
In July, I looked around briefly to see what other Laguerre indicators were out there. Surprisingly, I couldn’t find any. I thought that was strange, because all you have to do is plug in the Laguerre values you need and see what happens. I coded up a few, and found the the Ergodic Candle Oscillator looked pretty good Laguerre-ized.
COMPATIBILITY:
NinjaTrader 6.5: YES
NinjaTrader 7.0: YES (tested by sam028)
This is a four element Laguerre Filter as described by John Ehlers in his paper "Time Warp - Without Space Travel".
The Laguerre Filter is a smoothing filter based on Laguerre polynomials. Its first term is an EMA, which is then further smoothened with a damping factor. The damping factor may take any value between 0 and 1. When the damping factor is set to 0, the Laguerre Filter becomes a finite impulse response (FIR) filter. When the damping factor is set to a value close to 1, the filter becomes dramatically smoother, but will have a significant lag.
The indicator that can be downloaded here is a four element Laguerre Filter. I have replaced the damping factor with a synthetic lookback period which allows for adjusting smoothness and lag. A lookback period of 1 corresponds to a simple 4-period triangular moving average.
LaguerreFilter(1) = TMA(4)
When the synthetic lookback period is increased, the filter becomes smoother but has a slower response to price changes.
I use it in one of my autostrategies with success. The basic code comes from a Russian expert.
Combined with some trend direction indicator is a powerful tool to see the supply / demand.
Displays the major transactions that have taken place during
short period of time and at the same price (Limit buyer / seller)
Default settings to adjust :
LargeVolume = 500; (adjust to your instrument)
TradeTime = false; (if true plot date/time of large trade)
* Days of the week
* OrderFlow Cumulative Delta option (Life time licences only)
* Boost if profit using the ATM option
* BreakEven option
* Halt trading if the account drops or reach the account target
* Prior Day HL visulal on chart
- Optimized for the Futures instrument MYM
- Fixed minor bugs
August 30th, 2022 01:09 AM scshourie Is there an updated version available
October 23rd, 2020 01:13 AM bcomas Fixed minor bugs and improved at : https://ninjatraderecosystem.com/user-app-share-download/largetrades-strategy-nt8-upd
ate/
September 3rd, 2020 08:37 PM bcomas Hello Futuretrader2,
It can be fixed if you go to the largetrades indicator (NinjaScript editor) into OnBarUpdate and change the minimum bars
for trade with 100
If (CurrentBar < 100)
return;
August 25th, 2020 04:44 PM Futuretrader2 Thanks for the strategy Bcomas! Using a single chart in NT8 (latest) I got this error log : Indicator 'bcomasLargeTrades
': Error on calling 'OnBarUpdate' method on bar -1: You are accessing an index with a value that is invalid since it is
out-of-range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
May 19th, 2024 08:15 AM Frankytrader Very Useful Indicator, thanks a lot for this, can be used in VERY meaningful ways.
January 2nd, 2024 06:51 AM Falco11
August 29th, 2021 03:48 AM kcrawford This is my second message dealing with this indicator...Now that I've started using Order Flow, I actually can't find an
y of these trades. What are these 'trades' based on? because they are not individual trades that have printed at any pr
ice. Or am I understanding what this is for wrong?
April 11th, 2021 11:39 AM rgo1 Your Large trades indicator is well done. Thank you