How to turn positive number to negative number vice versa? I created indicator when EUR is down it means the USD is up, I computed the price in EUR/USD.
- Linear Regression Slope - Help
- How do i set trailingstop above open price when buying and vice versa
- Close the following trade in mt5
Just use a minus sign.
int myVal1 = 4; int myVal2 = -myVal1; int myVal3 = -myVal2; printf("myVal1=%+i myVal2=%+i myVal3=%+i",myVal1,myVal2,myVal3);
if you just want to turn val to a negative val
val=val-(2*val);
if you want to save the original val...
val2=val-(2*val);
mtbb:
if you just want to turn val to a negative val
val=val-(2*val);
if you want to save the original val...
val2=val-(2*val);
...or just use the minus sign...
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