EasyLanguage question-help - TradeStation | futures io social day trading
futures io futures trading


EasyLanguage question-help
Updated: Views / Replies:412 / 5
Created: by auato 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
 

EasyLanguage question-help

  #1 (permalink)
Trading Apprentice
Bradenton
 
Futures Experience: None
Platform: MultiCharts
Favorite Futures: FTSE MIB
 
Posts: 29 since May 2016
Thanks: 6 given, 4 received

EasyLanguage question-help

Hi,
I just started to study EL few days ago.
How is it possible to implement the LARGE built-in function in EXCEL in EL in a smart way?

Thank you all,
auato

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,527 since Apr 2013
Thanks: 229 given, 854 received
Forum Reputation: Legendary

auato,

it depends a bit on what exactly you need and what you are looking at. If you have your variables in an array you can use the build in function NthExtremes for example.

There might be better ways to accomplish what you need, if you could provide an example of what exactly you are trying to do someone might be able to steer you in the right direction.

Regards,

ABCTG

Reply With Quote
The following user says Thank You to ABCTG for this post:
 
  #3 (permalink)
Trading Apprentice
Bradenton
 
Futures Experience: None
Platform: MultiCharts
Favorite Futures: FTSE MIB
 
Posts: 29 since May 2016
Thanks: 6 given, 4 received


Thank you,

My idea is to have a descending sort among 4 values which they are coming from an experimental TS. The TS returns 4 values, two oh these ones are related to the maximum we suppose will occur for the next bar and the other two ones related to the minimum. These 4 values are not sorted and I have to sort correctly in order to define clearly which are the maximum values and what are related to the minimum. In Excel I could easly use the built-in LARGE function with "LARGE(A1:A4, 1) LARGE(A1:A4, 2) LARGE(A1:A4, 3) LARGE(A1:A4, 4)" to have in the same order MaxMax, MaxMed, MinMed, MinExt.
In EL I am thinking to use Array in this way (please let me know if there are mistakes):

//t defines the array
Array: myArray [3],0;

//put all final values from A1 to A4 variables into myArray to sort them correctly
myArray[0]=A1;
myArray[1]=A2;
myArray[2]=A3;
myArray[3]=A4;

SortArray (myArray, 3, 1);

MaxExt= myArray[0];
MaxMed=myArray[1];
MinMed= myArray[2];
MinExt= myArray[3];


Thank yoy,
Ciro


Last edited by auato; May 29th, 2016 at 08:27 AM.
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,527 since Apr 2013
Thanks: 229 given, 854 received
Forum Reputation: Legendary

Ciro,

the code looks like it would do what you have in mind, but you might want to test it with a simple example by giving A1 to A4 some values

Regards,

ABCTG

Reply With Quote
 
  #5 (permalink)
Trading Apprentice
Bradenton
 
Futures Experience: None
Platform: MultiCharts
Favorite Futures: FTSE MIB
 
Posts: 29 since May 2016
Thanks: 6 given, 4 received

Hi everyone,
I tried my experiment and I can confirm that it is a working solution. So If you want to sort some figures as for the Large function in Excel, you can use the SortArray as shown.

Auato

Reply With Quote
The following user says Thank You to auato for this post:
 
  #6 (permalink)
Trading Apprentice
Bradenton
 
Futures Experience: None
Platform: MultiCharts
Favorite Futures: FTSE MIB
 
Posts: 29 since May 2016
Thanks: 6 given, 4 received

errata corrige

as I wrote above, the method is good to get an equivalent LARGE() function in EL but I add that if you want to use multicharts' PL you have to change the statment:

SortArray (myArray, 3, 1);

into

Array_sort(myArray, 0, 3, false);

Just for your information... and I apologize to you if I used a non appropriate section in this forum

Reply With Quote

Reply



futures io > > > > EasyLanguage question-help

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Easylanguage help Hodon TradeStation 1 January 14th, 2016 12:25 PM
Basic question on EasyLanguage cruncher EasyLanguage Programming 3 October 31st, 2015 02:44 PM
Question on EasyLanguage (OnDestroy) hoeman EasyLanguage Programming 1 November 15th, 2010 10:36 PM
Easylanguage vs. C++ Cogito ergo sum EasyLanguage Programming 10 August 2nd, 2010 03:12 PM


All times are GMT -4. The time now is 09:44 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-12 in 0.09 seconds with 19 queries on phoenix via your IP 54.221.93.187