davefx:
Hi,
I am trying to write my first indicator. Well, I am just playing with code and having some fun.
I would like to display a message box when the specified parameter is TRUE and when I okay the parameter box.
Below is the code, it does not do a lot.
Try this . . . but bear in mind that Message Box does not produce any output in the Strategy Tester . . .
if (invert); // same as if( invert == true) { MessageBox("hello", "hello"); }
if (invert) == true;
- You wouldn't ever code IF ( (2+2 == 4) == True). Of course not IF ( 2+2 == 4 ) is sufficient. If (Bool) or if (!bool) is all you need.
if (invert){ MessageBox(...); }
- Always use self explanatory names. such as if (DisplayBox){ ... }
WHRoeder:
- You wouldn't ever code IF ( (2+2 == 4) == True). Of course not IF ( 2+2 == 4 ) is sufficient. If (Bool) or if (!bool) is all you need.
- Always use self explanatory names. such as if (DisplayBox){ ... }
Many Thanks.
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
Hi,
I am trying to write my first indicator. Well, I am just playing with code and having some fun.
I would like to display a message box when the specified parameter is TRUE and when I okay the parameter box.
Below is the code, it does not do a lot.
If you clever people can help then thank you.
Davefx out.