ATR multiplication
1 replies
boraucak
9 years ago #112838
hello,
I want to write a rule like this:
IF,
ATR(1)xATR(2) > ATR(3)
then,
bla bla
but no signal is produced,
I used,
“filter” – “functions” – parameter 1 for atr(1) and parameter 2 for atr(2) > “indicators atr(3)
but doesnt seem to work,
what am I doing wrong?
best,
Mark Fric
9 years ago #127293
Hello,
this will not work because this condition is never true, you are multiplying two numbers smaller than 1, the result is even smaller number.
Let’s say ATR is 0.1.
0.1 * 0.1 = 0.01, it will be never bigger than ATR.
Mark
StrategyQuant architect
boraucak
9 years ago #127295
hello Mark, thank you for the fast response,
numbers were for example only,
my real numbers are atr11xatr69>atr85 for long,
and vice versa,
best,
Mark Fric
9 years ago #127299
it is still the same problem. ATR numbers are usually numbers below 1, so your condition will be never valid.
Try making an average – (ATR1 + ATR2) / 2 instead of multiplication.
Mark
StrategyQuant architect
boraucak
9 years ago #127424
hello Mark,
as you may recall, I sent you an example of an EA with ATR multiplication,
I am looking forward for your help in this,
best ,
Mark Fric
9 years ago #127457
Hello,
sorry, I cannot find it, could you resend it or attach it here?
Mark
StrategyQuant architect
boraucak
9 years ago #127494
Mark Fric
9 years ago #127589
ok, I’m posting a sample (not complete).
If you are struggling with finding mathematical functions in EA Wizard, they are in Functions -> Multiplication.
Mark
StrategyQuant architect
boraucak
9 years ago #127603
Dear Marc,
that’s exactly I tried, but when I save as signal indicator,
there is no result on mt4 on any timeframe
(I changed “then” rules to draw up,
I tried both up and down for tema rule,
Mark Fric
9 years ago #127623
can you post your sqw file here?
I’m not sure what exactly you have done.
Mark
StrategyQuant architect
Viewing 9 replies - 1 through 9 (of 9 total)