Problem coding a strategy with LinRegSlopeSFX - NinjaTrader Programming | futures io social day trading
futures io futures trading


Problem coding a strategy with LinRegSlopeSFX
Updated: Views / Replies:245 / 3
Created: by stoicbuddha Attachments:0

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

Problem coding a strategy with LinRegSlopeSFX

  #1 (permalink)
Elite Member
Seattle, WA
 
Futures Experience: Intermediate
Platform: NinjaTrader 8
Broker/Data: AMP/CQG
Favorite Futures: Currencies, Crude & NatGas
 
stoicbuddha's Avatar
 
Posts: 78 since Feb 2012
Thanks: 255 given, 61 received

Problem coding a strategy with LinRegSlopeSFX

I'm writing code that sends an alert when the LinRegSlopeSFX indicator crosses its "zero" line, but I've had a frustrating time coding the CrossAbove/Below if statement. Here's what I have so far:

if ((CrossAbove(LinRegSlopeSFX(False, 16, 1).SlopeSFX, 0, 1) || CrossBelow(LinRegSlopeSFX(False, 16, 1).SlopeSFX, 0, 1)) && (!Historical))
{}

when i try compiling it, it tells me "the name False does not exist in the current context". I'm sure there's something simple I'm missing. I figured I don't have to add the Indicator in the code as the indicator provides SlopeSFX in a public DataSeries. Can someone help here?

Thanks!

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
New Orleans, La (Mardi Gras City)
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Ninjatrader / Optimus Futures / AmpFutures
Favorite Futures: ES / 6E / 6B / CL
 
DavidHP's Avatar
 
Posts: 966 since Aug 2009
Thanks: 762 given, 1,332 received



happyrenko View Post
I'm writing code that sends an alert when the LinRegSlopeSFX indicator crosses its "zero" line, but I've had a frustrating time coding the CrossAbove/Below if statement. Here's what I have so far:

if ((CrossAbove(LinRegSlopeSFX(False, 16, 1).SlopeSFX, 0, 1) || CrossBelow(LinRegSlopeSFX(False, 16, 1).SlopeSFX, 0, 1)) && (!Historical))
{}

when i try compiling it, it tells me "the name False does not exist in the current context". I'm sure there's something simple I'm missing. I figured I don't have to add the Indicator in the code as the indicator provides SlopeSFX in a public DataSeries. Can someone help here?

Thanks!

False should not be capitalized (i.e. false)
p.s I did not put this into NT to see if it has the correct parameters but just by looking, the misspelling of False will give that error.

Rejoice in the Thunderstorms of Life . . .
Knowing it's not about Clouds or Wind. . .
But Learning to Dance in the Rain ! ! !
Reply With Quote
The following user says Thank You to DavidHP for this post:
 
  #4 (permalink)
Elite Member
Seattle, WA
 
Futures Experience: Intermediate
Platform: NinjaTrader 8
Broker/Data: AMP/CQG
Favorite Futures: Currencies, Crude & NatGas
 
stoicbuddha's Avatar
 
Posts: 78 since Feb 2012
Thanks: 255 given, 61 received


DavidHP View Post
False should not be capitalized (i.e. false)
p.s I did not put this into NT to see if it has the correct parameters but just by looking, the misspelling of False will give that error.

That did it, I can't believe it was that simple!

Thanks!

Reply With Quote

Reply



futures io > > > > > Problem coding a strategy with LinRegSlopeSFX

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

July Journal Challenge w/$1100 in prizes from TopstepTrader

July
 

An Afternoon with FIO member Softsoap

Elite only

Battlestations: Show us your trading desks and win $750 in prizes

August
 

Extended Ask Me Anything w/Brett Steenbarger

Elite only

Prototyping Python Strategies (part 3) w/Ran Aroussi

Elite only

Brannigan Barrett w/Axia Futures

Elite only

Introduction to Phillip Capital futures brokerage services

Aug TBD

How Monte Carlo Analysis Can Help Your Trading w/Kevin Davey

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
RFQ for coding strategy in Multicharts samsam1231 MultiCharts 1 November 20th, 2015 04:47 PM
New Strategy Coding Help FatDemon NinjaTrader Programming 49 January 4th, 2013 12:34 AM
Strategy Coding Challenge MWinfrey NinjaTrader Programming 4 January 25th, 2011 05:12 PM
Strategy coding - Would Anyone please take a quick look at........ mdsvtr NinjaTrader Programming 4 November 5th, 2010 05:54 AM
Strategy Wizard Coding Question njaisson NinjaTrader Programming 8 October 6th, 2010 07:34 AM


All times are GMT -4. The time now is 04:52 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-07-28 in 0.07 seconds with 19 queries on phoenix via your IP 54.158.7.152