HeikenAshiHigh symmetry issue

This doesn't quite seem symmetrical:


LongEntrySignal = ((HeikenAshiHigh(Main chart)[3] crosses above CloseDaily(Main chart)[1]) and (EMA(Main chart,28)[1] is rising for 24 bars)); ShortEntrySignal = ((HeikenAshiHigh(Main chart)[3] crosses below CloseDaily(Main chart)[1]) and (EMA(Main chart,28)[1] is falling for 24 bars));


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

History

b
#1

bentra

28.07.2019 03:57

Task created

MF
#2

Mark Fric

29.07.2019 12:34

Status changed from New to Waiting for information

it would be easier if you attach the strategy, not only write pseudo code. I can then check what block it actually is.


In my tests HeikenAshiHigh is correctly negated to HeikenAshiLow.


Are you using the latest SQ version ? Is it clean installation or update?

b
#3

bentra

29.07.2019 20:32

Attachment Strategy 0211196.sqx added

Here another popped up from builder. 

Pro version 122.1877
If it's not the newest version, I didn't get any alerts.

Clean as best I can remember, I think I had to delete everything and reinstall the last version.
MF
#4

Mark Fric

01.08.2019 09:28
it is strange, it works correctly for me.


Please check if you have file OppositeBlocks.csv in StrategyQuant\user\settings folder. If yes, please attach it here.


Also, could you attach your builder config?

b
#5

bentra

01.08.2019 09:40

Attachment OppositeBlocks.csv added

Attachment Buildh4.cfx added

It seems old. I'm going to try reinstalling.... Thanks for the help.
MF
#6

Mark Fric

01.08.2019 10:11

Status changed from Waiting for information to Refused

Attachment OppositeBlocks_example.csv added

ok, the issue is in OppositeBlocks.csv, it was there probably from previous installation.


In the newest setup the file is not there, there is OppositeBlocks_example.csv that can be renamed. When the file is not there the negation  works by default same as in OppositeBlocks_example.csv).


When OppositeBlocks.csv exists it manages how blocks are negated and allows you to control the negation. In your file HeikenAshiHigh was negated ot HeikenAshiHigh, that's why it worked like that.


For more information check section 5.4 Controlling conditions negation in Users Guide.


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