At the beginning of the day, an order is issued to delete pending orders that did not work. Then, at a distance of 'Pending: Indent', two opposite (Stop or Limit) pending orders are placed (the type is set in 'Pending Type')
Pic. 1. Two pending orders 2
The Expert Advisor is a joke: the position is opened randomly. Now there is a Stop Loss, Take Profit and much moreAt random
Expert is a joke! The position is opened at random!