Trend Magic [NinjaTrader 8]

thetradeengine

New member
Platform
  1. NinjaTrader
QW0w14Y.png


Download: Trend Magic

Here's a copy of the Trend Magic indicator I built for NT8. I've found that it can be useful when combined with the B4 indicator on 3 minute charts (and on other timeframes as well).

The Trend Magic indicator is an ATR-based trend line that uses CCI to control its upward and downward movement. It was once a popular indicator in the Forex trading world. When the CCI is greater than zero the line is only able to move upwards, and conversely, when the CCI is less than or equal to zero the line is only able to move downwards.

By default the line is colored based on the last direction it has moved. Enabling the CCI color mode will color the line based on if the CCI value is above or below zero.
 

thetradeengine

New member
Does it have plots accessible in the Strategy?
Here is an updated version that I'll update the NinjaTrader Ecosystem link with soon: Trend Magic with Signals

It has two output variables that can be used to set alerts on charts or in Strategy Builder.

Both signals are based around the default coloring behavior you see...
"TrendOutput" reads 1 when the line is green, and -1 when the line is red.
"BuySellOutput" reads 1 on the bar when the line changes from red to green and -1 on the bar when the line changes from green to red. At all other times the output is 0.
 

frida

New member
Here is an updated version that I'll update the NinjaTrader Ecosystem link with soon: Trend Magic with Signals

It has two output variables that can be used to set alerts on charts or in Strategy Builder.

Both signals are based around the default coloring behavior you see...
"TrendOutput" reads 1 when the line is green, and -1 when the line is red.
"BuySellOutput" reads 1 on the bar when the line changes from red to green and -1 on the bar when the line changes from green to red. At all other times the output is 0.
Thanks a lot. I'm using CCI for now, will compare with TrendMagic later
 

Dukester021

New member
Here is an updated version that I'll update the NinjaTrader Ecosystem link with soon: Trend Magic with Signals

It has two output variables that can be used to set alerts on charts or in Strategy Builder.

Both signals are based around the default coloring behavior you see...
"TrendOutput" reads 1 when the line is green, and -1 when the line is red.
"BuySellOutput" reads 1 on the bar when the line changes from red to green and -1 on the bar when the line changes from green to red. At all other times the output is 0.
Hi, do you have this in a NT8 strategy you could share? Thanks
 

frida

New member
Here is a simple one combined with B4, using Heiken-Ashi candles:
if ( (TrendMagic1.TrendOutput[0] == 1) && (B4v31.CandleColorOutput[0] == 1) )
EnterLong(1);
else if ( (TrendMagic1.TrendOutput[0] == -1) && (B4v31.CandleColorOutput[0] == -1) )
EnterShort(1);

The BuySell signals are slower than B4 indicator, but the ATR stop line is very useful. Is the line location plot accessible in strategy?
 
Top