Random Actions not working

Hello,



Based upon the behavior I'm seeing, it looks to me like someone was debugging the Random Action feature and then forgot about it.


First, when you add a Random Action to an SQX Template, you get far more options than just selecting the Random Action. (See first image.) It seems to me that these types of settings should be included as items in a Random Group, not as part of the Random Action configuration itself. Like other Random Group configs, I believe what we need are the first three fields (ID, Chart, Random Group.)


When this is run within the builder, it doesn't actually call the Random Group you have selected for Random Actions. The pseudocode generated looks like this:

//--------------------------------------------------------------------
// Initialization: Strategy Init (On Every Tick)
//--------------------------------------------------------------------                   
    // Action #1
    Open/Reverse Long order at Market;
        Duplicate trades: disabled; 

What I would like is for it to do is to allow you to call a Random Group of various actions.


In my case, I'm using custom built actions I've written as extensions.


I've included an SQX Template for ease of demonstrating the issue. Just reference it from the Builder, and you should see that the Random Group is never called.


Thank you.





Attachments
RandomActionsNotWorking.sqx
(3.39 KiB)
RandomActionAlgoWizard.png
(189.25 KiB)
  • Votes +1
  • Project StrategyQuant X
  • Type Bug
  • Status New
  • Priority Normal

History

RH
#1

rhartstein

10.03.2023 19:59

Task created

RH
#2

rhartstein

14.03.2023 02:32

Attachment RandomActionAlgoWizard.png added

RandomActionAlgoWizard.png
(198.70 KiB)
E
#3

Emmanuel

15.03.2023 13:56
Voted for this task.

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