NexusFi: Find Your Edge


Home Menu

 





I need help with an indicator


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one mk77ch with 9 posts (1 thanks)
    2. looks_two cory with 3 posts (0 thanks)
    3. looks_3 Tasker_182 with 2 posts (0 thanks)
    4. looks_4 Fat Tails with 2 posts (6 thanks)
      Best Posters
    1. looks_one Fat Tails with 3 thanks per post
    2. looks_two Zondor with 1 thanks per post
    3. looks_3 Thxo with 1 thanks per post
    4. looks_4 mk77ch with 0.1 thanks per post
    1. trending_up 11,496 views
    2. thumb_up 9 thanks given
    3. group 10 followers
    1. forum 23 posts
    2. attach_file 6 attachments




 
Search this Thread
  #11 (permalink)
 
mk77ch's Avatar
 mk77ch 
Switzerland
 
Experience: Advanced
Platform: NinjaTrader
Broker: Dorman
Trading: Currency Futures, ES
Posts: 162 since Oct 2010
Thanks Given: 30
Thanks Received: 423


Big Mike View Post
@Zondor likes a challenge.

Mike

whoever will like this challenge is more than welcome ;-)

cheers,
mike


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
$12M Ceasefire Contract Goes Disputed as Bandar Abbas St …
Prediction Markets & Event Contracts
Trump Truth Social Fires Hormuz From 10% to 59% -- Arsen …
Prediction Markets & Event Contracts
Orban Crashes to 21pct on Record Turnout -- McIlroy Drop …
Prediction Markets & Event Contracts
Prediction Markets Expiry Day: Trump Eyes War Exit, $230 …
Prediction Markets & Event Contracts
February NFP Preview -- Why This Mornings Jobs Number Co …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
22 thanks
2026 Jlab journal
10 thanks
Trying to learn Volume and price action correlation
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Hello Im new here
5 thanks
  #12 (permalink)
 
Zondor's Avatar
 Zondor 
Portland Oregon, United States
 
Experience: Beginner
Platform: Ninjatrader®
Broker: CQG, Kinetick
Trading: Gameplay Klownbine® Trading of Globex
Posts: 1,333 since Jul 2009
Thanks Given: 1,246
Thanks Received: 2,734

That sounds like something that might be correctable. Would have to see the code.


"If we don't loosen up some money, this sucker is going down." -GW Bush, 2008
“Lack of proof that something is true does not prove that it is not true - when you want to believe.” -Humpty Dumpty, 2014
“The greatest shortcoming of the human race is our inability to understand the exponential function.”
Prof. Albert Bartlett
Follow me on X Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #13 (permalink)
 
mk77ch's Avatar
 mk77ch 
Switzerland
 
Experience: Advanced
Platform: NinjaTrader
Broker: Dorman
Trading: Currency Futures, ES
Posts: 162 since Oct 2010
Thanks Given: 30
Thanks Received: 423



Zondor View Post
That sounds like something that might be correctable. Would have to see the code.

hey @Zondor,

the indi is attached on the first page
thank you
mike


Started this thread Reply With Quote
  #14 (permalink)
 
cory's Avatar
 cory 
virginia
the coin hunter
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,093


mk77ch View Post
... a relative small better renko chart and due to intense calculations during fast moving market ninjatrader hangs/freezes for a few seconds. so its not possible to set orders during these times.

i use it with cobc=false and each tick the indicator is calculated over all x thousand bars.
i really need this to be fixed...

perfect storm for slowness, have you try it without coloring code?


Reply With Quote
  #15 (permalink)
 
mk77ch's Avatar
 mk77ch 
Switzerland
 
Experience: Advanced
Platform: NinjaTrader
Broker: Dorman
Trading: Currency Futures, ES
Posts: 162 since Oct 2010
Thanks Given: 30
Thanks Received: 423


cory View Post
perfect storm for slowness, have you try it without coloring code?

yes, i actually stripped it down to just one plot and the problem is clearly located in the while statement that recalculates all bars.


Started this thread Reply With Quote
  #16 (permalink)
 
mk77ch's Avatar
 mk77ch 
Switzerland
 
Experience: Advanced
Platform: NinjaTrader
Broker: Dorman
Trading: Currency Futures, ES
Posts: 162 since Oct 2010
Thanks Given: 30
Thanks Received: 423

g'day!

i actually renamed the variables so the code is a little easier to read.
i still hope somebody can help me...


Attached Files
Elite Membership required to download: mkGoldBands.zip
Started this thread Reply With Quote
  #17 (permalink)
 
mk77ch's Avatar
 mk77ch 
Switzerland
 
Experience: Advanced
Platform: NinjaTrader
Broker: Dorman
Trading: Currency Futures, ES
Posts: 162 since Oct 2010
Thanks Given: 30
Thanks Received: 423

i finally managed it to fix the loop problem and the indicator is now working as expected.
this thread could be closed

cheers,
mike


Started this thread Reply With Quote
Thanked by:
  #18 (permalink)
 
cory's Avatar
 cory 
virginia
the coin hunter
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,093


mk77ch View Post
i finally managed it to fix the loop problem and the indicator is now working as expected.
this thread could be closed

cheers,
mike

it helps when you talk out loud, talking about it simulates your creativity.


Reply With Quote
  #19 (permalink)
 jmont1 
New York, NY
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader8
Broker: Data = Rithmic -- Gives 70 Level II Data
Trading: 6C (Low Margin,) 6E, CL, GC, ES and Maybe DX for smaller tick value
Posts: 1,418 since May 2011
Thanks Given: 1,728
Thanks Received: 1,024


mk77ch View Post
i finally managed it to fix the loop problem and the indicator is now working as expected.
this thread could be closed

cheers,
mike

@mk77ch, usually if you've come to the forum for assistance it is nice to post your finished code for review. May I request you post the final version?


Reply With Quote
  #20 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,114


I had a quick look at the indicator. It is a linear weighted moving average further smoothed with a simple moving average. The StdDev bands use a peculiar formula. I have therefore slightly modified them.

The modified indicator is attached.

I have compared the loading times of the indicator from post #16 and the indicator attached on a 15 min chart with a lookback period of 1 year.

mkGoldBands: loading in 60 seconds
anaGoldBands: loading in 2 seconds

The problem here is the number of draw objects that was used. mkGoldBands uses 1 draw object per bar, while anaGoldBands uses fewer larger draw objects. The difference in speed is not linked to the modified formula for the standard deviation.


Attached Files
Elite Membership required to download: anaGoldBands.zip
Reply With Quote




Last Updated on July 5, 2014


© 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