i have these two conditions to open a buy order. How best to do it, if any of these two conditions is true.
tafadzwa:
Please edit your post . . . please use the SRC button to post code: How to use the SRC button.
<CODE DELETED>
"Open a buy order here "
What is the way if any one of the two above conditions is met, to open a buy order?
tafadzwa: if (CurrMinusPrevA<CurrMinusPrevB || CurrMinusPrevC>CurrMinusPrevD) // this dosen't seem to work
Play videoPlease edit your post.
For large amounts of code, attach it.
- Print out your values BEFORE the IF and something INSIDE so you find out why!
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
double CurrMinusPrevA=iHigh(NULL,PERIOD_H1,0);
double CurrMinusPrevB=iHigh(NULL,PERIOD_H1,4);
double CurrMinusPrevC=iHigh(NULL,PERIOD_M30,0);
double CurrMinusPrevD=iHigh(NULL,PERIOD_M30,3);
if (CurrMinusPrevA<CurrMinusPrevB || CurrMinusPrevC>CurrMinusPrevD) // this dosen't seem to work
"Open a buy order here "
What is the way if any one of the two above conditions is met, to open a buy order?