Hello guys
I have following problem. I want to have a code for an opening order for following criteria:
EMA8 has to be higher than EMA14 but also with at least 5% or a certain value.
This is working fine but doesn't includes the 5% or a value:
longCondition1 = ema(close, 8) > ema(close, 14)
So I tried something like this for the 5%:
longCondition1 = ema(close, 8) > (ema(close, 14) * 1.05)
longCondition1 = ema(close, 8) > ((ema(close, 14) + (ema(close,14) * 0.05))
And I tried this for the value of for example 200:
longCondition1 = ema(close, 8) > (ema(close, 14) + 200)
I really can't figure it out.
May someone can help me please..