This is not the full code?
string morning=""; if (Hour()>6) { morning="buy"; } string evening=""; if (Hour()<9) { evening="buy"; } string trade="";
what are you trying to do?
I wanted the machine to buy only in the morning. So it's morning hours.
So should I turn on the computer myself in the morning and shutdown Windows at 9 o'clock by task scheduling?
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
I will ask for help. Why this script does not place orders.
Everything works in the strategy tester. The strategy tester has made 216 transactions over the past year. But as I want to test the strategy live in the bill, nothing happens. 2020-06-05 the strategy should buy. But it didn't happen. Below are logs from that day:
0 07:02:48.726 BOSSAFX build 1260 started (Dom Maklerski Banku Ochrony Srodowiska S.A.)
0 07:02:48.726 Windows 10 Pro x64, IE 11, UAC, 4 x Intel Core i5-7200U @ 2.50GHz, Memory: 5667 / 7639 Mb, Disk: 198 / 237 Gb, GMT+1
0 07:02:48.726 Data Folder: C:\Users\MAgda\AppData\Roaming\MetaQuotes\Terminal\4D8765565A48572E2B4FDE0D8FFD6A2C
2 07:02:54.789 Expert Inne\Poziom i spadek USDHUF USDHUF.,M5: loaded successfully
2 07:02:54.846 Expert Inne\Poziom i spadek USDPLN USDPLN.,M5: loaded successfully
2 07:02:54.898 Expert Inne\Poziom i spadek USDCZK USDCZK.,M5: loaded successfully
0 07:02:56.494 '10116846': login on BossaFX-Demo through dc-04.bossafx.pl (ping: 24.58 ms)
0 07:02:56.919 '10116846': login datacenter on BossaFX-Demo through dc-04.bossafx.pl (ping: 24.58 ms)
0 07:02:57.159 '10116846': previous successful authorization performed from 89.64.2.38
0 07:02:57.231 '10116846': ping to current access point dc-04.bossafx.pl is 30.48 ms
0 13:59:32.059 System to be shutdown, request for close BOSSAFX
0 13:59:32.450 BOSSAFX build 1260 stopped because system shutdown