Script to optimize the Setting File, not the Strategy

Avatar
  • updated

Hello Community,

The idea of ​​this script is to disable options that are not necessary for the strategy, visual options and indicators that are not used for better performance when left running on the VPS.

Step to detail:

- Put an Expert_Id number with the latest version of CommunityPower, for example, v2.34, put 234.

- Put in Expert_Comment the date and time of when this script was executed with this Setting file.

- In all the properties a text is placed in replacement of the === to identify improve the sections.

- The Virtual Stop Loss option is set to False, the same with Virtual Take Profit.

- With the time setting, the GMT and DST are set according to what is in the script. This should be edited each for the broker you use. THIS MUST CHANGE IT FOR ONE ACCORDING TO THE BROKER YOU USE

- If volatility is not used in "calc mode", the use of volatility is disabled since it is not used in any option.

- For EUR / USD, the time to start trading is set at 00:05 until 23:00 to avoid open trades and thus avoid SWAP. On Friday it operates only until 22:00.

- If volatility distance is not used in ZigZag and MA # 1, # 2 and # 3 then it is disabled in VolMA_Type = false

- If Open/OpenMartin/Close/Partial is not used, the indicator is disabled (BigCandle_Type = "0", Oscillators_Type = "0", etc)

The script is a text file and everyone can modify it and adapt it to their needs.

The changes should not affect the strategy, except if you use the filter of news and time.

Each one has its own way of operating and its own configuration that it uses in each strategy, you can adapt it to your needs.

I hope it is useful to you as much as it is being for me.

Image 1499

Image 1500


Image 1501


Any collaboration or suggestion is welcome.

Thanks Andrey for this great EA

CommunityPowerEA_Optimization.ps1

Avatar
Ulises Cune

In the link attach the two .set files, the original and the optimized one, not the .ini.

The two tests were similar

Avatar
Andrey Khatimlianskyi
Quote from Ulises Cune

In the link attach the two .set files, the original and the optimized one, not the .ini.

The two tests were similar

Please, read again my messages.

I made 2 tests with your sets. Optimized was slower than original.

I attached my tester ini so you can make the same tests on your PC.

Avatar
wilson

DO YOU HAVE A VIDEO ON USAGE OF THIS SCRIPT

Avatar
Ulises Cune
Quote from wilson

DO YOU HAVE A VIDEO ON USAGE OF THIS SCRIPT

Is simple the use. 

Avatar
Ulises Cune

Hello, I upload a new version with support for version 2.46 (ADX)


Copy the two files to the same folder and run "CommunityPowerEA_MyDefault_run.bat"

CommunityPowerEA_MyDefault.ps1

CommunityPowerEA_MyDefault_run.bat

Avatar
Ulises Cune

Hi Community,

This script is to configure some default parameters that we usually use (GMT -2 for example), and to disable options that are not necessary(Open individual Signal  if Type=Disabled for example).

I have now added some buttons to modify the strategy file to add BollingerBands and the crossing of 2 Moving Averages.

Also, it renames the file according to the indicators used.

CommunityPowerEA_MyDefault.ps1

Avatar
Ulises Cune

Hello Community,

I keep adding some functions to this script. I change a little the initial purpose with which I did it.

I have added an option to put the correct configuration of a "CustomIndy", in this case, "SuperTrend"

Run:

open "cmd.exe" and write this::

powershell -ExecutionPolicy Bypass -File "CommunityPowerEA_MyDefault.ps1"

Image 3207