NexusFi: Find Your Edge


Home Menu

 





Jons MTZ debacle


Discussion in NinjaTrader

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




 
Search this Thread
  #1 (permalink)
 
Trader.Jon's Avatar
 Trader.Jon 
Near the BEuTiFULL Horse Shoe
 
Experience: Beginner
Platform: NinjaTrader
Broker: MBTrading Dukascopy ZenFire
Trading: $EURUSD when it is trending
Posts: 473 since Jul 2009
Thanks Given: 401
Thanks Received: 184

Good day to everybody!

This was originally shElderImpulse strategy (The Elder Impulse System) from the NT 6.5 free download section. I am trying to make a framework for MultiTimeFrame and MultipleTimeZone and backround colors to use with various indicators.

Renamed to aMTF_MTZones_colors2. The strategy will compile correctly, but the backround colors (and I am guessing those higher time frame calculations as well?) dont display except for the the inputs assigned to the first timezone. I tried using '0' for start and end of the first timezone and the strategy shows color bands for all 24 hours.

This shows how the original code was:::

-------------------------------------------
 
Code
                            
{
        
#region Variables
        // Wizard generated variables
...
        private 
int _tradeTimeBegin         0// Default setting for TradeTimeBegin1
        
private int _tradeTimeEnd         0// Default setting for TradeTimeEnd1
...
 
// User defined variables (add any user defined variables below)
        #endregion 
-----------------------------------------

This shows how I modified the code:::

------------------------------------------
 
Code
                            
{
        
#region Variables
        // Wizard generated variables
...
        private 
int _tradeTimeBegin1         0230// Default setting for TradeTimeBegin1
        
private int _tradeTimeEnd1         0530// Default setting for TradeTimeEnd1
        
private int _tradeTimeBegin2         0950// Default setting for TradeTimeBegin1
        
private int _tradeTimeEnd2         1110// Default setting for TradeTimeEnd1
        
private int _tradeTimeBegin3         1310// Default setting for TradeTimeBegin1
        
private int _tradeTimeEnd3         1530// Default setting for TradeTimeEnd1
...      
  
// User defined variables (add any user defined variables below)
        #endregion 
------------------------------------

I changed the variables to have multiple time zones for trades, and also made other changes in the code at the ""Properties"" and ""private bool TimeToTrade"" to add additional lines for the timezones I added. I cant see where else in the code changes need to be made to activate the other time zones.

The code only uses EMA and MACD so it imports without any additional indies.

I would appreciate feedback and assist to resolve the issue. I hope this will be useful for others in their code as well.

Regards,
Trader.Jon


Attached Files
Elite Membership required to download: Jons_MTZ.zip
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
The Week Ahead -- CPI Wednesday With Oil Past $90, PPI L …
Traders Hideout
$12M Ceasefire Contract Goes Disputed as Bandar Abbas St …
Prediction Markets & Event Contracts
After $87M Settles NO: Irans Nuclear Redline Sets Up the …
Prediction Markets & Event Contracts
NYSE Owner ICE Invests in Crypto Exchange OKX at $25 Bil …
Cryptocurrency
CFTC Approves First US Bitcoin Perpetual Futures -- Kals …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
21 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #3 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,756 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,632


I didn't open the source, just a remark:
- Integer variables should be used to manipulate integer values.
- DateTime type has been created for manipulate date and time, it's much more easy/reliable to use this !!!


Success requires no deodorant! (Sun Tzu)
Follow me on X Reply With Quote
Thanked by:




Last Updated on July 8, 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