[Build 137RC3] (Urgent) Multiple Strategies/Template brackets discrepancies, Multiple Code brackets discrepancies



1/   We have multiple  brackets discrepancies between the template (Image 1)  and the produced strategies from the template  (Image 2) .


- In this case, it will add more  brackets.     (Please see attached "Test Template 4", and the produced attached strategy  :  "Strategy 2.1.27" )  
- In other case,  it will remove brackets or/and add brackets   (in the case of https://roadmap.strategyquant.com/tasks/algw_000762, you will find a test template, "Template 3", as well to produce this error )




2/   We have multiple code brackets discrepancies between the template (Image 1)  and the code of the produced strategies from the template  (Image 3) .


- if we read the code, there is multiple opening brackets at the beginning of the condition and we should not have them.
- the opening brackets are missing at each Or condition
- The signal wont be triggered as it should be, because the builder is not reading the template correctly


We need to have the same brackets in the code as in the template and as in the produced strategies.


3/ We do not need automatic brackets creation , if we select OR condition, because most of the time we have to adjust them as there is many possibilities.


4/ If we add directly the brackets and the OR condition,  Algowizard wont take it directly, we have to let Algowizard put first the automatic brackets. Please see : https://roadmap.strategyquant.com/tasks/algw_000756




This is Urgent, we can not use Algowizard with these bugs, because the template can not produce the signal as it should .




Please see the video and attached captures :


https://drive.proton.me/urls/D4VVM2A1TM#jqVQcV6xbKoG

Attachments
Test Template 3.sqx
(5.89 KiB)
Strategy 2127.sqx
(6.71 KiB)
Test Template 4.sqx
(6.48 KiB)
image-1.png
(91.60 KiB)
image-3.png
(131.10 KiB)
image-2.png
(117.75 KiB)
image-0.png
(54.52 KiB)
  • Votes +3
  • Project AlgoWizard
  • Type Bug
  • Status Fixed
  • Priority Normal

History

E
#1

Emmanuel

06.05.2023 10:41

Task created

E
#2

Emmanuel

06.05.2023 10:41
Voted for this task.
E
#3

Emmanuel

06.05.2023 10:55

Description changed:





1/   We have multiple  brackets discrepancies between the template (Image 1)  and the produced strategies from the template  (Image 2) .



- In this case, it will add more  brackets.     (Please see attached "Test Template 4", and the produced attached strategy  :  "Strategy 2.1.27" )  
- In other case,  it will remove brackets or/and add brackets   (in the case of https://roadmap.strategyquant.com/tasks/algw_000762, you will find a test template, "Template 3", as well to produce this error )




2/   We have multiple code brackets discrepancies between the template (Image 1)  and the code of the produced strategies from the template  (Image 3) .


- if we read the code, there is multiple opening brackets at the beginning of the condition and we should not have them.
- the opening brackets are missing at each Or condition
- The signal wont be triggered as it should be, because the builder is not reading the template correctly


We need to have the same brackets in the code as in the template and as in the produced strategies.


3/ We do not need automatic brackets creation , if we select OR condition, because most of the time we have to adjust them as there is many possibilities.


4/ If we add directly the brackets and the OR condition,  Algowizard wont take it directly, we have to let Algowizard put first the automatic brackets. Please see : https://roadmap.strategyquant.com/tasks/algw_000756




This is Urgent, we can not use Algowizard with these bugs, because the template can not produce the signal as it should .




Please the video and attached captures :


https://drive.proton.me/urls/D4VVM2A1TM#jqVQcV6xbKoG

E
#4

Emmanuel

06.05.2023 11:11

Subject changed from [Build 137RC1-2] (Urgent) Multiple brackets discrepancies, Multiple brackets code discrepancies to [Build 137RC1-2] (Urgent) Multiple Strategies/Template brackets discrepancies, Multiple Code brackets discrepancies

E
#5

Emmanuel

06.05.2023 23:50

Description changed:



1/   We have multiple  brackets discrepancies between the template (Image 1)  and the produced strategies from the template  (Image 2) .


- In this case, it will add more  brackets.     (Please see attached "Test Template 4", and the produced attached strategy  :  "Strategy 2.1.27" )  
- In other case,  it will remove brackets or/and add brackets   (in the case of https://roadmap.strategyquant.com/tasks/algw_000762, you will find a test template, "Template 3", as well to produce this error )




2/   We have multiple code brackets discrepancies between the template (Image 1)  and the code of the produced strategies from the template  (Image 3) .


- if we read the code, there is multiple opening brackets at the beginning of the condition and we should not have them.
- the opening brackets are missing at each Or condition
- The signal wont be triggered as it should be, because the builder is not reading the template correctly


We need to have the same brackets in the code as in the template and as in the produced strategies.


3/ We do not need automatic brackets creation , if we select OR condition, because most of the time we have to adjust them as there is many possibilities.


4/ If we add directly the brackets and the OR condition,  Algowizard wont take it directly, we have to let Algowizard put first the automatic brackets. Please see : https://roadmap.strategyquant.com/tasks/algw_000756




This is Urgent, we can not use Algowizard with these bugs, because the template can not produce the signal as it should .




Please see the video and attached captures :


https://drive.proton.me/urls/D4VVM2A1TM#jqVQcV6xbKoG

b
#6

bentra

07.05.2023 05:30
Voted for this task.
E
#7

Emmanuel

10.05.2023 15:08

Subject changed from [Build 137RC1-2] (Urgent) Multiple Strategies/Template brackets discrepancies, Multiple Code brackets discrepancies to [Build 137RC3] (Urgent) Multiple Strategies/Template brackets discrepancies, Multiple Code brackets discrepancies

HF
#8

Vence_Jo

11.05.2023 16:25
Voted for this task.
E
#9

Emmanuel

15.05.2023 09:33

Attachment Discrepancy Code Template.docx added

Discrepancy Code Template.docx
(250.22 KiB)
Here are some examples of Template / Code discrepancies


The brackets are not in the correct place 

E
#10

Emmanuel

16.05.2023 00:28

Attachment Template 1 made by B137 1633 RC3 .sqx added

Attachment Strategy 3150.sqx added

Attachment image-0.png added

Attachment LongEntrySignal 3 1 50.docx added

Strategy 3150.sqx
(44.41 KiB)
Template 1 made by B137 1633 RC3 .sqx
(6.32 KiB)
LongEntrySignal 3 1 50.docx
(65.86 KiB)
image-0.png
(124.34 KiB)
In Build 137 RC3,  I created a new template   "Template 1 made by B137 1633  RC3.sqx".     


SQX generated a strategy "Strategy 3.1.50.Sqx"     with similar brackets as the template.       


I compared the template brackets and the source code. (Image 0 attached)


3 opening brackets and 3 closing brackets should not be in the source code.


In  Image 0 attached, I tagged these extra brackets with a red star  for you to see.


It seem that if we add a OR condition, SQX is adding an extra opening bracket at the beginning of the condition and a closing bracket in the source code.

We should not have these brackets (tagged with a red star in image 0).


I will create the other template in Build 137 RC3 and test them in the next couple of days.


I hope , this will help. 


Please see the attached template, capture and video


https://drive.proton.me/urls/8S1RYHGG84#vyNbrpnbqAjG



MF
#11

Mark Fric

16.05.2023 09:59

Status changed from New to Fixed

this is not a bug, source code logic is exactly as same as the one in AW editor, there are just more brackets in Source code, because there we enclose every AND and OR condition with its own brackets just for safety - it is not that simple to work with brackets in the source code templating engine.


But as I said the logic is 100% equivalent.


There were some bugs with brackets logic before but all should be fixed in 137 RC3 - here it works correctly.


So in Source code we have maximum brackets, and in editor we display minimum brackets to make it more readable.

E
#12

Emmanuel

16.05.2023 10:53
You are right this is 100 % equivalent 


Thank you Mark



LongEntrySignal  =   R * (((    ( A + B) + C) + D))

LongEntrySignal  =   R * ((    ( A + B) + C) + D)

LongEntrySignal  =   R * D + R * ( A + B) + C)

LongEntrySignal  =   R * D + R * C + R * ( A + B)

LongEntrySignal  =   R * D + R * C + R * A + R * B


Votes: +3

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please