Hey guys,
What I'm trying to ask is how can I make a loop work for :
for (int i=0; i<arraysize; i++)
If (price[i] >price[i+1] & & price[i+1]>price[i+2]....
I've been trying over and over but just can't figure out how to code it.
Thanks
- Parabolic SAR - Trend Indicators - Technical Indicators - Price Charts, Technical and Fundamental Analysis
- Momentum - Oscillators - Indicators - Charts - MetaTrader 5 for Android
- Momentum - Oscillators - Indicators - Chart - MetaTrader 5 for iPhone
Provided your array is set as series code goes like this:
bool isIncreasing=true; for(int i=0;i<arraysize-1;i++) { if(price[i]<price[i+1]) { isIncreasing=false; break; } }
lippmaje:
Yeah I did try with a book... Provided your array is set as series code goes like this:
I guess I don't know how to use the loop to get it to do what I want it to do.
For example, if bool=true, then send a request.
I think my main problem is that I don't know how to use the bool result for a trade.
Will look further in this
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