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
Unfortunately, in the strategy tester of MQL5, the crosshair does not display the price change, as the crosshair does in the main chart.
This is critical to quantify changes in prices while debuging codes.
As such, I am exploring the option of creating an indicator that performs the function of the crosshair (percent chance calculation) to be added in an EA, which then can allow the manual quantifycation of the percent change in price between any two points of the chart in the strategy tester.
Reading across several pages I frankestain the code below for an indicator which works .
But i would like to change the logic such as that:
1. the start price is collected upon left clicking on the chart,
2. then the current price is dynamically gathered while the left button of the mouse is kept pressed,
3. upon releasing the left mouse button the value should disapear..
can such a logic be implemented?