指定
I need to create a statistic for my EA. This statistic should be stated in table in a chart when backtest is created. The statistic should to display how much trades was profitable and how much trades was loss, when would be a entry price, for example, about 100 pips more than is according of EA, when signal is generated. It means EA should to test with original a values but should to count the value of profitable and loss trades, when entry price would be about 100 pips more etc. For the statistic should be possible to set number of pips which should be attributed to entry price.
For example:
Entry price for Long position is 1.1500 and exit price is 1.1450. The statistic should to attributable, for example, 100 pips to entry price. It means a entry price is 1.1600 and exit price is same 1.1450.
Backtest result in Metatrader4 should be same but in a table in chart should be statistic for the profitable and loss trades with the attributed a value of number of pips.
Exit price should be same according of original of signal from EA. Number of pips should be attributed only to entry price.
For Long position should be number of pips attributed and for Short position deducted.