The expert must allow two strategies to be managed: FIRST STRATEGY The expert will have to calculate a minimum point and a maximum point in a number of previous candles; the number of candles will be indicated as input in the strategy. Once these points have been identified, the expert will place two pending orders near these points; the distance from these points will be indicated as input in the strategy. If the order is executed, the position will be managed with tp, sl, trailing (also virtual as an option). If the order does not enter into execution, the expert will continuously calculate the maximum and minimum point in the previous candles and update the pending orders. SECOND STRATEGY The expert will continuously analyze the progress of the candle in progress, when this candle will have an explosion and will exceed as a length a value indicated in the strategy, the expert will open an order in the same direction as exceeding the length; the order at that point will be managed with tp, sl, trailing (also virtual as an option). PARAMETERS OF THE FIRST STRATEGY - Fixed or variable lot in% of the balance; - Lot value (or% if variable lot chosen) - Number of previous candles for the calculation of the minimum and maximum point - Option to use buy stop / sell stop or buy limit / sell limit; - Distance in points from the minimum and maximum point for affixing the pending order (if you buy the pending order will be higher than the maximum point, if sell is lower than the minimum point); if 0 disabled; - stop loss in points (if 0 disabled); - Take profit in points (if disabled); - Trailing step in points (if 0 disabled); if indicated the trailing will move with the indicated step in points; - Option for choosing tp / sl / virtual trailing; - Maximum spread; if 0 disabled; - Use break even: it is activated only if the trailing is active, if inserted the trailing step starts to drag from the break-even point; - Minimum profit: if indicated, the expert will not close the order until he reaches the indicated profit (in account currency), or closes if he touches the SL; if 0 disabled - Minimum duration: if indicated, the profit order will not be closed until it reaches the minimum time indicated in seconds, or closes if it touches the sl; if 0 disabled. PARAMETERS OF THE SECOND STRATEGY - Fixed or variable lot in% of the balance; - Lot value (or% if variable lot chosen) - Length in points of the spark plug, beyond which the expert will open the order in the direction of exceeding; - Reverse option: if activated, the expert will open the order in the opposite direction to exceeding the candle; - stop loss in points (if 0 disabled); - Take profit in points (if disabled); - Trailing step in points (if 0 disabled); if indicated the trailing will move with the indicated step in points; - Option for choosing tp / sl / virtual trailing; - Maximum spread; if 0 disabled; - Use break even: it is activated only if the trailing is active, if inserted the trailing step starts to drag from the break-even point; - Minimum profit: if indicated, the expert will not close the order until he reaches the indicated profit (in account currency), or closes if he touches the SL; if 0 disabled - Minimum duration: if indicated, the profit order will not be closed until it reaches the minimum time indicated in seconds, or closes if it touches the sl; if 0 disabled.