NexusFi: Find Your Edge


Home Menu

 




EasyLanguage to Thinkscript


Discussion in EasyLanguage Programming

Updated
    1. trending_up 699 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 1 posts
    2. attach_file 1 attachments




Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now, It is Free
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.

-- Big Mike, Site Administrator

Available coupon codes for premium Elite Membership:
  • If you are a researcher and pay attention to details, you qualify for our 10% discount - "CHARTIST"
  • If you are a veteran or in public/community service, you qualify for 15% discount - "PURPLECHART"
  • If you are 60+ years old, you qualify for our 20% discount - "WISDOM"
  • Discounts are based on the honor system. If we can't trust you to do the right thing, please move along.

(If you already have an account, login at the top of the page)

 
Search this Thread

EasyLanguage to Thinkscript

(login for full post details)
  #1 (permalink)
DeanW
Phoenix, Arizona
 
Posts: 1 since Jan 2023
Thanks Given: 0
Thanks Received: 0

This is a shot in the dark, but I will ask anyway: I have a friend that gave me this strategy but it is in Easylanguage and he has no idea how to write it in Thinkscript. It seems to be a fairly simply strategy, but I have no experience with this sort of stuff. I would really appreciate any help.

input: length1(20),length2(3); //StopL(500),Proft(1000);

if close<close[200] and close>close[length1] and close<close[length2] and close>open then buy next bar at market;

if close>close[200] and close<close[length1] and close>close[length2] and close<open then sellshort next bar at market;

if barssinceentry>10 then Begin
sell next bar at market;
buytocover next bar at market;
end;

//SetStopLoss(StopL);
//SetProfitTarget(Proft);

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
VIX1D
NinjaTrader
RangeDisparityMeter Indicator for NT8
Platforms and Indicators
Resources to help learn about diversification of algo po …
NinjaTrader
Actual code for RSI using Wilders average, not the canne …
ThinkOrSwim
Can Dump be caught with Algo Trade
Crypto Futures
 

(login for full post details)
  #2 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,610 since Jul 2012
Thanks Given: 1,864
Thanks Received: 7,277


DeanW View Post
This is a shot in the dark, but I will ask anyway: I have a friend that gave me this strategy but it is in Easylanguage and he has no idea how to write it in Thinkscript. It seems to be a fairly simply strategy, but I have no experience with this sort of stuff. I would really appreciate any help.

input: length1(20),length2(3); //StopL(500),Proft(1000);

if close<close[200] and close>close[length1] and close<close[length2] and close>open then buy next bar at market;

if close>close[200] and close<close[length1] and close>close[length2] and close<open then sellshort next bar at market;

if barssinceentry>10 then Begin
sell next bar at market;
buytocover next bar at market;
end;

//SetStopLoss(StopL);
//SetProfitTarget(Proft);


That is a strategy I gave away at a webinar a week or two ago. It works well for Crude Oil. I'd give you the Thinkscript if I had it, but I do not program in that language.

Here is what the strategy produces:


Follow me on Twitter Reply With Quote
The following user says Thank You to kevinkdog for this post:





NexusFi Trading Community Platforms and Indicators EasyLanguage Programming > EasyLanguage to Thinkscript


Last Updated on January 21, 2023


© 2023 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts