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

Go Back   futures.io

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > MultiCharts


How to code events in sequence with Easy Language
Started:October 23rd, 2016 (07:14 PM) by jpeg33 Views / Replies:362 / 3
Last Reply:October 27th, 2016 (01:21 AM) Attachments:0

Welcome to futures.io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • 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, and we will never resell your private information.

-- Big Mike
     

Reply
 
Thread Tools Search this Thread

How to code events in sequence with Easy Language

Old October 23rd, 2016, 07:14 PM   #1 (permalink)
Elite Member
Seattle+Wash/USA
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Favorite Futures: Futures
 
Posts: 3 since May 2013
Thanks: 5 given, 3 received

How to code events in sequence with Easy Language

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.


Last edited by jpeg33; October 23rd, 2016 at 10:42 PM. Reason: for added detail
Reply With Quote
     

Old October 24th, 2016, 06:07 AM   #2 (permalink)
 Vendor: abctradinggroup.com 
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,151 since Apr 2013
Thanks: 191 given, 648 received

Answer
This post has been selected as an answer to the original posters question Answer

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

Reply With Quote
     
The following user says Thank You to ABCTG for this post:
     

Old October 24th, 2016, 09:46 AM   #3 (permalink)
Elite Member
Seattle+Wash/USA
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Favorite Futures: Futures
 
Posts: 3 since May 2013
Thanks: 5 given, 3 received


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

Reply With Quote
     
The following user says Thank You to jpeg33 for this post:
     

Old October 27th, 2016, 01:21 AM   #4 (permalink)
Trading Apprentice
Chicago, IL, USA
 
Futures Experience: Advanced
Platform: MultiCharts
Favorite Futures: ES, NQ, CL
 
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
     

Reply



futures.io > Futures Trading, News, Charts and Platforms > Platforms and Indicators > MultiCharts > How to code events in sequence with Easy Language

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Al Brooks: Stop Losing when a Good Trade goes Bad, Correcting Mistakes

Elite only
 

Trading Technologies: Algo Design Lab hands-on

Dec 13

Normal webinar schedule resumes after the holidays

January
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Easy Language code into Thinkscript sboarder13 ThinkOrSwim 20 November 22nd, 2016 01:47 AM
RSI Cumulative Easy Language code vanzolini TradeStation 5 December 18th, 2015 02:33 PM
Convert Easy Language code into Thinkscript study ckajrtx ThinkOrSwim 0 May 10th, 2014 02:07 AM
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 06:01 PM.

Copyright © 2016 by 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 2016-12-08 in 0.09 seconds with 27 queries on phoenix via your IP 54.159.129.152