Errors, bugs, questions - page 1039

 
zfs:
It depends on what you want to trade or program.
As I understand it, it is difficult to trade without progamming!
 
PahaLogin:
Well, as I understand it, trading is difficult without programming!
You can trade without programming, just by clicking buttons on MT4/MT5. If you want to learn how to program, then you can't go far without reading the Documentation. You can also order a program for money in the Jobs section.
 

Here I learned that "... Comment() is the heaviest function, it makes the window completely redraw...". Can you tell me if it is possible to make the information displayed in the window via Comment() be visible, e.g., on 5 ticks, then on the next five ticks it will not be displayed, then again on 5 ticks it will be visible, etc. Looking for ways to relieve the CPU when the Expert Advisor works.

 

The body of the script, consists of one line:

Print(Symbol(), "  ", Period());

To understand what Period() shows.

On a CADJPY, M1 chart the answer is: CADJPY 1

On a 30-minute USDCHF chart the answer is: USDCHF 30

This seems logical.

On the EURUSD, 1H chart, the answer is: EURUSD 16385

Why is this answer shown on the hourly chart?

On the D1 chart the answer is 16408. Also, why?

 
cat7:

The body of the script, consists of one line:

To understand what Period() shows.

On a CADJPY, M1 chart the answer is: CADJPY 1

On the USDCHF 30 min chart the answer is: USDCHF 30

Seems logical.

On the EURUSD 1H chart the answer is: EURUSD 16385

Why is this answer shown on the hourly chart?

On the D1 chart the answer is 16408. Also, why?

It is written at the beginning of this article .
 
DC2008:
It says so at the beginning of this article .

Unfortunately, it is not possible to follow the link you provided. The page was not found...

Can you write the title of the article so I can find it?

 
cat7:

Unfortunately, it is not possible to follow the link you provided. The page was not found...

Maybe you could write the title of the article and I could use it to find it.

Corrected the link.
 
DC2008:
Corrected the link.
Thank you!
 
cat7:

The body of the script, consists of one line:

To understand what Period() shows.

On a CADJPY, M1 chart the answer is: CADJPY 1

On the USDCHF 30 min chart the answer is: USDCHF 30

Seems logical.

On the EURUSD 1H chart the answer is: EURUSD 16385

Why is this answer shown on the hourly chart?

On the D1 chart the answer is 16408. Also, why?

string fTFtoSTR(int p){
   switch(p)
     {
      case 0: return("0");
      case 1: return("M1");
      case 5: return("M5");
      case 15: return("M15");
      case 30: return("M30");
      case 60: return("H1");
      case 240: return("H4");
      case 1440: return("D1");
      case 10080: return("W1");
      case 43200: return("MN1");
      
      case 2: return("M2");
      case 3: return("M3");
      case 4: return("M4");      
      case 6: return("M6");
      case 10: return("M10");
      case 12: return("M12");
      case 20: return("M20");
      case 16385: return("H1");
      case 16386: return("H2");
      case 16387: return("H3");
      case 16388: return("H4");
      case 16390: return("H6");
      case 16392: return("H8");
      case 16396: return("H12");
      case 16408: return("D1");
      case 32769: return("W1");
      case 49153: return("MN1");      
      default: return("CURRENT");

}
 
zfs:

I've already read it in the article, thank you.

Got the issue sorted out )