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


How to code events in sequence with Easy Language
Created: by jpeg33 Views / Replies:432 / 3
Updated: 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 09:42 PM. Reason: for added detail
Reply With Quote
 
  #2 (permalink)
Elite Member
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,280 since Apr 2013
Thanks: 203 given, 721 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)
 

Market Analysis w/Dave Forss @ IQFeed

Apr 25
 

Introducing iSystems with Stage 5 Trading

Apr 27

*NEW* FIO Journal Challenge featuring NinjaTrader ($2,000+ of prizes)

May

Prototyping Python Strategies (part 2) w/Ran Aroussi

Elite only

Ask Me Anything w/Raymond Deux @ NinjaTrader

May 3

An Afternoon with FIO member Softsoap

Elite only
 

Machine Learning & Data Mining Bias w/Kris Longmore @ Robot Wealth

Elite only

Brannigan Barrett (TBA)

Elite only

FIO member Gomi (TBA)

Elite only

FuturesTrader71 (TBA)

Elite only

EasyLanguage Programming w/Chris @ ABC Trading Group

Elite only

Portfolio Diversification w/Brendon Delate

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Easy Language code into Thinkscript sboarder13 ThinkOrSwim 20 November 22nd, 2016 12:47 AM
RSI Cumulative Easy Language code vanzolini TradeStation 5 December 18th, 2015 01:33 PM
Convert Easy Language code into Thinkscript study ckajrtx ThinkOrSwim 0 May 10th, 2014 01:07 AM
Easy Language code help piko873 EasyLanguage Programming 2 November 6th, 2013 10:09 AM
Easy Language code question quantismo EasyLanguage Programming 3 April 3rd, 2012 08:36 PM


All times are GMT -4. The time now is 07:55 AM.

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