Live quote simulation for accelerated indicator testing - MetaTrader 4 script | Forex indicator download - MT4/MT5 resources

The script allows to preview the behavior of the indicator on a real chart from a specified point with minimal computational resources, both in mode with manual control of transition points, and in automatic mode with quote generation delay.
The script is designed to set two offset parameters through global variables as well as the number of calculated data for indicators, EAs or other scripts. It is also possible to automatically iterate the data range from the initially set bar to the zero bar, with a delay.
An example of linear regression indicator with attached script is provided. The indicator can be calculated independently or in combination with a script (there is a running script).
If used in conjunction with a script, the parameters required for indicator calculation (offset and number of calculated data) are stored in global variables (CE_Shift and CE_Count respectively).
The script is able to manage the indicator in manual mode (set translation - position linear regression object using mouse) or automatic mode (set translation - position linear regression object by setting new coordinates of translation -1).
Use the _Emulated global variable to set manual and automatic management modes:
Once the object reaches the zero column in automatic mode, the script switches to manual control mode. The _PauseCount global variable sets the delay parameters for the next run of the indicator. The _Calculated global variable defines the readiness of the indicator to perform the next calculation. After the calculation is completed, the indicator will set the flag _Calculated=true.
If the edges of the linear regression object extend beyond the chart screen, the chart automatically moves to show the new selected range.
At the end of the script operation, all linear regression objects are deleted and the uninstallation is confirmed.
My thanks go to Oleg Poddubny and his script Mover.mq4 for the original idea.

Attachment download
📎geLR_MA_Ctrl2.mq4 (8.44 KB)
📎 geSCtrl_Tick.mq4 (10.24 KB)
📎ge_VKKeyCode.mq4 (3.99 KB)
Source: MQL5 #8710
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •