NexusFi: Find Your Edge


Home Menu

 





this strategy works incorrect on EdsRenko. Help!


Discussion in NinjaTrader

Updated
    1. trending_up 3,479 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
Accumulator
moscow
 
Posts: 4 since Dec 2009
Thanks Given: 2
Thanks Received: 0

this strategy works incorrect on EdsRenko.... Help !

#region Variables
// Wizard generated variables
private int profit = 4; // Default setting for Profit
private int stop = 4; // Default setting for Stop
private double Variable0 = 15.0;
// 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()
{
SetProfitTarget("", CalculationMode.Ticks, Profit);
SetStopLoss("", CalculationMode.Ticks, Stop, false);

CalculateOnBarClose = true;
}

protected override void OnBarUpdate()
{
if (CrossAbove(Stochastics(7, 14, 3).K, Stochastics(7, 14, 3).D, 1)
&& Stochastics(7, 14, 3).D[0] <= Variable0
&& Stochastics(7, 14, 3).K[0] <= Variable0
&& Historical == false)
{
EnterLongLimit(DefaultQuantity, GetCurrentBid(), "");
}

if (CrossBelow(Stochastics(7, 14, 3).K, Stochastics(7, 14, 3).D, 1)
&& Stochastics(7, 14, 3).D[0] >= 85.0
&& Stochastics(7, 14, 3).K[0] >= 85.0
&& Historical == false)
{
EnterShortLimit(DefaultQuantity, GetCurrentAsk(), "");
}
}


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Trump Truth Social Fires Hormuz From 10% to 59% -- Arsen …
Prediction Markets & Event Contracts
Day 96 Missiles Hit Kuwait and Bahrain: June 15 Peace at …
Prediction Markets & Event Contracts
Thursday May 28: GDP + Core PCE + Jobless Claims All at …
Traders Hideout
Fed Hike Odds at 57% After Warsh: England Surges 12.9%, …
Prediction Markets & Event Contracts
Warsh Rate Hike at 40%, Iran June 15 Expires Tonight at …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
8 thanks
Darmok and Jalad at Tanagra
1 thanks
  #2 (permalink)
 
cunparis's Avatar
 cunparis 
Paris, France
 
Experience: Advanced
Platform: Market Delta & Ninjatrader
Trading: ES
Posts: 2,565 since Jun 2009
Thanks Given: 1,162
Thanks Received: 2,095

What do you mean "works incorrectly"?

Also note that in renko bars (sbs renko at least) the open is the same as the previous close but in reality this is not the case, it's 1 tick higher or lower.


Follow me on X Reply With Quote
  #3 (permalink)
koganam
Garner, NC/USA
 
Posts: 39 since Dec 2009
Thanks Given: 16
Thanks Received: 42


What are you expecting, and how does it not happen?


Reply With Quote




Last Updated on February 4, 2010


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts