Trading Articles
Article Categories
Article Tools
EasyLanguage to Thinkscript
Updated January 21, 2023
trending_up
163 views
thumb_up
1 thanks given
group
2 followers
forum
1 posts
attach_file
1 attachments
Welcome to futures io: the largest futures trading community on the planet, with well over 150,000 members
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 and simple.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
EasyLanguage to Thinkscript
(login for full post details)
#1 (permalink )
Phoenix, Arizona
Posts: 1 since Jan 2023
Thanks: 0 given,
0
received
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);
Can you help answer these questions from other members on futures io?
Best Threads (Most Thanked) in the last 7 days on futures io
(login for full post details)
#2 (permalink )
Posts: 3,465 since Jul 2012
Thanks: 1,827 given,
6,985
received
DeanW
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:
The following user says Thank You to kevinkdog for this post:
Last Updated on January 21, 2023
Ongoing