You are using the same object name on each loop iteration, so in essence you are simply moving them along from the previous position to the new position.
Instead assign a unique name for each iteration. For example, you could use the bar's open time to make the object's name unique.
You are using the same object name on each loop iteration, so in essence you are simply moving them along from the previous position to the new position.
Instead assign a unique name for each iteration. For example, you could use the bar's open time to make the object's name unique.
Thank you. For those who may need help, by simply adding the following to the object name, the objects remain :)
+ IntegerToString(i) + "_" + TimeToString(time1, TIME_DATE | TIME_MINUTES);
I know its not part of the original question but how can i make this work for multiple currencies? As i add another pair to the symbol_loop, nothing works
A chart, only displays one symbol at a time, and if you are adding graphical objects to it, it should be be for the current chart symbol and no other.
If you want to generate graphical objects for other symbols, then generate them on other charts already open for those symbols, or open up new charts for them.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi I have this EA which works perfectly although i cant seem to figure out why the pivot zones and lines are disappearing. How can I ensure previous pivot points and zones remain throughout the backtest? Spent countless hours trying to figure this out but cant seem to make progress. Would appreciate the answer or at least some learning material