Coding Your Own Stochastic Indicator - EasyLanguage Programming | futures io social day trading
futures io futures trading


Coding Your Own Stochastic Indicator
Updated: Views / Replies:433 / 4
Created: by djvie11 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
 

Coding Your Own Stochastic Indicator

  #1 (permalink)
Trading Apprentice
Chicago, IL
 
Futures Experience: Advanced
Platform: Tradestation + Multicharts
Favorite Futures: Forex, Futures
 
Posts: 44 since Jul 2013
Thanks: 26 given, 1 received

Coding Your Own Stochastic Indicator

Hi Guys!

So I've been trying to code my own version of a stochastic crossover so I have more control over it. Below is my code but it's not working quite like the one that's already built into the system.

I'm trying to do this so I can get a signal on a 2 data chart (Stochastic is meant for Data2), but not having to wait until the close of Data2 to actually get the stochastic signal.

Please let me know if you think I'm missing something on the below code. Thanks!

 
Code
Inputs:
PercentK_data2 ((C of data2 - Lowest (L of data2,14)) / (Highest (H of data2,14)) - (Lowest (L of data2,14)) / 100 ) ;

Variables:
PercentD_data2 (Average (bkPercentK_data2, 3)) ;

Condition1 = bkPercentK_data2 > bkPercentD_data2 ;
Condition2 = bkPercentK_data2 < bkPercentD_data2 ;

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)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,493 since Apr 2013
Thanks: 227 given, 846 received


djvie11,

what exactly does your code do and more important, what do you want your code to do instead?

Did you print or plot the input and variable to see if they hold the values that you expect them to have?

Regards,

ABCTG


Last edited by ABCTG; October 21st, 2016 at 12:33 PM.
Reply With Quote
 
  #4 (permalink)
Trading Apprentice
Chicago, IL
 
Futures Experience: Advanced
Platform: Tradestation + Multicharts
Favorite Futures: Forex, Futures
 
Posts: 44 since Jul 2013
Thanks: 26 given, 1 received


ABCTG View Post
djvie11,

what exactly does your code do and more important, what do you want your code to do instead?

Regards,

ABCTG

The calculations are a little screwy, and I'd also like to make the 14-period input a variable. However, when trying to make it an input, I get a "Wrong Expression" error after trying to compile the code.
(PercentK_data2 ((C of data2 - Lowest (L of data2,14)) )

Ex:
 
Code
Inputs:
14PeriodVar (1),
PercentK_data2 ((C of data2 - Lowest (L of data2,14PeriodVar)) / (Highest (H of data2,14PeriodVar)) - (Lowest (L of data2,14PeriodVar)) / 100 ) ;

Reply With Quote
 
  #5 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,493 since Apr 2013
Thanks: 227 given, 846 received

djvie11,

I would suggest to start with making the code easier to read and to maintain i.e. not trying to put the whole code computations into one input and variable, but instead by using several variables that you compute within your code (and not on declaration). The issue you might run into otherwise is that the variable keeps a static value, although you think it's dynamic.

A good way to verify this is by printing or plotting the actual value for input and variable in it's current form.

Regards,

ABCTG

Reply With Quote
The following user says Thank You to ABCTG for this post:

Reply



futures io > > > > > Coding Your Own Stochastic Indicator

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

Dec 7

Linda Bradford Raschke: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Other]       Indicator Parameter? Stochastic Momentum Index EdenR Platforms and Indicators 4 November 21st, 2016 03:55 PM
TOS EFV Stochastic Indicator eensor ThinkOrSwim 0 June 15th, 2016 01:02 PM
VSR Indicator (Volume/Stochastic/Reversal Bars) HJay The Elite Circle 22 May 11th, 2016 12:25 PM
Stochastic Momentum Index Indicator sunny135 NinjaTrader 1 January 8th, 2014 11:54 AM
Stochastic %K Indicator timefreedom The Elite Circle 4 September 16th, 2010 05:12 PM


All times are GMT -4. The time now is 03:42 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-11-25 in 0.08 seconds with 19 queries on phoenix via your IP 54.198.134.32