Stephen Reynolds: When I place the following code onto the chart why does it usually take 5 minutes to load onto the chart. I know im doing something wrong with buffers and iMAOnArray but cant see what?
- Nothing wrong there but you shouldn't expect to see anything. Volume should be in the range 100-30,000 depending on your TF. Non-JPY charts have prices in the range 0.9-15. Your line is nine feet above the top of the chart. Try:
#property indicator_separate_window
int start(){
Start using the new Event Handling Functions Event Handling Functions - Functions - Language Basics - MQL4 Reference int counted_bars = IndicatorCounted(); if(counted_bars>0) counted_bars+=1; int limit=Bars-counted_bars; if(counted_bars==0) limit-=1;
See How to do your lookbacks correctly.
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
When I place the following code onto the chart why does it usually take 5 minutes to load onto the chart. I know im doing something wrong with buffers and iMAOnArray but cant see what?