Pushing Community Power EA to the next level (Expressions Engine)
How can we do it? Through an Expressions Engine!
A built-in Expression Engine will do two things:
- Give nearly endless possibilities to creative Traders
- Reduce the development workload for Andrey (afterwards)
Other possible effects
- Split EA users into groups
A brief description:
We write mathematical and calculation logic.
Example: If you have two MA indicators and you want to ask the expert when the first one is greater than the second one, then something should be done, you write in the expression field "MA1>MA2".
There are two kinds of expressions in mathematics: Logical and Numerical. Logical expressions are those that have a true or false result and can be a combination of complex logical expressions. For example, if "X>12 AND Y-3<8".
Numerical expressions are those that return a number as the result. This is an example of numerical expression:
(X-2)e3 * (log(2)-6) + Sin(2π) that could be written like this:
(X-2)*MathExp[3] * (MathLog[2] - 6) + MathSin[2*pi]
The engine needs to support three kinds of expressions: Logical, Functional and Conditional/If Expressions.
Image the possibilities (these are only a few):
- Find any candlestick pattern (or anything else you want)
- Use any (open) indicator
- Any Signal, any Filter
- Any Risk and Money Management
- Trail anything by any value
- Close by anything
- Tick trading
Even total crazy thing become possible and anybody with only little code experience can test his idea by using the expression engine together with the options already given by Community Power EA. Beginners can ask experienced users how to realize a strategy. This can organize us all into groups: Beginners, EA users, engine Users, admin group and Andrey (as his own group, with a godlike status worshiped by us all).
;-)
Hmm, just thinking. There are tools out there, which do the "search" for a strategy and you can export it as an expression.
* https://strategyquant.com/
* https://www.buildalpha.com/
I know from buildalpha for example, that 20x=profit/max_dd (in a year) is achievable.
But tbh, I think writing a python script, which converts the expression to a mql code is easier and less cluttered...
I have tested strategyquant about a year ago and I was not really happy with it. They could not keep their promises and the price of their software suite was rather high - but they have this nice free tool algowizard.io (which was buggy too - but at least free). Buildalpha is using the same approach but they aren't offering a free demo. It's the cat in the sack.