Hi guys!
I've been following the progress made in this forum since it's early beginning. It's amazing the quantity of inspiring ideas and incredible tools that were freely put at the disposal of mere mortals.
However there is something that really bothers me: the way we input timeframes in the EA's parameters (and other multiple choice parameters, but mainly the timeframes)
You see, among the bunch of parameters we have to input (well, we don't HAVE to, but as someone who likes to experiment, as I'm sure most of you feel the same, I try a bunch of stuff and change a lot of parameters) one of the most recurrently changes are timeframes. Timeframes for CSS, timeframes for entry points, timeframes for ATR calculations, timeframes for MAs, timeframes for Slope (there's a bunch of them for Baluda's SuperSlope), etc
The methods are usually either by entering a number in minutes (60, 240, 1440, ...), sometimes with a comment above with a reminder of the available periods, so sometimes it it looks like this:
some other times like this
and more recently like this:
Even if we quickly learn the nomenclature, I find it utterly cumbersome to constantly change H4 to H1 then to D1 then to whatever, or inputing 60/240/1440.. I don't know which method I hate the most!
So, in the spirit of sharing, that is what makes this forum so delightful, I don't want to only share my complaints with you, so I want to point to a solution for the consideration of the major contributors that make the most available tools.
OK, AFAIK natively we only have a standard drop-down menu for booleans. It's quick to select True/False, right? What about use the same type of drop-down menus for other common selections, like major currencies, text font size, maybe some standard colours and... ta-daaaa!... Timeframes!
In order to do that we only need to define a list of possible values through "enum", which are assigned a number. Later the program takes decisions based on that number (user selection).
In the Empty4 documentation there is an example with a list of months:
https://docs.mql4.com/basis/types/integer/enumeration
In terms of timeframes this will allow to this:
So, if you like the idea, please take in consideration on future releases. It actually doesn't take long to code, and once it's done it can be used in future Indicators/EAs.
In attachment I add an example (an EA that does nothing except displaying a different message depending on your parameter choices, so you add the EA, press F7, change the parameters, read the message, press F7, etc) where I have a longer list of choices (and use a switch/case command for decision-making) and a shorter list used for readability (using simple IF commands).
PS: Now if someone put this as a Pull-Down menu right there ON THE CHART... boy, I would send him/her a bottle of wine!
Changing input for multiple-choice in EA/Indicators
Jump to
- Welcome
- Board admin messages
- Afterprime
- Funding our Forum. Tommaso needs our help.
- TDesk: A Thomas Special. The greatest trading tool ever.
- Automated trading systems
- ↳ Archived EA's
- ↳ EA's for Dummies.
- ↳ The demo/live money EA results forum
- ↳ Automated Loss Recovery
- ↳ Thingy Bob EA's
- ↳ Pipcruiser's Pipmasher forum
- ↳ Peaky forum
- ↳ Super Slope EA's
- ↳ Coordinated EA Testing Forum
- ↳ Moving Day
- ↳ Trendy Moving Day Adapted
- ↳ Trendy Monster Moving Day
- ↳ The Paycheck Project
- Manual trading systems
- ↳ Captain Jack's forum
- Utilities Indicators and Scripts
- ↳ Indicators
- ↳ Utilities
- ↳ Scripts
- Rene's stuff
- ↳ Auto-trading EA's and EA monitors
- ↳ Chart/template copying and history loading
- ↳ Clocks and calendars
- ↳ Data analysis tools
- ↳ Indicators and matrixes
- Nanningbob's Holy Grail Indicator forum
- ↳ Nanningbob 10.x
- ↳ Bob's individual forum
- ↳ Manual 10.x trading
- ↳ 10.x EA forum
- ↳ 10.x Indi forum
- ↳ 10.7 Auto Traders Forum
- BALUDA'S SUPER CSS-2.0. THE SIMPLEST TRADING SYSTEM EVER
- MQ5 Nuggets for the Dauntless
- Alternatives to Global Prime
- Coders Hangout
- ↳ Ideas for Possible Automation
- ↳ Coding Lessons - info for all
- Alternative platforms
- ↳ cTrader and cAlgo
- ↳ General discussion
- ↳ Indicators
- ↳ Robots
- ↳ JForex
- ↳ LMAX
- ↳ Tradable
- ↳ Protrader
- Know your MT4 platform
- General Forex Discussion
- ↳ Trading journals
- ↳ Finding a new platform
- ↳ Scam broker forum
- Trading Psychology & Money Management
- Macroeconomics and the Forex markets
- Newbie Discussion
- ↳ Automated trading (Rookies)
- ↳ General Discussion (Rookies)
- Lounge
- Commercial wares
- ↳ Beta testing groups
- ↳ Commercial stuff recommended by forum members
- ↳ Members' business to business
- ↳ Commercial EA's and Indi's etc
- ↳ VPS promotions
- ↳ INFINITE WEALTH