Topic: powershell & command prompt FAQs

Dear Popov,
I started this topic for the sake of to understand powershell commands and get familiar with Command lines and keep other topics focused on building strategies .

Regards
Ahmed

Re: powershell & command prompt FAQs

My 1st Question

I tried by all means to change the root dictionary of my powershell from C to to express generator folder with no luck , i tried google help but all recommendations not working

The only working solution is cd.. but i still in C directory and cannot go out to D director

Post's attachments

powershell cd only working.png 5.03 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

3 (edited by ahmedalhoseny 2022-10-13 23:08:27)

Re: powershell & command prompt FAQs

I found the solution

PS C:\Users\MCST> cd..
PS C:\Users> cd..
PS C:\> Set-Location -Path E:\FSB\express-generator
PS E:\FSB\express-generator>


But every time i start powershell it start again with C directory
How to fix the FSB directory to be the main directory!

Re: powershell & command prompt FAQs

ahmedalhoseny wrote:

I found the solution

PS C:\Users\MCST> cd..
PS C:\Users> cd..
PS C:\> Set-Location -Path E:\FSB\express-generator
PS E:\FSB\express-generator>


But every time i start powershell it start again with C directory
How to fix the FSB directory to be the main directory!

its easier to build a batch file...

node .\bin\gen.js --data ./data/premium/EURUSD_H1.json --settings ./my-settings.ini
node .\bin\gen.js --data ./data/premium/GBPUSD_H1.json --settings ./my-settings.ini

put those code in a text editor and save as. .cmd

i make an update batch like this,

node .bin\fetch --update-check-interval 0

you have to put this in the directory of EG. double click and its done...when use other settings only edit the batch file in texteditor

Re: powershell & command prompt FAQs

Roughey wrote:
ahmedalhoseny wrote:

I found the solution

PS C:\Users\MCST> cd..
PS C:\Users> cd..
PS C:\> Set-Location -Path E:\FSB\express-generator
PS E:\FSB\express-generator>


But every time i start powershell it start again with C directory
How to fix the FSB directory to be the main directory!

its easier to build a batch file...

node .\bin\gen.js --data ./data/premium/EURUSD_H1.json --settings ./my-settings.ini
node .\bin\gen.js --data ./data/premium/GBPUSD_H1.json --settings ./my-settings.ini

put those code in a text editor and save as. .cmd

i make an update batch like this,

node .bin\fetch --update-check-interval 0

you have to put this in the directory of EG. double click and its done...when use other settings only edit the batch file in texteditor

Thanks Roughey works fine

I made separate generator file per pair per timeframe

Regards

Post's attachments

4 different files.png 64.88 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

Re: powershell & command prompt FAQs

> I made separate generator file per pair per timeframe

Well done!

You can use the newer Symbol, Period format instead of pointing to the concrete data file. You may find it easier:

> node bin/gen --settings ./my-settings.ini --symbol EURUSD --period H1

Re: powershell & command prompt FAQs

Popov wrote:

> I made separate generator file per pair per timeframe

Well done!

You can use the newer Symbol, Period format instead of pointing to the concrete data file. You may find it easier:

> node bin/gen --settings ./my-settings.ini --symbol EURUSD --period H1

yes now its possible :-)