how to hidden tp sl or appear tp sl on mt4 ? - page 3

 
How does the computer know what day it is?
 

yea....

i got some idea.

let me change it.

 
RaptorUK:
Why are you showing code that is complete nonsense ?

so for monday tuesday wednesday, must use 1, 2, 3... to represent tht value ?
 
https://docs.mql4.com/dateandtime/dayofweek
 
albert_lim83:

so for monday tuesday wednesday, must use 1, 2, 3... to represent tht value ?
Why do you find it impossible to answer a simple question ?
 
albert_lim83 2012.09.06 11:06

i wish only trading on tuesday, wednesday and thursday

=======================================

albert_lim83 2012.09.06 11:52
  // does not work on holidays.
  if(DayOfWeek()==0 || DayOfWeek()==6) return(0);

only this way can work only ?

========================================

Change your code...

Make it trading only tuesday, wednesday and thursday

 
RaptorUK:
Why do you find it impossible to answer a simple question ?


i found it before i coding it,

but it's hard for me to coding for trading only for certain day ...

 
albert_lim83:

i found it before i coding it,

but it's hard for me to coding for trading only for certain day ...


Its hard because you havn't read the book or looked at the documentation thus wasting our and your time with questions whose answer you wont understand or how to use it properly.
 
albert_lim83:

for the input parameter there, must use 1 2 3 4 5 6 to represent the trading day ?


You ASK too much start coding yourself

Change your code...

Make it trading only tuesday, wednesday and thursday