Return a signal from an indicator for use in Strategy - NinjaTrader | futures io social day trading
futures io futures trading


Return a signal from an indicator for use in Strategy
Updated: Views / Replies:98 / 5
Created: by pnguyen720 Attachments:4

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 100,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
 
Thread Tools Search this Thread
 

Return a signal from an indicator for use in Strategy

  #1 (permalink)
Elite Member
Los Angeles
 
Trading Experience: Beginner
Platform: NinjaTrader
Favorite Futures: NQ CL GC
 
Posts: 26 since Jan 2017
Thanks: 6 given, 3 received

Return a signal from an indicator for use in Strategy

Hey guys,

I have a basic question that I'm sure some of you could answer relatively quickly. How do I take an indicator that's available here and add/modify the code to return a True/False condition for use in my Strategy?
For example, I just downloaded the CenTexFishDiv divergence indicator and after seeing it work in real time, I'd like to backtest the signals. How can I return a True/False for whenever a Short or Long Divergence is spotted (i.e. line drawn)? Would the code modification be made wherever the sound files are generated?

Many thanks,
Paul

Reply With Quote
 
  #2 (permalink)
Elite Member
OC, California, USA
 
Trading Experience: Advanced
Platform: IB/TWS, NinjaTrader, thinkorswim
Favorite Futures: stocks, options, futures, VIX
 
shodson's Avatar
 
Posts: 1,892 since Jun 2009
Thanks: 493 given, 3,398 received

I can't find the "CenTexFishDiv" indicator, otherwise I might be able to help. Got a download URL?

Reply With Quote
 
  #3 (permalink)
Elite Member
Los Angeles
 
Trading Experience: Beginner
Platform: NinjaTrader
Favorite Futures: NQ CL GC
 
Posts: 26 since Jan 2017
Thanks: 6 given, 3 received



shodson View Post
I can't find the "CenTexFishDiv" indicator, otherwise I might be able to help. Got a download URL?

Hi shodson,

You can find it here:
https://futures.io/local_links.php?action=ratelink&catid=27&linkid=1977

I've also attached it, if that helps.
Thank you!

Attached Files
Register to download File Type: zip CenTexFishDiv.zip (13.4 KB, 3 views)
Reply With Quote
 
  #4 (permalink)
Elite Member
OC, California, USA
 
Trading Experience: Advanced
Platform: IB/TWS, NinjaTrader, thinkorswim
Favorite Futures: stocks, options, futures, VIX
 
shodson's Avatar
 
Posts: 1,892 since Jun 2009
Thanks: 493 given, 3,398 received

The way it's coded now, you can't use it in an automated strategy. A developer would have to add a public Series of when long or short signals fire and then an automated strategy can examine that series on the indicator on each bar. Right now it only exposes IndicPlot0-3 series and I only ever see a value in IndicPlot0.

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


Last edited by shodson; January 11th, 2019 at 09:24 PM. Reason: typo
Reply With Quote
 
  #5 (permalink)
Elite Member
Los Angeles
 
Trading Experience: Beginner
Platform: NinjaTrader
Favorite Futures: NQ CL GC
 
Posts: 26 since Jan 2017
Thanks: 6 given, 3 received


shodson View Post
The way it's coded now, you can't use it in an automated strategy. A developer would have to add a public Series of when long or short signals fire and then an automated strategy can examine that series on the indicator on each bar. Right now it only exposes IndicPlot0-3 series and I only ever see a value in IndicPlot0.

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Ok, thank you for at least looking. Appreciate it.

Reply With Quote
 
  #6 (permalink)
Elite Member
Los Angeles
 
Trading Experience: Beginner
Platform: NinjaTrader
Favorite Futures: NQ CL GC
 
Posts: 26 since Jan 2017
Thanks: 6 given, 3 received

Hi again,

NJT support was able to help me a little by pointing to a reference sample showing how to add a Public series. I made the changes to this code and it largely works except sometimes, it returns a Divergence signal when I don't see one drawn on the chart. I only see this when I run it through a sample test script and call the 2 public series that I added. Inside the Indicator code, when I echo out the private series bool values, it looks right.
I was wondering if possibly you could point out what I'm missing?

Thank you again for your help.

Attached Files
Register to download File Type: zip CenTexFishDivWithSignal.zip (13.7 KB, 2 views)
Reply With Quote

Reply



futures io > > > > Return a signal from an indicator for use in Strategy

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Battlestations! Show us your trading desks w/GFF Brokers ($750 in Prizes)

January
 

Trading Preparedness w/GFF Brokers

Jan 22
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to stop a strategy/signal immediately w1235768 MultiCharts 2 April 24th, 2017 03:48 PM
RangeBarTime indicator does not return seconds, only minutes. Suggestions? MBAGearhead Open E Cry 0 January 27th, 2015 04:42 PM
Return Custom Indicator value within a window of time? SwingStockTrader EasyLanguage Programming 3 July 12th, 2014 12:43 PM
Using Indicator inside Signal/Strategy ivanyu EasyLanguage Programming 7 August 14th, 2013 02:29 PM
Trying to use the TimeHistogram indicator in an automated strategy tradingds Elite Automated NinjaTrader Trading 2 December 12th, 2011 02:45 PM


Tags
automated strategy, backtest, backtesting, code, divergence, dow, futures, how to, indicator, indicators, ninjatrader, real time, signal, signals, strategy, values

All times are GMT -4. The time now is 05:03 AM. (this page content is cached, log in for real-time version)

Copyright © 2019 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432 WhatsApp Business, 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 2019-01-23 in 0.14 seconds with 14 queries on phoenix