I have done this but it hasn't changed anything, once the price moves beyond the pending orders threshold it instantly closes the order before any trade is made; am I missing something super obvious?
Best posts made by Zereleth
-
RE: Issues with Pending Ordersposted in Questions & Answers
Latest posts made by Zereleth
-
RE: WMA of variablesposted in Questions & Answers
@roar said in WMA of variables:
iMAOnArray()
Thank you for the help, so would this be functional?
https://fxdreema.com/shared/WxJFGiUod
Defining both values for variable2 and variable3 in different blocks then using them in the final WMA
-
WMA of variablesposted in Questions & Answers
Hello,
I'm just curious if it's possible within FxDreema to make a WMA that operates using a variable rather than price. In this instance I want the WMA to calculate the average of a variable rather than the price over a given period.
In function I am trying to create a variation on a HMA but I am just wondering if FxDreema has this functionality
Pine equivalent would be "variable1 = wma(variable2, variable3)" with variable2 being the values averaged and variable3 being the time period.
Thank you for the help.
-
RE: Written Conditionsposted in Questions & Answers
@Zereleth I believe the practical answer for my question is MathRound(MathSqrt(variable1)) if anyone reads this thread in future and wants a summary. I am just trying to understand how the FxDreema platform functions.
-
RE: Written Conditionsposted in Questions & Answers
@sktsec Let me know if I am being annoying, just trying to comprehend how the modify variable works
In MT4 I would write it out like this
double sqn1 = MathRound(MathSqrt(keh));
When using the modify variable option I can use your suggestion to square it, although im not sure how to round it.
Also how does it modify the variable? Is it each time the script runs eg; if the modify is variable*2 does it make the variable 2 on first run then 4, 8, 16, 32, etc or do all variables reset after each script run.
In this case would it function to write MathSqrt(variable) then later write MathRound(variable) in a connected block would it both square root and round the outcome?
Thank you for the help
-
RE: Written Conditions posted in Questions & Answers
-
RE: Written Conditionsposted in Questions & Answers
@Zereleth To some degree I can code although primarily in Kotlin not MQ, I am just wondering how I would implement things such as rounding and finding the square route of variables within FxDreema if I don't utilise these functions.
For example what would be sqn=round(sqrt(14)) in Pine
@roar You seem quite experienced with this do you have any advice?
-
Written Conditionsposted in Questions & Answers
Hello,
I was just curious where I can learn about the written code blocks such as this example I took from another thread. I am not sure where to read about the FxDreema format to find what I am trying to do

I would like to take a result from a moving average and double the result. I assume to do this I input the result as a variable and use the "adjust the result (optional)" block to x2 the output
-
RE: Red Light, Green Light changing Objectsposted in Questions & Answers
I don't really have a link to a built project I am just suggesting that if a project has two states how would you make an object go from green to red based on the criteria met
For example if the RSI is above 70 change the red object to a green object. Otherwise it's red.
-
Red Light, Green Light changing Objectsposted in Questions & Answers
Hello,
Just interested if anyone has a good visual system setup for their EAs they would be willing to share. I am struggling to see if my conditions are met so want to attach objects that will change colour based on the conditions that are met sort of like a red light green light where if all the green lights align a trade will be opened. Wondered if anyone knew how to do this or had a similar system?
Thank you