Работа завершена
Техническое задание
BB EXPERT
We need a simple BB EXPERT that works in the following way
Multi time frame BB with default settings with deviations 0.2
Multi time frame moving
When ma crossover below BB we will open sell order
When ma crossover above BB we will open sell order
Close at next opposite signal optional ( it means when ma crossover in opposite BB)
Stop loss: It will not be in points, but will be in dollars
Take profit: It will not be in points, but it will be in dollars
Add a variable so that (optionally) the stop loss is adjusted to the entry point after the profits are (by default $50)
Adding a variable so that the profit chase (trailing) begins after the profits are by default ($80), and in this case the profit is chased with a value of (default one dollar) whenever the price advances by two dollars.
Adding an optional feature to close at the reversal signal. The reversal signal here is the price falling or rising above the upper or lower Bollinger band
Also added a feature of the number of allowed trading positions
Optionally add capital management feature
Optionally adding the feature of specifying working hours
Also add the default position size lot by default 0.01
Adding the feature of writing the trading position data on the chart, including the name of the asset (gold, for example), the type of position (buy, sell), entry point or entry price. In case that profit-chasing is activated, this is written on the chart whenever the stop loss is adjusted to chase profit, in case that there is no Open positions we write (waiting for the next signal)