Strategy with level horizontal SR indicator
Originally from ticket #2645.
Hello,
I tried to implement a strategy with the NT strategy wizard (simple cross over). But there is not plot function for specific lines visible. How is it possible to generate signals with this indicator?
Thanks,
Anton
You have the following properties/lists
IFLevelsHorizontalSR iFLevelsHorizontalSR = IFLevelsHorizontalSR(Input, lookBack, oHLCLevelFlags, priceComparisonMode, sRMode);
//Exposes the following levels ( generic list of type OHCLevel)
//META DATA
public class OHLCLevel
{
public int OHLCLevelFlag; //Level OHLC Bitwise Flags 1 to 8 Integers 0 to 15 - 0:Off, 1 Open, 2 High, 4 Low, 8 Close
public double Price ;
public int BarIndex;
public DateTime BarTime;
public int SLevel ; //0 notknown, -1 support, +1 resistance
public int PrimaryBarIndex0;
}
//iFLevelsHorizontalSR.OHLCLevels
//iFLevelsHorizontalSR.Resistance
//iFLevelsHorizontalSR.Support
for(int i=0;i<Resistance.Count;i++)]
{
OHLCLevel level = iFLevelsHorizontalSR.OHLCLevels[i];
Print(level.OHLCLevelFlag ); ////Level OHLC Bitwise Flags 1 to 8 Integers 0 to 15 - 0:Off, 1 Open, 2 High, 4 Low, 8 Close
Print(level.Price);
Print(level.BarIndex );
Print(level.BarTime);
Print(level.SLevel); //-1 is support, 1 is resistance
}
// note if collection altered during iteration - will cause errors with this - so yuo can copy the contents using ToArray()
foreach( OHLCLevel level in iFLevelsHorizontalSR.OHLCLevels.ToArray())
{
Print(level.Price);
}
For more information and coding you will need to contact the development team for assistance with coding the strategy
http://www.micro-trends.co.uk/ninjatrader-development/
MicroTrends Support
support@microtrends.co
http://www.microtrends.co/support/
Tip! You can visit the help desk forum to see previous answered frequently asked questions:
http://microtrends.zendesk.com/forums
You have the following properties/lists
IFLevelsHorizontalSR iFLevelsHorizontalSR = IFLevelsHorizontalSR(Input, lookBack, oHLCLevelFlags, priceComparisonMode, sRMode);
//Exposes the following levels ( generic list of type OHCLevel)
//META DATA
public class OHLCLevel
{
public int OHLCLevelFlag; //Level OHLC Bitwise Flags 1 to 8 Integers 0 to 15 - 0:Off, 1 Open, 2 High, 4 Low, 8 Close
public double Price ;
public int BarIndex;
public DateTime BarTime;
public int SLevel ; //0 notknown, -1 support, +1 resistance
public int PrimaryBarIndex0;
}
//iFLevelsHorizontalSR.OHLCLevels
//iFLevelsHorizontalSR.Resistance
//iFLevelsHorizontalSR.Support
for(int i=0;i<iFLevelsHorizontalSR.OHLCLevels.Count;i++)]
{
OHLCLevel level = iFLevelsHorizontalSR.OHLCLevels[i];
Print(level.OHLCLevelFlag ); ////Level OHLC Bitwise Flags 1 to 8 Integers 0 to 15 - 0:Off, 1 Open, 2 High, 4 Low, 8 Close
Print(level.Price);
Print(level.BarIndex );
Print(level.BarTime);
Print(level.SLevel); //-1 is support, 1 is resistance
}
// note if collection altered during iteration - will cause errors with this - so yuo can copy the contents using ToArray()
foreach( OHLCLevel level in iFLevelsHorizontalSR.OHLCLevels.ToArray())
{
Print(level.Price);
}
For more information and coding you will need to contact the development team for assistance with coding the strategy
http://www.micro-trends.co.uk/ninjatrader-development/
MicroTrends Support
support@microtrends.co
http://www.microtrends.co/support/
Tip! You can visit the help desk forum to see previous answered frequently asked questions:
http://microtrends.zendesk.com/forums
Hi
There is a working strategy sample posted for you at
http://forum.microtrends.co/forumdisplay.php?52-NinjaTrader-Indicator-Levels-Horizontal-SR
MicroTrends Support
support@microtrends.co
http://www.microtrends.co/support/
Tip! You can visit the help desk forum to see previous answered frequently asked questions:
http://microtrends.zendesk.com/forums
Please sign in to leave a comment.
Comments
0 comments