ADX from template not quite symmetrical even when it's correct in OppositeBlocks file

For some reason 80 negated to 20 on this non directional indicator. It's weird because I thought it was working right in builder but in this case from template it did not work right. The numbers should both be the same.





//--------------------------------------------------------------------
// Trading rule: Trading signals (On Bar Open)
//--------------------------------------------------------------------
LongEntrySignal = ((Candle pattern 1 bars back is Bullish Engulfing
and (DeMarker(Main chart,34)[1] is falling))
and (ADX(Main chart,14) < 80));

ShortEntrySignal = ((Candle pattern 1 bars back is Bearish Engulfing
and (DeMarker(Main chart,34)[1] is rising))
and (ADX(Main chart,14) < 20));

LongExitSignal = false;

ShortExitSignal = false;







eng3 is the template and bugadx is a bugged strat.

Attachments
eng3.sqx
(2.49 KiB)
bugadx.sqx
(59.84 KiB)
  • Votes 0
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

b
#1

bentra

16.08.2019 04:43

Task created

MF
#2

Mark Fric

16.08.2019 09:18

Status changed from New to Waiting for information

ADX is defined as an oscillator, so it negates like this.


It seems it is a mistake, it shouldn't be an oscillator. This cannot be modified in OppositeBlocks file, we would have to modify definition of snippet.

b
#3

bentra

17.08.2019 02:57
It is a mistake, ADX is not an oscillator. 
MF
#4

Mark Fric

19.08.2019 15:32

Status changed from Waiting for information to Fixed

you are right, it was a mistake. it is fixed.

Votes: 0

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please