Question about writing code in Easy language - MultiCharts | futures io social day trading
futures io futures trading


Question about writing code in Easy language
Updated: Views / Replies:3,474 / 58
Created: by will4 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 100,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
 

Question about writing code in Easy language

  #21 (permalink)
 Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Trading Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 2,137 since Apr 2013
Thanks: 384 given, 1,375 received

will4,

you will have to use the reserved word Close and make sure that you store it in a variable only once on the last bar. Then use this stored value for your order prices.

Regards,

ABCTG

Follow me on Twitter Visit my Facebook Reply With Quote
The following user says Thank You to ABCTG for this post:
 
  #22 (permalink)
sydney,Australila
 
 
Posts: 31 since Jun 2017
Thanks: 13 given, 1 received


ABCTG View Post
will4,

you will have to use the reserved word Close and make sure that you store it in a variable only once on the last bar. Then use this stored value for your order prices.

Regards,

ABCTG

Thanks

How can I be sure that I store it in a variable only once on the last bar?

Regards,
Will

Reply With Quote
 
  #23 (permalink)
 Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Trading Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 2,137 since Apr 2013
Thanks: 384 given, 1,375 received


will4,

you could use the the reserved word once for example together with LastBarOnChart.

Regards,

ABCTG

Follow me on Twitter Visit my Facebook Reply With Quote
The following user says Thank You to ABCTG for this post:
 
  #24 (permalink)
sydney,Australila
 
 
Posts: 31 since Jun 2017
Thanks: 13 given, 1 received


ABCTG View Post
will4,

you could use the the reserved word once for example together with LastBarOnChart.

Regards,

ABCTG

Hi
I have written two programs.On the first one the limit order is moving and on the second that I added once lastbaronchart ,the order disappears as the price moves

1)

variables:
var1 (0),
var2 (0),
atsStatus (0);

atsStatus = GetAppInfo(aiStrategyAuto);
If atsStatus=1 then begin
var2=Close+300points ;
var1=Close-300 points;

buy 1 contract next bar at var1 limit ;
sell 1 contract next bar at var2 limit ;
end;

2)

variables:
var1 (0),
var2 (0),
atsStatus (0);

atsStatus = GetAppInfo(aiStrategyAuto);
once (LastBarOnChart =true) begin

If atsStatus=1 then begin
var2=Close+300 points ;
var1=Close-300 points;

buy 1 contract next bar at var1 limit ;
sell 1 contract next bar at var2 limit ;
end;
end;

Reply With Quote
 
  #25 (permalink)
 Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Trading Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 2,137 since Apr 2013
Thanks: 384 given, 1,375 received

will4,

the code is doing exactly what you wrote it to do. In the first you constantly adjust the price, hence the order gets updated and in the second you don't keep the order alive.

You might want to read about order lifetime and keeping them alive in the MC wiki or help files.

Regards,

ABCTG

Follow me on Twitter Visit my Facebook Reply With Quote
The following user says Thank You to ABCTG for this post:
 
  #26 (permalink)
sydney,Australila
 
 
Posts: 31 since Jun 2017
Thanks: 13 given, 1 received


ABCTG View Post
will4,

the code is doing exactly what you wrote it to do. In the first you constantly adjust the price, hence the order gets updated and in the second you don't keep the order alive.

You might want to read about order lifetime and keeping them alive in the MC wiki or help files.

Regards,

ABCTG

I will read them later ,I want to put a traling stop ,are you aware of any indicator or strategy that is currently in Easy language and I can use it ?

Reply With Quote
 
  #27 (permalink)
 Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Trading Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 2,137 since Apr 2013
Thanks: 384 given, 1,375 received

will4,

in my opinion not every exit works well with every entry and you will likely have to do some research here. There are reserved words for a trailing stop (like setdollartrailing and setpercenttrailing) and some build in strategies that you can explore, plus you'll likely find a lot of examples via Google.

Regards,

ABCTG

Follow me on Twitter Visit my Facebook Reply With Quote
The following user says Thank You to ABCTG for this post:
 
  #28 (permalink)
sydney,Australila
 
 
Posts: 31 since Jun 2017
Thanks: 13 given, 1 received


ABCTG View Post
will4,

in my opinion not every exit works well with every entry and you will likely have to do some research here. There are reserved words for a trailing stop (like setdollartrailing and setpercenttrailing) and some build in strategies that you can explore, plus you'll likely find a lot of examples via Google.

Regards,

ABCTG

Hi, I searched for lectures or texts in MC wiki and help files about"order lifetime and keeping them alive in the MC wiki or help files".I could not find anything .can you tell me what I should read or can you please send me the link so I can study it?

Reply With Quote
 
  #29 (permalink)
 Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Trading Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 2,137 since Apr 2013
Thanks: 384 given, 1,375 received

Hi will4,

I am sorry, but I don't have the links handy and would have to dig myself through the documentation, too.

In general Multicharts will keep orders alive as long as the conditions that sent the orders are still present.
That explains the behavior of your second code i.e. why it cancels the order after one bar.

Regards,

ABCTG


will4 View Post
Hi, I searched for lectures or texts in MC wiki and help files about"order lifetime and keeping them alive in the MC wiki or help files".I could not find anything .can you tell me what I should read or can you please send me the link so I can study it?


Follow me on Twitter Visit my Facebook Reply With Quote
The following user says Thank You to ABCTG for this post:
 
  #30 (permalink)
sydney,Australila
 
 
Posts: 31 since Jun 2017
Thanks: 13 given, 1 received



ABCTG View Post
Hi will4,

I am sorry, but I don't have the links handy and would have to dig myself through the documentation, too.

In general Multicharts will keep orders alive as long as the conditions that sent the orders are still present.
That explains the behavior of your second code i.e. why it cancels the order after one bar.

Regards,

ABCTG

Hi, Thanks for your reply
How can I keep the order alive? what is the function or reserve word that I can use to keep the order alive?

Reply With Quote

Reply



futures io > > > > Question about writing code in Easy language

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

futures io is celebrating 10-years w/ over $18,000 in prizes!

Right now
 

$250 Amazon Gift Cards with our "Thanks Contest" challenge!

Right now
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Easy Language code into Thinkscript sboarder13 ThinkOrSwim 20 November 22nd, 2016 01:47 AM
How to code events in sequence with Easy Language jpeg33 MultiCharts 3 October 27th, 2016 01:21 AM
RSI Cumulative Easy Language code vanzolini TradeStation 5 December 18th, 2015 02:33 PM
Easy Language code help piko873 EasyLanguage Programming 2 November 6th, 2013 11:09 AM
Easy Language code question quantismo EasyLanguage Programming 3 April 3rd, 2012 09:36 PM


All times are GMT -4. The time now is 07:03 AM. (this page content is cached, log in for real-time version)

Copyright © 2020 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