A professional robot that implements a trading strategy in the NRTR channel. The signal is formed when the NRTR trend changes. When the NRTR indicator shows an uptrend , it will be a buy signal, if the NRTR shows a downtrend, it will be a sell signal.
The Expert Advisor correctly handles errors and reliably works with capital from 100 USD. It is important to choose the direction of work either in both directions, or only for buying or selling. The signal can also be inverted. The Expert Advisor uses basic concepts: breakeven, trailing stop, stop loss and take profit, as well as closing on the opposite signal and correct risk calculation. There is no single lot exit function, the concept of risk is used, a stop loss is required, since the lot is counted from it relative to the permissible losses for a given risk.
Any expert Advisor that optimizes without risk, using a fixed lot, will give obviously incorrect results, since the optimization will select parameters that will increase the balance in the initial period of history. The Expert Advisor also has a built-in progressive optimization sorting function, that is, it is desirable to optimize using the “Custom max” mode.
- Magic – Magic number, an arbitrary integer.
- Work Period – The period in which the Expert Advisor works.
- Risk-The risk with which we enter the market is set as a percentage of losses from the total deposit. The lot is determined relative to the stop loss and acceptable losses when the stop loss is reached.
- lotrounding-Rounding the lot (to decimal places).
- Deviation-Requotes.
- Sleeps-Waiting for a position to open, close, or modify.
- StopLoss – Stop loss.
- TakeProfit – Take profit.
- Trailing Period – The period on which the trailing stop works.
- Trailing Breakeven – Breakeven level. 0 – Disabled.
- Trailing Start – The level of the beginning of the trailing stop. 0 – Disabled.
- Trailing Stop – The level of the trailing stop. 0 – Disabled.
- TrailingStep Period – The trailing stop period.
- Prohibit new series – If you want to close the current position and no longer open new ones, then you must enable this switch.
- workopenlong-Permission to open a long position.
- workopenshort-Permission to open a short position.
- workcloselong-Permission to close a long position.
- workcloseshort-Permission to close a short position.
- Inversion – Inversion of the input signal.
- signalbar – The bar from which we start looking at the indicator (1 is the first fully formed bar).
- Signal Period – The period in which the indicators work.
- Period – The period of the indicator.
- deviationk-The channel works with the specified price.
[spoiler title=”Read More…”]
- It is desirable to optimize using the “Custom max” mode, which implements a progressive optimization function that can slightly increase the potential forecast.
- Set the time interval equal to the Work Period. This period should be less than any other in the settings.
- Set only opening prices to speed up optimization.
- Set the desired time interval. If necessary, then the forward (optional).
- It is important to select the Signal Period value before optimization, as the result depends on it. If the period is too small and the noise level exceeds the prediction strength of the signal, the result will be lost. If the period is too long, the result will be ineffective (few positions). You need to run the optimization several times in a row and evaluate this parameter.
- By default, the optimization includes permissions to work in the specified direction, as well as to close on a signal. For trailing, the method is selected not by points, but using the last bar of the specified time interval TrailingStep Period.
- Set the default parameters, set the following values for optimization:
[/spoiler]