NexusFi: Find Your Edge


Home Menu

 





How to code events in sequence with Easy Language


Discussion in MultiCharts

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




 
Search this Thread
  #1 (permalink)
 jpeg33 
Seattle+Wash/USA
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Trading: Futures
Posts: 8 since May 2013
Thanks Given: 7
Thanks Received: 6

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

 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
The Pivot Point 113.6³ — Navigating the Prediction of …
26 thanks
Sober Journey With S&P
16 thanks
The Confluence Meter: A Multi-Layered Signal Framework B …
11 thanks
NT8 color choices
10 thanks
Volume Indicators
7 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,447 since Apr 2013
Thanks Given: 493
Thanks Received: 1,639

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 X Reply With Quote
Thanked by:
  #3 (permalink)
 jpeg33 
Seattle+Wash/USA
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Trading: Futures
Posts: 8 since May 2013
Thanks Given: 7
Thanks Received: 6


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


Started this thread Reply With Quote
Thanked by:
  #4 (permalink)
propch
Chicago, IL, USA
 
Posts: 2 since Oct 2016
Thanks Given: 0
Thanks Received: 0

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




Last Updated on October 27, 2016


© 2026 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 - Downloads - Top
no new posts