NexusFi: Find Your Edge


Home Menu

 





How to code events in sequence with Easy Language


Discussion in MultiCharts

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




 
Search this Thread

How to code events in sequence with Easy Language

  #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

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
Exit Strategy
NinjaTrader
MC PL editor upgrade
MultiCharts
Better Renko Gaps
The Elite Circle
Trade idea based off three indicators.
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Diary of a simple price action trader
26 thanks
Just another trading journal: PA, Wyckoff & Trends
21 thanks
My NQ Trading Journal
19 thanks
Tao te Trade: way of the WLD
16 thanks
HumbleTraders next chapter
9 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627

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
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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts