Multi Save of Strategy Source code

Please make it possible to MULTI save the 'source codes' from the strategy source code tab for ALL selected strategies in the same way as normal save action is performed.

For example if I save my strategy's source code using the normal option "Save->Source code->EasyLanguage for Tradestation/Multicharts" then the format is very different than the source code presented in the 'source code' tab. See examples below:

1. Source code format from saved strategy source code using Save->Source code->EasyLanguage for Tradestation/Multicharts
//------------------------------------------------------------------
// EasyLanguage Code for Tradestation / MultiCharts of Strategy1.3.130_MCB1
//
// Generated by StrategyQuant X Build 126
// at 12/09/2019 11:25
//
// Generated for Main chart = Current Symbol / Current TF;
//------------------------------------------------------------------

inputs:
// Strategy variables
MagicNumber(11111),

// Trading Options
ExitAtEndOfDay(true),
DayExitTime(1500),
ExitOnFriday(false),
FridayExitTime(2240),
LimitSignalsTimeRange(false),
SignalTimeRangeFrom(0830),
SignalTimeRangeTo(1530),
ExitAtEndOfRange(false),
MaxTradesPerDay(1),
MinimumSL(0), // Minimum SL in ticks/pips, 0 means unlimited
MaximumSL(0), // Maximum SL in ticks/pips, 0 means unlimited
MinimumPT(0), // Minimum PT in ticks/pips, 0 means unlimited
MaximumPT(0), // Maximum PT in ticks/pips, 0 means unlimited

// Money Management - Fixed size
mmLots(1),
InitialCapital(10000);


2. Source code format from strategy source code tab (Copy to clipboard option)
//------------------------------------------------------------------
// EasyLanguage Code for Tradestation / MultiCharts of Strategy1.3.130_MCB1
//
// Generated by StrategyQuant X Build 126
// at 12/09/2019 11:27
//
// Generated for Main chart = Current Symbol / Current TF;
//------------------------------------------------------------------

inputs:
    // Strategy variables
    MagicNumber(11111),
    Period(30),
    PriceEntryMult(0.2),
    BarsValid(33),
    ExitAfterBars(90),
    ProfitTargetCoef(4.9),
    StopLossCoef(2.5),
    TrailingStopCoef(1.3),
    Period2(10),
    ATRPeriod(83),

In most cases the source codes from option 2 (from strategy source code tab (Copy to clipboard option)) are most interesting to work with, not the code generated by the save action
using Save->Source code->EasyLanguage for Tradestation/Multicharts


I hope this makes sense.


Attachments
  • Votes +2
  • Project StrategyQuant X
  • Type Feature
  • Status Fixed
  • Priority Low

History

Kc
#1

coensio

09.12.2019 12:38

Task created

Kc
#2

coensio

09.12.2019 12:38
Voted for this task.
MF
#3

Mark Fric

28.07.2020 10:55

Priority changed from Normal to Low

what is missing there is choosing which variables to parametrize - this option is in Results -> Source code.


So when saving strategies from databank as Save->Source code->

first display a dialogue where user chooses what to parametrize.

Kc
#4

coensio

27.08.2020 11:38
No, I just need to save the code from the 'source code' tab of multiple strategies at the same time. Now I need to open  'source code' tab for each single strategy and save them manually.
MF
#5

Mark Fric

11.09.2020 12:27
Source code tab is for one strategy only. The only way to save sources of multiple strategies at once is using Save acton in Databank.



Kc
#6

coensio

11.09.2020 12:54

Yes, but this is not my question, the issue is that when I multi-save strategies using "Save action in Databank" all strategies have different code than the code I see in "source code tab".


I would like to be able to save multiple strategies and get the same code as I see in the "source code tab".






h
#7

hankeys

11.09.2020 18:03
dont use parameters when savint the MQL code
Kc
#8

coensio

11.09.2020 18:41
This is for easylanguage not for MQL and I need these parameters coming from SQX like
    Period2(10),
    ATRPeriod(83),

for further post processing and improvement of strategies outside SQX.
Kc
#9

coensio

11.09.2020 18:45
Now I'm using external python scripts that are selecting the proper window and copying code from source-code tab and saving to external files...this is a huge bottle neck...
MF
#10

Mark Fric

23.09.2020 09:19
ok, the simplest solution is to use the parametrization setting from Results -> Source code tam also when saving multiple strategy sources in databank. Then there is no need for additional dialog.
Kc
#11

coensio

23.09.2020 16:35

Attachment SQX feature.png added

SQX feature.png
(163.25 KiB)
No, I think still that some additional dialog needs to be added, otherwise the resulting saved source-code file will still not contain the proper parameter names, see screenshot.
TB
#12

Tomas Brynda

24.09.2020 10:48

Status changed from New to Fixed

Added applying the source code parameter settings from Results while saving through databank save menu.

The source code should be exactly the same as if you made it manually in Source code tab

f
#13

fm663

24.09.2020 19:13
Can you add the strategy source code and associated orders to the Portfolio please?


Kc
#14

coensio

25.09.2020 07:58
"Added applying the source code parameter settings from Results while saving through databank save menu.

The source code should be exactly the same as if you made it manually in Source code tab"


Great thank you!

TB
#15

Tomas Brynda

29.09.2020 10:20
Hi ffm63,

please create a separate feature task for that.


Thank you


Best regards,

Tomas


Votes: +2

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please