Scripting sell condition - ThinkOrSwim | futures io social day trading
futures io futures trading

Scripting sell condition
Updated: Views / Replies:383 / 1
Created: by mtngoat 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

Thread Tools Search this Thread

Scripting sell condition

  #1 (permalink)
Trading Apprentice
Peachtree City, Georgia, USA
Futures Experience: Intermediate
Platform: TOS
Favorite Futures: Stocks
Posts: 1 since Jul 2014
Thanks: 0 given, 0 received

Scripting sell condition

I am new to think script. I am trying to script a strategy. I have been able to script the purchase conditions but there is something wrong with my sell condition which I have not been able to figure out. In words, I want to sell when the PercentR has crossed below 80 and when there is a close that is lower than the low of the day on which the PercentR crossed below 80, I want to sell on the next day open.

My script is as follows:

def test=reference PercentR(30,20,80);

def retestlo=if test crosses below 80 then low else retestlo;

AddOrder(OrderType.SELL_TO_CLOSE, retestlo>close, open[-1]);

Once the PercentR has crossed below 80, the low of that day stays in effect until the next time that the PercentR crosses below 80 (which can only happen if it has crossed above 80 in between).

Thanks for your help.

Reply With Quote
  #2 (permalink)
Trading Apprentice
Boston + Massachusetts/United States
Futures Experience: Beginner
Platform: ThinkorSwim
Favorite Futures: Futures
mroland19's Avatar
Posts: 5 since May 2015
Thanks: 15 given, 1 received

Scripting sell condition

I am new to think script.

Will Ameritrade give you technical service help even for a cost? Maybe they have think scrip help center. If I find any material that might help I'll send it your way. Good luck.

Last edited by mroland19; June 26th, 2015 at 08:02 PM. Reason: wanted to keep the titles the same as op
Reply With Quote


futures io > > > > Scripting sell condition

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Wyckoff Hunting for Great Risk/Reward Ratio w/Gary Fullett

Elite only

Digging into the Details of iSystems w/Stage 5 & iSystems

Jun 5

Similar Threads
Thread Thread Starter Forum Replies Last Post
Scripting TWS on a Mac fritzybloch IB Trader Workstation 1 May 26th, 2016 10:56 AM
Basic scripting question for study filter Hockster ThinkOrSwim Programming 4 September 4th, 2014 07:32 AM
Need some help for c sharp scripting hugebaozi NinjaTrader Programming 1 July 9th, 2014 10:06 PM
Does TWS Offer Built-In Scripting? TraitorX IB Trader Workstation 0 January 11th, 2014 11:50 PM
link an exit condition to a particular entry condition vegtrip ThinkOrSwim 0 October 12th, 2013 08:49 AM

All times are GMT -4. The time now is 11:57 AM.

Copyright © 2018 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432,
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 2018-05-22 in 0.07 seconds with 19 queries on phoenix via your IP