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
This is exactly what I was afraid of!
Well, then I will have to draw my own over these standard objects, although all I need is just to change the colour of lines depending on the sign of the result (profit or loss) of corresponding positions, because in terms of reading trades, the result colour is much more important than the direction colour. More important - if only because the direction up or down on the chart can be seen anyway (both by the slope of lines and by colour of arrows), while for understanding of losses or profitability of a deal under the standard approach it is necessary to compare the position type with the market direction every time). And it's good if there are only a few positions in the tester. But what if there are hundreds or thousands?
In principle, a massive change in the property of graphical objects on a graph (and arrows are only a special case of objects), can be implemented by a corresponding script. That is, you run a script that repaints the objects after testing is completed. In addition, hotkeys can be assigned to the scripts, so launching the script will not require unnecessary operations with the mouse and Navigator.
To be honest, I haven't worked with scripts yet, so I may be asking an amateurish question, but still...
Is it possible to run the script directly from an Expert Advisor, prescribing the call in the code of the latter to do without hotkeys?
Key pressing seems to be a trifle, but the way our life is, the little things tend to accumulate over time, and confusion sometimes occurs as a result.
We would like to transfer maximum routine to a program and I think every programmer is familiar with this wish.
***
But on the whole, your team has done a lot.
I started on Forex back in 2000 and I remember how difficult and cumbersome everything was with Omega, and then with another program.
I remember how the quote block was getting hung up, and I couldn't even think about programming anything. It was out of the question and there didn't seem to be any such specialists in the whole DC.
You, MetaQuote, have made programming accessible to many and especially through the introduction of OOP, before which, as in other areas, it was still too cumbersome.
To be honest, I haven't worked with scripts yet, so I may be asking an amateurish question, but still...
Is it possible to run the script directly from an Expert Advisor, prescribing the call in the code of the latter to do without hotkeys?
A hotkey is a trivial thing, but the way our life is, trivial things tend to accumulate over time, and confusion sometimes occurs as a result.
...Script is a one-time called code, if you have no global variable in your script, just rename OnStart() function, and in the file rename the extension to .mqh and you get the inluder, which can connect where needed and then call code of ex script where needed programmatically. Includnik can be left in place (in which case the connection will be slightly different) or moved to the folder Include.
If you have global declarations I'm sure that almost any code can be rewritten so that not to use them, and after that do all the above.
There is no point in making an oscillator specifically. Because you cannot put indicators on an oscillator. How can we analyze a chart without all indicators? So, the equity is 100% on the same chart of some currency pair, for example.
The equity calculation should be performed on the server where trades are stored on the account. If we combine the trades with fluctuations of the price of what trade is opened, we will obtain the fluctuation of equity.
There should be an indicative instrument in the list of instruments which will display fluctuations of equity on the account.
There is no point in making an oscillator specifically. Because you cannot put indicators on an oscillator. How can we analyze a chart without all indicators? So, the equity is 100% on the same chart of some currency pair, for example.
The equity calculation should be performed on the server where trades are stored on the account. If we combine the trades with fluctuations of the price of what trade is opened, we will obtain the fluctuation of equity.
There should be an indicative instrument in the list of instruments which will display fluctuations of equity on the account.
This is a false assumption... In the standard indices it's enough to change the names of the source data arrays to the data from the indicator, this way you can apply any processing method to any indicator.
How to write an indicator based on another indicator