Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 258
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
experts/files/trx_rowa.vbs
It's an evil, unshaven, unknown to science trojan. Devlala, you have googol at a mouse's distance, can't you figure out the source code? Change IE.visible = false to IE.visible = true, run it and see. The script parses your calendar and writes everything in Cyrillic in a text file. Open it and look, it reads fine.
I seriously don't understand what kind of text this is. Let's start with,
1. I can download the site into a file.
2. Further options:
2a) Run it through the recoding function(unreadable characters will disappear, and there will be an error in the log - which is annoying), and parse the Russian letters(annoying errors, in the log, but they do not affect the work ).
2b) Leave things as they are, and make some trouble with keywords (like monday = "РџÐЅÐµÐґÐµÐ "ÑЊÐЅÐє"), and get information out.
2c) Write a function that translates "Monday" to "РџÐѕÐЅÐµÐґÐµÐ "ÑЊÐЅÐøє", and pull out what is needed.
Tried to write a function, but something I obviously don't know about encodings :) Here's what I got, below is the original.
I seriously don't understand what kind of text it is where to put it in.
I have uncommented it there, see. Copy this code into notepad, save notepad as trx_rowa.vbs (not txt), get vbs-script. Transfer the script to expert files. You can check it first, run it, or you can immediately write its call from mql4-code. How to call it is given. It creates a txt file with the same name as itself, and all your Cyrillic is there. The only thing is, sleep won't be called from your induke, you'll have to work it out. You could do it like this:
but it's unlikely to work. There was a WinAPI timer on the forum.
I uncommented there, look. This code you copy to notepad, notepad save as trx_rowa.vbs (not txt), get vbs-script. Transfer the script to expert files. You can check it first, run it, or you can immediately write its call from mql4-code. How to call it is given. It creates a txt file with the same name as itself and all your Cyrillic is there.
I see your point! Thanks for the way to pull out the Cyrillic, but the main task is to get the time/country/importance, but the importance is there as a picture, and it can only be caught in Latin, and so I'll keep an alternative way to download pages.
Thanks:)
the main objective is to get the time/country/importance
Time - .getElementsByTagName("TD").item(0).InnerText
country - .getElementsByTagName("TD").item(1).InnerText
importance - .getElementsByTagName("TD").item(2).InnerHTML, and there you can find out which number is in the /i/calendar/impact1.png line
Is there any limitation on the use of indicators?
If I use an indicator in my EA, then when the programme finishes testing, the indicator is drawn.
If I use the same indicator but with different parameters - then two indicators are drawn.
I want to include an indicator with dynamic parameters in my EA - when I stop it, it starts working very slowly and displays armageddon instead of a chart (I have 30 attached indicators - so many indicators can display on a chart).
The question is if it only displays 30 - does it understand the rest inside the script?
Is there any limitation on the use of indicators?
If I use an indicator in my EA, then when the programme finishes testing, the indicator is drawn.
If I use the same indicator but with different parameters - then two indicators are drawn.
I want to include an indicator with dynamic parameters in my EA - the EA starts working very slowly and when I stop it, it shows armageddon instead of a chart.
I would like to transfer the main function of the indicator to my EA - it will work faster and there will be no Armageddon.
Transferring of the indicator code to Expert Advisor code. Structure of the indicator.
Transferring of the indicator code to the Expert Advisor code. General Scheme of Construction of Expert Advisors and Indicator Functions
Transferring indicator code to expert code. ConclusionIs there any limitation on the use of indicators?
If I use an indicator in my EA, then when the programme finishes testing, the indicator is drawn.
If I use the same indicator but with different parameters - then two indicators are drawn.
I want to include an indicator with dynamic parameters in my EA - when I stop it, it starts working very slowly and when I stop it, it shows armageddon instead of a chart (I have 30 attached indicators - so many indicators can display on a chart).
The question is if it only displays 30 - does it understand the rest inside the script?
void HideTestIndicators( bool hide)
The function sets flag to hide indicators called by the Expert Advisor. When opening a chart after testing, the indicators marked with the hide flag will not be displayed on the test chart. Before each call, the indicator is marked with the current hiding flag set.It should be noted that only those indicators that are directly called from the Expert Advisor under test can be shown in the testing chart.
What is the correct way to find the drawdown percentage?
(DoubleToStr(AccountBalance(), 2) - DoubleToStr(AccountFreeMargin(), 2)) * 100
What is the correct way to find the drawdown percentage?
(DoubleToStr(AccountBalance(), 2) - DoubleToStr(AccountFreeMargin(), 2)) * 100
It's more or less like this