How to code events in sequence with Easy Language - futures io
futures io futures trading



How to code events in sequence with Easy Language


Discussion in MultiCharts

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




Welcome to futures io: the largest futures trading community on the planet, with well over 125,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)

 
Search this Thread
 

How to code events in sequence with Easy Language

(login for full post details)
  #1 (permalink)
Seattle+Wash/USA
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Trading: Futures
 
Posts: 8 since May 2013
Thanks: 7 given, 6 received

I would like to program events in order much like a combination lock. Event A (1st and only 1st), then look for Event B ( Event B must be 2nd and only 2nd), then after that, Event C which triggers the entry. If any of the Events are out of order, or say the 2nd event doesn't hit it's mark then the setup resets and looks for Event A again.

Not like an additive solution but like a sequential one. Think combination lock R-20, L-3, R-11.... If you go too far half way through you have to clear it and start over.

Any Ideas if EasyLanguage can do this and could you point me to where to begin? Thanks and Much appreciated!

I should add that when I say "Event" I mean any signal or indicator based event - not to be confused with a news event.

Started this thread Reply With Quote

Journal Challenge February 2021 results (so far):
Competing for $1500 in prizes from Topstep
looks_oneSBtrader82 's Trading Journalby SBtrader82
(153 thanks from 29 posts)
looks_twoJust BEING a Trader: Letting Go!!by iqgod
(111 thanks from 32 posts)
looks_3Wisdom is Emptinessby Mtype
(68 thanks from 25 posts)
looks_4Deetee’s DAX Trading Journal (time based)by Deetee
(31 thanks from 16 posts)
looks_5Journal for peanuts1956by peanuts1956
(23 thanks from 13 posts)
 
 
(login for full post details)
  #2 (permalink)
 
 
Posts: 2,230 since Apr 2013
Thanks: 409 given, 1,470 received

jpeg33,

you can use boolean variables (i.e. true/false ones) for each event/condition. After the first event you'd set the first variable to true and only if this variable is true the second event can set the second variable to true. If the second event occurs without the first variable being true, nothing happens. Similar for the third event, with the slight change that you'd reset variable one back to false in case the third event occurs with variable one being true, but variable two being false.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
The following user says Thank You to ABCTG for this post:
 
(login for full post details)
  #3 (permalink)
Seattle+Wash/USA
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Trading: Futures
 
Posts: 8 since May 2013
Thanks: 7 given, 6 received


ABCTG- Thanks! I'll head that direction.. Best!

Started this thread Reply With Quote
The following user says Thank You to jpeg33 for this post:
 
(login for full post details)
  #4 (permalink)
Chicago, IL, USA
 
 
Posts: 2 since Oct 2016
Thanks: 0 given, 0 received

All you need is a single state variable. Initialize to 0 and increment after each event. This way you always know your place in the sequence.

Reply With Quote


futures io Trading Community Platforms and Indicators MultiCharts > How to code events in sequence with Easy Language


Last Updated on October 27, 2016


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Journal Challenge w/$1500 prizes from Topstep!

February
 

Identifying Setups & Targets Using Profile Charts w/Trevor & Tradovate

Feb 25
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
     



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