b131 Momentum in signals.

I have checked the last four signals. And the generated strategies seem to use momentum indicators inappropriately.



ex1.

LongEntrySignal = (((Close(Main chart)[1] is rising for 2 bars)
   and (Momentum(Main chart,MomLowerPeriod, PRICE_CLOSE)[3] < 180))
   and (Close(Main chart)[1] is falling for 3 bars at 3 bar ago));

ShortEntrySignal = (((Close(Main chart)[1] is falling for 2 bars)
   and (Momentum(Main chart,MomLowerPeriod, PRICE_CLOSE)[3] < 20))
   and (Close(Main chart)[1] is rising for 3 bars  at 3 bar ago));

ex2.

LongEntrySignal = (((Momentum(Main chart,MomFallingPeriod, PRICE_OPEN)[1] is falling)
   and (Momentum(Main chart,MomRisingPeriod, PRICE_CLOSE)[1] is rising))
   and (Momentum(Main chart,MomFallingPeriod2, PRICE_CLOSE)[5] is falling));

ShortEntrySignal = (((Momentum(Main chart,MomFallingPeriod, PRICE_OPEN)[1] is falling)
   and (Momentum(Main chart,MomRisingPeriod, PRICE_CLOSE)[1] is rising))
   and (Momentum(Main chart,MomFallingPeriod2, PRICE_CLOSE)[5] is falling));

ex3.
// Trading rule: Trading signals (On Bar Open)
//--------------------------------------------------------------------                   
LongEntrySignal = (((Low(Main chart)[5] < Highest(Main chart, Period, PRICE_WEIGHTED)[1])
   and (Momentum(Main chart,MomHigherPeriod, PRICE_TYPICAL)[3] > 20))
   and (HeikenAshiClose(Main chart)[1] is rising for 4 bars  at 4 bar ago));

ShortEntrySignal = (((High(Main chart)[5] > Lowest(Main chart, Period, PRICE_WEIGHTED)[1])
   and (Momentum(Main chart,MomHigherPeriod, PRICE_TYPICAL)[3] > 180))
   and (HeikenAshiClose(Main chart)[1] is falling for 4 bars at 4 bar ago));
Attachments
Strategy 420218.sqx
(115.77 KiB)
Strategy 249277.sqx
(87.08 KiB)
Strategy 122354.sqx
(95.29 KiB)
Strategy 237277.sqx
(111.05 KiB)
mom.png
(12.03 KiB)
Strategy 36210.sqx
(96.39 KiB)
Strategy 318372.sqx
(84.51 KiB)
  • Votes 0
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

e
#1

eastpeace

13.04.2021 10:18

Task created

MF
#2

Mark Fric

12.05.2021 13:10
by incorrectly you mean incorrect comparison value opposite block? should be 


LongEntrySignal = (Momentum(Main chart,MomLowerPeriod, PRICE_CLOSE)[3] < 180))
ShortEntrySignal = (Momentum(Main chart,MomLowerPeriod, PRICE_CLOSE)[3] < 20))

 should be 

LongEntrySignal = (Momentum(Main chart,MomLowerPeriod, PRICE_CLOSE)[3] < 180))
ShortEntrySignal = (Momentum(Main chart,MomLowerPeriod, PRICE_CLOSE)[3] < 180))

Can you confirm this?
e
#3

eastpeace

13.05.2021 02:08

Since 100 is the central axis of the SQ's momentum , based on the principle of symmetry, I think these are the right way.


LongEntrySignal = (Momentum(Main chart,MomLowerPeriod, PRICE_CLOSE)[3] > 180))
ShortEntrySignal = (Momentum(Main chart,MomLowerPeriod, PRICE_CLOSE)[3] < 20))


or 


LongEntrySignal = (Momentum(Main chart,MomLowerPeriod, PRICE_CLOSE)[3] > 150))
ShortEntrySignal = (Momentum(Main chart,MomLowerPeriod, PRICE_CLOSE)[3] < 50))


If long signal is "<180", short signal is "<20". Obviously, in addition to not being suitable for momentum, there is logical error.


BTW, it is very important to clarify the value of  central axis for oscillators or swing indicators. Like 0, 50, 100 or other values.


MF
#4

Mark Fric

17.05.2021 09:03

Status changed from New to Fixed

there was a discussion especially about Momentum indicator in other tasks, and some people suggested that it shouldn't be negated at all.


But the MT4 version of Momentum we are using is oscillating and should be negated as mentioned:

LongEntrySignal = (Momentum(Main chart,MomLowerPeriod, PRICE_CLOSE)[3] > 180))
ShortEntrySignal = (Momentum(Main chart,MomLowerPeriod, PRICE_CLOSE)[3] < 20))

so I fixed the opposite blocks to reflect this.

As for oscillators - of course the central axis has to be configured correctly, and it is for all the oscillators used in SQ.

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