Strategy Symmetry not accurate: Do not replace = with <>

The following type of strategy has incorrect entry symmetry. Do not replace = with <>


LongEntrySignal = ((LWMA(Main chart,40)[3] = High(Main chart)[1]) and (SMMA(Main chart,14)[1] is falling for 50 bars at 2 bar ago)); ShortEntrySignal = ((LWMA(Main chart,40)[3] <> Low(Main chart)[1])


Attachments
No attachments
  • Votes +1
  • Project StrategyQuant X
  • Type Bug
  • Status Refused
  • Priority Normal

History

m
#1

murty

30.06.2019 23:45

Task created

m
#2

murty

30.06.2019 23:45
Voted for this task.
MF
#3

Mark Fric

25.07.2019 13:02

Status changed from New to Refused

the opposite of = is usually <>, but it depends on circumstances.


It is not possible to set it generally right, that's why you should use signals instead of random comparisons. I also think that comparisons Equals/Not equals shouldn't be used in conditions. Crossings and <,<=, >, >= should be enough.



Votes: +1

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please