How to auto restart running indicator? - NinjaTrader Programming | futures io social day trading
futures io futures trading


How to auto restart running indicator?
Updated: Views / Replies:2,185 / 13
Created: by Erez Attachments:1

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors – all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you don’t need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 1  
 
Thread Tools Search this Thread
 

How to auto restart running indicator?

  #11 (permalink)
Elite Member
Portland Oregon, United States
 
Futures Experience: Beginner
Platform: Ninjatrader®
Broker/Data: CQG, Kinetick
Favorite Futures: Gameplay Klownbine® Trading of Globex
 
Zondor's Avatar
 
Posts: 1,327 since Jul 2009
Thanks: 1,246 given, 2,635 received

restarting an indicator

Try this. Not guaranteed!

Call a procedure that gets rid of all the existing DataSeries and Plot objects by using the Dispose() method, then calls the Initialize() and OnStartUp() (if used) procedures.

 
Code
private void ResetIndicator()
{
     if(DataSeries1   != null) DataSeries1.Dispose();  // Dispose of all DataSeries objects other than Plots
     if(Values[0]     != null) Values[0].Dispose();       //  Dispose of all Plots

     Initialize();
     OnStartUp()   // only if indicator has an OnStartUp procedure
}

Reply With Quote
The following 2 users say Thank You to Zondor for this post:
 
  #12 (permalink)
Elite Member
Haifa,,,
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: CQG
Favorite Futures: Futures
 
Posts: 186 since Mar 2011
Thanks: 181 given, 865 received

Thanks @Zondor, assuming this method works, do you know if the indicator will run again through (what I actually need) all the history bars like in "reload ninja script? Or it goes directly to the current bar?



Zondor View Post
Try this. Not guaranteed!

Call a procedure that gets rid of all the existing DataSeries and Plot objects by using the Dispose() method, then calls the Initialize() and OnStartUp() (if used) procedures.

 
Code
private void ResetIndicator()
{
     if(DataSeries1   != null) DataSeries1.Dispose();  // Dispose of all DataSeries objects other than Plots
     if(Values[0]     != null) Values[0].Dispose();       //  Dispose of all Plots
 
     Initialize();
     OnStartUp()   // only if indicator has an OnStartUp procedure
}


Reply With Quote
 
  #13 (permalink)
Elite Member
Portland Oregon, United States
 
Futures Experience: Beginner
Platform: Ninjatrader®
Broker/Data: CQG, Kinetick
Favorite Futures: Gameplay Klownbine® Trading of Globex
 
Zondor's Avatar
 
Posts: 1,327 since Jul 2009
Thanks: 1,246 given, 2,635 received



Quoting 
Thanks @Zondor, assuming this method works, do you know if the indicator will run again through (what I actually need) all the history bars like in "reload ninja script? Or it goes directly to the current bar?

My guess is that if the method I suggested does work, the historical bars will reload. Need to try it and see what happens.

Reply With Quote
The following user says Thank You to Zondor for this post:
 
  #14 (permalink)
Elite Member
Haifa,,,
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: CQG
Favorite Futures: Futures
 
Posts: 186 since Mar 2011
Thanks: 181 given, 865 received


Zondor View Post
My guess is that if the method I suggested does work, the historical bars will reload. Need to try it and see what happens.

Thanks, I'll test it.

Reply With Quote

Reply



futures io > > > > > How to auto restart running indicator?

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
running auto-strats on a list of stocks (TradeStation?) nicbizz Platforms and Indicators 3 November 3rd, 2011 11:48 AM
Custom NT indicator has stopped auto-loading with strategy, cache? drwylde NinjaTrader 1 July 9th, 2011 09:11 PM
Using slope of an indicator in an auto-strategy nanobiotech NinjaTrader Programming 4 August 6th, 2010 12:31 PM
Why do executions appear to be diff related to bars after NT restart DabaDave Traders Hideout 2 June 15th, 2010 03:26 PM
Adding a Auto Fib Retracement to an indicator vast NinjaTrader 0 July 4th, 2009 08:31 AM


All times are GMT -4. The time now is 06:30 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-17 in 0.08 seconds with 20 queries on phoenix via your IP 54.82.81.154