@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
@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
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.
@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.
@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
@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?
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
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.
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
I have a 50 line Pine Indicator and i'm wondering if anyone would be interested in converting it into an EA or helping me do so, I don't mind if it's on a commission basis
I can send over my version of the London Breakout Strategy if you'd like but I didn't find it to be profitable
@roar Ah thanks thats really helpful, I found it and gave it a try in MT4 but it only seemed to run it once 

Any idea why that might be?
@roar Out of interest how did you reach that genetic based algorithm option? Is it an MT5 thing? I'm using MT4 and don't have the option it seems but I also don't know what that even means so it's probably for the best 
@l-andorrà I tried this but it doesn't seem to be working or making any trades, i'd think trying to make a pass period would be a really common desire on this site but I can't find any other posts https://fxdreema.com/shared/VNIoiPzjc
@l-andorrà Sorry I think I might have used poor language, I don't mean slippage but i'm referring to a similar thing. Would having a bulkier setup not make the trades take longer to open as it has to run a larger script each tick? Also that answers my question about the MACD thank you i'll work on that
You're like my savoiur on this forum lmfao
@l-andorrà Wouldn't that cause excessive bulk/slippage?
@l-andorrà So I looked it up (http://fxdreema.com/forum/topic/3449/CROSS-WIDTH-function-do-not-work/3) and it turns out the cross width isn't what I thought it was, it's not a grace period due; as FxDreema put it: "it's something useless I think. It compares 2 candles far away from each other and does not care of anything in between. All candles between 1 and 10 are just discarded."
Does anyone know how I can add a grace period any other way?
@l-andorrà Sorry for the late reply, I tried what you said but my bot doesn't seem to be trading still. Any ideas? https://fxdreema.com/shared/UbwBg2jpe
I imagine this has been asked before but i'm just interested, how do you guys come up with your ideas? I'm struggling more with finding good strategies than actually making them.