Chrispine Oburu:
I am trying to set my bot not to trade on certain days like on weekends and Christmas day, my line not to trade on Christmas and New Year is raising a warning of expression has no effect, how can I correct it?
if(stm.mon == 1 && stm.day == 1) open == false; if(stm.mon == 12 && stm.day == 25) open == false;
Chrispine Oburu:I am trying to set my bot not to trade on certain days like on weekends and Christmas day, my line not to trade on Christmas and New Year is raising a warning of expression has no effect, how can I correct it?
As I follow-up to Keith's post above, note the differences:
Operation | Desciption |
---|---|
== != | Equal Not equal |
= *= /= %= += -= | Assignment Multiplication with assignment Division with assignment Module with assignment Addition with assignment Subtraction with assignment |

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 am trying to set my bot not to trade on certain days like on weekends and Christmas day, my line not to trade on Christmas and New Year is raising a warning of expression has no effect, how can I correct it?