Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Imhotep), 567 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
unwanted DOT in watch output #483172
05/07/21 06:32
05/07/21 06:32
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
Hi,

I have this code:
Code
#include <profile.c>
#include <default.c>
#define SYMBOLS "EUR/USD","USD/JPY","EUR/JPY"//

#define TO_M15       0
#define TO_H1        4
#define TO_H4        8

#define TO_READ    0
#define DATA_OK    1
#define CSV_BEGIN  2

void loadPredict(const string idx,  const int nHandle){
    string InName = strf("FI_%s_%s.csv",strx(Asset,"/",""),idx);  // name of a single year CSV file
    watch("FILE:",InName," HND: ",nHandle);
}

function run(){

  if (is(INITRUN)){
        Script = "Omega";
        BarPeriod = 15;	// 15 min
        LookBack = 1;
        int i=0;
        while(asset(loop(SYMBOLS))){
            AssetInt[CSV_BEGIN+TO_M15]=i*3;
            AssetInt[CSV_BEGIN+TO_H1]=AssetInt[CSV_BEGIN+TO_M15]+1;
            AssetInt[CSV_BEGIN+TO_H4]=AssetInt[CSV_BEGIN+TO_M15]+2;
            loadPredict("M15",AssetInt[CSV_BEGIN+TO_M15]);
            loadPredict("H1",AssetInt[CSV_BEGIN+TO_H1]);
            loadPredict("H4",AssetInt[CSV_BEGIN+TO_H4]);
            i++;

        }
        while(asset(loop(SYMBOLS))){
            watch(Asset," HND: ",AssetInt[CSV_BEGIN+TO_M15]);
        }
    }
  quit("#Only INIT!");
}


Output from TEST:
Code
...
...
FILE: FI_EURUSD_H1.csv  HND:  1 
FILE: FI_EURUSD_H4.csv  HND:  2 
FILE: FI_USDJPY_M15.csv  HND:  3 
FILE: FI_USDJPY_H1.csv  HND:  4 
FILE: FI_USDJPY_H4.csv  HND:  5 .
FILE: FI_EURJPY_M15.csv  HND:  6 
FILE: FI_EURJPY_H1.csv  HND:  7 
FILE: FI_EURJPY_H4.csv  HND:  8 
EUR/USD  HND:  0 
USD/JPY  HND:  3 
EUR/JPY  HND:  6 
Only INIT!


one from output is:
FILE: FI_USDJPY_H4.csv HND: 5 .

after 5 is DOT. Is coming from? If I extend next symbol, coming second dot.

Code
FILE: FI_USDJPY_H4.csv  HND:  5 .
FILE: FI_EURJPY_M15.csv  HND:  6 
FILE: FI_EURJPY_H1.csv  HND:  7 
FILE: FI_EURJPY_H4.csv  HND:  8 .
FILE: FI_GBPUSD_M15.csv  HND:  9 
FILE: FI_GBPUSD_H1.csv  HND:  10 
FILE: FI_GBPUSD_H4.csv  HND:  11 
EUR/USD  HND:  0 
USD/JPY  HND:  3 
EUR/JPY  HND:  6 
GBP/USD  HND:  9 
Only INIT!

Re: unwanted DOT in watch output [Re: Grat] #483199
05/10/21 10:18
05/10/21 10:18
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
Dots have nothing to do with watch, but are printed as a rough progress indicator by slow processes, such as loading historical data.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1