vortex bug


This is supposed to be symmetrical but isn't:

//--------------------------------------------------------------------
// Trading rule: Trading signals (On Bar Open)
//--------------------------------------------------------------------                   
LongEntrySignal = True;

ShortEntrySignal = True;

LongExitSignal = Vortex(Subchart1, D1, VortexDowntrendPrd1)[1] is in Down Trend;

ShortExitSignal = Vortex(Subchart1, D1, VortexDowntrendPrd1)[1] is in Down Trend;




Is actually verified wrong in mql4... the conditions are exactly the same....


   //------------------------
   // Rule: Trading signals
   //------------------------
if (sqIsBarOpen()) {
     // init signals only on bar open 
     LongEntrySignal = (true);

     ShortEntrySignal = (true);

     LongExitSignal = iCustom(Subchart1Symbol, Subchart1Timeframe, "SqVortex",VortexDowntrendPrd1,1 ,1)
 >
iCustom(Subchart1Symbol, Subchart1Timeframe, "SqVortex",VortexDowntrendPrd1,0,1);

     ShortExitSignal = iCustom(Subchart1Symbol, Subchart1Timeframe, "SqVortex",VortexDowntrendPrd1,1 ,1)
 >
iCustom(Subchart1Symbol, Subchart1Timeframe, "SqVortex",VortexDowntrendPrd1,0,1);

   } 










Attachments
  • Votes +4
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

b
#1

bentra

25.07.2022 01:58

Task created

b
#2

bentra

25.07.2022 02:00
Voted for this task.
Bt
#3

beetrader

25.07.2022 15:51
Voted for this task.
o
#4

Enric

01.08.2022 11:50
Voted for this task.
E
#5

Emmanuel

06.08.2022 15:34
Voted for this task.
IH
#6

clonex / Ivan Hudec

23.08.2022 10:27

Attachment VortexDowntrend.java added

VortexDowntrend.java
(1.38 KiB)
Pripajam opraveny java file
MF
#7

Mark Fric

31.08.2022 09:44

Status changed from New to Fixed


Votes: +4

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please