what's wrong with my code??? - ThinkOrSwim Programming | futures io social day trading
futures io futures trading


what's wrong with my code???
Updated: Views / Replies:638 / 3
Created: by zoudaodi 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
 

what's wrong with my code???

  #1 (permalink)
Trading Apprentice
chengdu China
 
Futures Experience: Intermediate
Platform: swifttrade
Favorite Futures: stocks
 
Posts: 3 since Nov 2012
Thanks: 0 given, 0 received

what's wrong with my code???

i wanna bulit a custom scan that simplemoving 5 =10=20

def ma20=simplemoving(close ,20);
def ma5=simplemoving(close ,5);
def ma10=simplemoving(close,10);
plot scan= ma20=ma and ma5=ma10


but always show wrong ?

anybody can tell me how to fix it .thanks

Reply With Quote
 
  #2 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,533 since Apr 2013
Thanks: 231 given, 855 received
Forum Reputation: Legendary

zoudaodi,

what are you trying to scan for exactly and what is "ma" in your code?

Regards,
ABCTG

Reply With Quote
 
  #3 (permalink)
Trading Apprentice
chengdu China
 
Futures Experience: Intermediate
Platform: swifttrade
Favorite Futures: stocks
 
Posts: 3 since Nov 2012
Thanks: 0 given, 0 received



ABCTG View Post
zoudaodi,

what are you trying to scan for exactly and what is "ma" in your code?

Regards,
ABCTG

i wanna scan stock that it's simplemovingavage 5.10.20 at same price.
three movingavage..

Reply With Quote
 
  #4 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,533 since Apr 2013
Thanks: 231 given, 855 received
Forum Reputation: Legendary

This code should get you going. It will return +1 if all averages are at the same price and 0 if they are not.
However I believe you are checking for a very rare case, because the values would have to be the same up to the last decimal space. You are probably better off checking for the averages being the same or very close to each other.

 
Code
def ma20 = average(close ,20);
def ma5 = average(close ,5);
def ma10 = average(close,10);

plot scan = If(ma20 == ma5 and ma5 == ma10 , 1, 0);
Regards,
ABCTG

Reply With Quote

Reply



futures io > > > > > what's wrong with my code???

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
Need help to see what's wrong with my code kingfish88 ThinkOrSwim Programming 5 January 7th, 2014 04:04 AM
Nube question. What am i doing wrong? Ragdoll NinjaTrader Programming 4 September 11th, 2013 05:27 PM
What Everybody Is Getting Wrong About The New President Of France kbit News and Current Events 0 May 7th, 2012 09:01 AM
Wrong gift kbit Jokes 1 February 15th, 2012 06:26 PM
Odds Are, It's Wrong kbit Off-Topic 24 November 18th, 2011 04:28 PM


All times are GMT -4. The time now is 11:48 PM.

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-15 in 0.07 seconds with 19 queries on phoenix via your IP 54.163.210.170