Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
I will Develop your Indicator or Strategy for FREE
Collapse
This topic is closed.
X
X
-
The title of the strategy is Golongorshort
Thanks in advance for your help. Ive been working on this for a longtime
-
Having Trouble with my strategy which is compiled but not showing backtesting resualt
Can anyone see where their might be flaws in my code? that will produce back testing results right now its showing up null? If you could get back to me ASAP that would be great.
Kind Regards,
Cam
#region Variables
// Wizard generated variables
private bool onlyGoLong = true; // Default setting for OnlyGoLong
private int aDXStrength = 18; // Default setting for ADXStrength
private int trailingStopLoss = 30; // Default setting for TrailingStopLoss
private int stopLoss = 30; // Default setting for StopLoss
// User defined variables (add any user defined variables below)
#endregion
/// <summary>
/// This method is used to configure the strategy and is called once before any strategy method is called.
/// </summary>
protected override void Initialize()
{
SetStopLoss("", CalculationMode.Ticks, StopLoss, false);
SetTrailStop("", CalculationMode.Ticks, TrailingStopLoss, false);
CalculateOnBarClose = true;
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
// Condition set 1
if (OnlyGoLong == true
&& CrossAbove(MACD(12, 26, 9).Avg, MACD(12, 26, 9).Avg, 1)
&& CrossAbove(ADX(14), ADXStrength, 1)
&& CrossAbove(DM(14).DiPlus, DM(14).DiMinus, 1)
&& CrossAbove(Stochastics(7, 14, 3).K, Stochastics(7, 14, 3).D, 1))
{
EnterLong(DefaultQuantity, "");
}
// Condition set 2
if (OnlyGoLong == false
&& CrossBelow(MACD(12, 26, 9).Avg, MACD(12, 26, 9).Avg, 1)
&& CrossBelow(DM(14).DiPlus, DM(14).DiMinus, 1)
&& CrossBelow(Stochastics(7, 14, 3).K, Stochastics(7, 14, 3).D, 1)
&& CrossAbove(ADX(14), ADXStrength, 1))
{
EnterShort(DefaultQuantity, "");
}
// Condition set 3
if (CrossBelow(ADX(14), ADXStrength, 1)
|| CrossBelow(MACD(12, 26, 9).Avg, MACD(12, 26, 9).Avg, 1)
|| CrossBelow(DM(14).DiPlus, DM(14).DiMinus, 1)
|| CrossBelow(Stochastics(7, 14, 3).K, Stochastics(7, 14, 3).D, 1))
{
ExitLong("", "");
}
// Condition set 4
if (CrossAbove(DM(14).DiPlus, DM(14).DiMinus, 1)
|| CrossBelow(ADX(14), ADXStrength, 1)
|| CrossAbove(MACD(12, 26, 9).Avg, MACD(12, 26, 9).Avg, 1)
|| CrossAbove(Stochastics(7, 14, 3).K, Stochastics(7, 14, 3).D, 1))
{
ExitShort("", "");
}
}
#region Properties
[Description("Only take Long trades, if false only take Short trades")]
[GridCategory("Parameters")]
public bool OnlyGoLong
{
get { return onlyGoLong; }
set { onlyGoLong = value; }
}
[Description("Trend Strength")]
[GridCategory("Parameters")]
public int ADXStrength
{
get { return aDXStrength; }
set { aDXStrength = Math.Max(1, value); }
}
[Description("Traling Stop Loss")]
[GridCategory("Parameters")]
public int TrailingStopLoss
{
get { return trailingStopLoss; }
set { trailingStopLoss = Math.Max(1, value); }
}
[Description("StopLoss")]
[GridCategory("Parameters")]
public int StopLoss
{
get { return stopLoss; }
set { stopLoss = Math.Max(1, value); }
}
#endregion
}
}Attached Files
Leave a comment:
-
BetterRenko is a good alternative to the default Renko bars, because unlike Renko the bar shows the true open, high & low on the chart. This means that it is backtestable.Originally posted by jake28787 View Postcan u offer a free link to download into NT 7 the indicator
'better renko bars'
thx
[email protected]
However, I do not freely distribute the work of others. Better Renko is available here for members
You can also try to contact the author of the bars, @aslan.
Leave a comment:
-
renko bars
can u offer a free link to download into NT 7 the indicator
'better renko bars'
thx
[email protected]
Leave a comment:
-
If you just need one indicator I will send it to you. If you want to download hundreds, then you should better become a member ..... Big Mike's has over 300 indicators for NinjaTrader 7.....Originally posted by zitroc View PostThanks man ! this exactly what I need -- by any chance do you have a download link for it I don't have access to bigmiketrading.
thanks
Z
Leave a comment:
-
Thanks man ! this exactly what I need -- by any chance do you have a download link for it I don't have access to bigmiketrading.
thanks
Z
Leave a comment:
-
The indicator is already available. Actually there are two indicators. One can be used with price, the other one with any indicator, which is selected as input series. You can select 10 different lines, each with different color, plot width and sound alert. The alert can be triggered when price crosses above or below or both. An offset allows for sound alerts prior to price touching the level. The indicator can be found here:Originally posted by zitroc View PostDon't know if something similar already exist which I don't believe its out there or maybe I wrong.
I'm looking for add-on or indicator that will alert me when price touches and closes above or below at particular price levels I choose randomly. Would be nice touch w/ an option for touch and close or both. Also the option to add any wav file I choose for the alerts.
Is this possible
Please advise - Thx
Zitroc
Leave a comment:
-
Alert
Don't know if something similar already exist which I don't believe its out there or maybe I wrong.
I'm looking for add-on or indicator that will alert me when price touches and closes above or below at particular price levels I choose randomly. Would be nice touch w/ an option for touch and close or both. Also the option to add any wav file I choose for the alerts.
Is this possible
Please advise - Thx
Zitroc
Leave a comment:
-
help w/ bandwidth indicator
Hello,
I would reallly appreciate if you could code a NT7 bollinger band width indicator for me!!
I found one in the forums that did not work.
Calculation: (Upper Band - Lower Band)/Middle Band
ref. http://stockcharts.com/school/doku.p...ger_band_width
Thanx,
[email protected]
Leave a comment:
-
Moving Average Cross Indicator
Can you create an indicator to alert me when the market crosses the moving average? I'm using EminiSniperMA as an indicator and am needing an alert to tell me when the market crosses it either up or down. And it would be ideal if I can get that to alert me via sms or e-mail. Thanks.
Leave a comment:
-
CandleStickPattern correction
CandleStickPattern indicator seems to identify an EVENING STAR pattern that does not adhere to the middle bar needing a gap. Perhaps this is an incorrect definition of the pattern but it seems right.
Evening Star: A bearish reversal pattern that continues an uptrend with a long white body day followed by a gapped up small body day, then a down close with the close below the midpoint of the first day.
http://stockcharts.com/school/doku.p...n_#eveningstar
The CandleStickPattern indicator seems to ignore the "gap" piece of the pattern. The Morning Star Pattern seems to use this gap since I have never seen one appear yet. I wonder if someone could review the two and determine if there is an error in one of them.
I actually like the current Evening Star pattern being recognized and actually started looking at this due to the lack of morning stars. If someone could set it up so the Evening Star is corrected and then use the non-gap version as an indicator but perhaps with a new name. Evening Non-gap Top and a morning star version?
Leave a comment:
-
predictive support/resistance indicator
hi, can you make an indicator that can scan to see where the market has turned (pivoted) the most amount of times within a given parameter (input for period number, i.e. past 60 days/minutes/periods). it would be great if you could also create an input field where one could only want to see the top 20% of repeated pivots in the past (percentage input). and finally, since support and resistance rarely ever turns on the exact price, another great input field would be for a range of points/dollars/ticks/etc that the pivots areas are contained in.
you could display these potential support/resistance levels on the right side of the chart and maybe use some kind of color system to show the strength of the lines where the strongest lines are the ones that had the most pivots at a certain price area the most amount of times in the past. if you can do this, that would be sweet! thanks!
Leave a comment:
-
You can use this one for the next 12 hours. [email protected]Originally posted by cameo86 View PostYou got an email?
Leave a comment:
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
607 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
353 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
560 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
561 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Leave a comment: