Condition Check and Formula Calculations using Terminal Variables
-
Hi,
I have faced a few problems so far regarding terminal variables and using them to check conditions or calculate formulas.
I'd be glad if you could shed some light on these matters. Apologies first, for the long post ahead
Please note that shared copies are not strategies, just simple conditions or order placement commands for demonstration purposes only.
-
Checking condition using a Boolean terminal variable:
https://fxdreema.com/shared/3NvSOAKEd
I use terminal variables (as inputs) for condition check (and changing lot size), as attached.
http://i58.tinypic.com/2wovl0h.png
There is no difference if another variable of an integer type is used, no orders are placed. Would you please kindly check why no order executes? -
Using terminal variable to calculate lot volume size:
This formula actually uses account balance to generate proper lot size:
loSize = AccountBalance * 0.000025
So, if account balance goes up or down, lots size changes respectfully, by a custom factor.
https://fxdreema.com/shared/tOeTGVRfb
http://i58.tinypic.com/27zgas1.png
http://i58.tinypic.com/23wv1bl.png
Just like the previous example, no order happens. -
Formulas
I tend to see Formula block as the heart of this fabulous EA builder, especially when trades are based on custom complex formulas, this block plays an enormous rule.
Formula block is currently limited to only two operands which makes it so hard to generate complex formulas.
I know, it might be possible and even easier coding the formula by adding custom MQL code, but still somehow it doesn't feel right. I wonder if you have plans to take this block one step further. -
Since I mainly use Desktop version, I noticed there is no MQL prefix field while defining variables in web based version of fxDreema. Am I wrong or is it placed somewhere else?
-
I tried to import Desktop generated MQL to web app (and vice versa) but an error occurred. Are these two apps (web version and Desktop version) incompatible?
I'm sorry this got too long, but I believe some other users may have the same questions as well. I thought it would be better to share them publicly in detail and ask for your guidance.
Many many thanks in advance Radoslav, you are an exceptional outstanding talented guy, with a great product

-
-
Terminal Variables are NOT those Constants/Variables. Terminal Variables for EAs are like cookies (in browsers), but you don't need to use those at all.
This is what you can do instead: http://prntscr.com/8ps91b
-
Oh thank you, my bad, I understand now. Changed as you suggested and it works

I know you could be terribly busy, but would be glad if you also answered highlighted 3 to 5 quotes.