please show me the code,thank u.
- How to calculate the higher high and previous higher high?higher high:if(high[3]>high[2] && high[3]>high[1] && high[3]>high[4] && high[3]>high[5])higherhigh= high[3]
- How to get a time of High/Low of previous day?
- Need Help with imomentum
double prices[20]; for (int bar=0; bar < 20; bar++) { prices[bar] = iMA(NULL, NULL, 1, 0, MODE_SMA, PRICE_TYPICAL, bar); } double high = prices[ArrayMaximum(prices)]; double low = prices[ArrayMinimum(prices)];
alphatrading:
wonderful,thank u.
sunyc1982:
Why have you posted a new topic today with the same question?
Do not double post.
Your other topic has been deleted.
Keith Watford:
The code above calculate the bar begin with number 1(bar number 0,1,2,3 and so on). I want to calculate the bar begin with number 2.
Why have you posted a new topic today with the same question?
Do not double post.
Your other topic has been deleted.
I simple change the code iMA(NULL, NULL, 1, 0, MODE_SMA, PRICE_TYPICAL, bar) to iMA(NULL, NULL, 1, 0, MODE_SMA, PRICE_TYPICAL, bar+1).and it works.
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