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


How to code events in sequence with Easy Language
Started: by jpeg33 Views / Replies:399 / 3
Last Reply: 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

  #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
 
  #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,234 since Apr 2013
Thanks: 199 given, 694 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:
 
  #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:
 
  #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 > > > > 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)
 

NinjaTrader 8: Tips and Tricks (part 2)

Mar 2
 

An Afternoon With FIO member @michaelleemoore

Elite only
 

Jigsaw Trading: Keys to successfully trading the open

Mar 9

Macro view: Trump Market Risk w/Piers Curran @ Amplify Trading

Elite only

Reading the Psychology of the Market w/Brett Steenbarger & Trading Technologies

Elite only

Hybrid Machine Learning (R and TradeStation) w/Murray Ruggiero

Elite only

Spring Grains Outlook w/Sean Lusk @ Walsh Trading

Elite only
     

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 03:12 PM.

no new posts
Page generated 2017-02-26 in 0.08 seconds with 27 queries on phoenix via your IP 54.204.130.94