// GUI Layout for MQL app (standard controls library)
// Required hosting window dimensions: (width*height)=419*266
// Don't forget to keep a pointer to the main container to call Show() after load and Pack() on refreshes
{
  _layout<CBoxH> main("main", ClientAreaWidth(), ClientAreaHeight(), WND_ALIGN_CLIENT);
  main <= PackedRect(0, 0, 0, 0);
  {
    {
      _layout<CBoxV> LeftPanel("LeftPanel", 100, 238, (ENUM_WND_ALIGN_FLAGS)(WND_ALIGN_HEIGHT|WND_ALIGN_LEFT));
      LeftPanel <= PackedRect(0, 0, 0, 0);
      {
        {
          _layout<CBoxV> LeftTopPanel("LeftTopPanel", 100, 30);
          LeftTopPanel["background"] <= C'188,143,143' <= PackedRect(0, 0, 0, 0);
          {
            {
              _layout<CButton> DeleteSells("DeleteSells", 90, 20);
              DeleteSells <= "Delete Sells" <= PackedRect(0, 0, 0, 0);
            }
          }
        }
        {
          _layout<CBoxV> LeftLeftPanel("LeftLeftPanel", 100, 178, WND_ALIGN_HEIGHT);
          LeftLeftPanel <= PackedRect(0, 30, 0, 30) <= VERTICAL_ALIGN_STACK;
          {
            {
              _layout<CBoxV> LeftLeftTopPanel("LeftLeftTopPanel", 100, 30);
              LeftLeftTopPanel["background"] <= C'218,112,214' <= PackedRect(0, 0, 0, 0);
              {
                {
                  _layout<CButton> StopLossSell("StopLossSell", 90, 20);
                  StopLossSell <= "Stop Loss" <= PackedRect(0, 0, 0, 0);
                }
              }
            }
            {
              _layout<CBoxV> LeftLeftCenterPanel("LeftLeftCenterPanel", 100, 118, (ENUM_WND_ALIGN_FLAGS)(WND_ALIGN_CONTENT|WND_ALIGN_HEIGHT));
              LeftLeftCenterPanel["background"] <= C'255,99,71' <= PackedRect(0, 30, 0, 30);
              {
                {
                  _layout<CButton> SellLimit("SellLimit", 90, 20, WND_ALIGN_TOP);
                  SellLimit <= "Sell Limit" <= PackedRect(0, 5, 0, 0);
                }
                {
                  _layout<CButton> SellButton("SellButton", 90, 54);
                  SellButton <= "Sell" <= PackedRect(0, 0, 0, 0);
                }
                {
                  _layout<CButton> SellStop("SellStop", 90, 20, WND_ALIGN_BOTTOM);
                  SellStop <= "Sell Stop" <= PackedRect(0, 0, 0, 5);
                }
              }
            }
            {
              _layout<CBoxV> LeftLeftBottomPanel("LeftLeftBottomPanel", 100, 30, WND_ALIGN_BOTTOM);
              LeftLeftBottomPanel["background"] <= C'154,205,50' <= PackedRect(0, 0, 0, 0);
              {
                {
                  _layout<CButton> TakeProfitSell("TakeProfitSell", 90, 20);
                  TakeProfitSell <= "Take Profit" <= PackedRect(0, 0, 0, 0);
                }
              }
            }
          }
        }
        {
          _layout<CBoxV> LeftBottomPanel("LeftBottomPanel", 100, 30, WND_ALIGN_BOTTOM);
          LeftBottomPanel["background"] <= C'188,143,143' <= PackedRect(0, 0, 0, 0);
          {
            {
              _layout<CButton> CloseSells("CloseSells", 90, 20);
              CloseSells <= "Close Sells" <= PackedRect(0, 0, 0, 0);
            }
          }
        }
      }
    }
    {
      _layout<CBoxV> CenterPanel("CenterPanel", 211, 238, WND_ALIGN_CLIENT);
      CenterPanel <= PackedRect(100, 0, 100, 0);
      {
        {
          _layout<CBoxV> CenterTopPanel("CenterTopPanel", 211, 30, (ENUM_WND_ALIGN_FLAGS)(WND_ALIGN_WIDTH|WND_ALIGN_TOP));
          CenterTopPanel["background"] <= C'192,192,192' <= PackedRect(0, 0, 0, 0);
          {
            {
              _layout<CButton> DeleteAll("DeleteAll", 201, 20, WND_ALIGN_WIDTH);
              DeleteAll <= "Delete All" <= PackedRect(5, 0, 5, 0);
            }
          }
        }
        {
          _layout<CBoxV> CenterCenterPanel("CenterCenterPanel", 211, 178, (ENUM_WND_ALIGN_FLAGS)(WND_ALIGN_CONTENT|WND_ALIGN_CLIENT));
          CenterCenterPanel <= PackedRect(0, 30, 0, 30);
          {
            {
              _layout<CBoxH> CenterRow1("CenterRow1", 211, 27, (ENUM_WND_ALIGN_FLAGS)(WND_ALIGN_CONTENT|WND_ALIGN_WIDTH));
              CenterRow1 <= PackedRect(0, 0, 0, 0);
              {
                {
                  _layout<CEdit> Row1EditLevel("Row1EditLevel", 66, 20);
                  Row1EditLevel <= "sl/tp" <= PackedRect(5, 0, 0, 0) <= ALIGN_CENTER;
                }
                {
                  _layout<ComboBoxResizable> Row1EditUnit("Row1EditUnit", 66, 20);
                  Row1EditUnit <= PackedRect(0, 0, 0, 0);
                  {
                    // dummy (feel free to delete)
                  }
                }
                {
                  _layout<ComboBoxResizable> Row1TrailingCombo("Row1TrailingCombo", 66, 20);
                  Row1TrailingCombo <= PackedRect(0, 0, 0, 0);
                  {
                    // dummy (feel free to delete)
                  }
                }
              }
            }
            {
              _layout<CBoxH> CenterRow2("CenterRow2", 211, 27, (ENUM_WND_ALIGN_FLAGS)(WND_ALIGN_CONTENT|WND_ALIGN_WIDTH));
              CenterRow2 <= PackedRect(0, 0, 0, 0);
              {
                {
                  _layout<CEdit> Row2LevelEdit("Row2LevelEdit", 66, 20);
                  Row2LevelEdit <= "pending" <= PackedRect(5, 0, 0, 0) <= ALIGN_CENTER;
                }
                {
                  _layout<ComboBoxResizable> Row2UnitCombo("Row2UnitCombo", 66, 20);
                  Row2UnitCombo <= PackedRect(0, 0, 0, 0);
                  {
                    // dummy (feel free to delete)
                  }
                }
                {
                  _layout<CDatePicker> Row2ExpDate("Row2ExpDate", 66, 20);
                  Row2ExpDate <= PackedRect(0, 0, 0, 0);
                  {
                    // dummy (feel free to delete)
                  }
                }
              }
            }
            {
              _layout<CBoxH> CenterRow3("CenterRow3", 211, 27, (ENUM_WND_ALIGN_FLAGS)(WND_ALIGN_CONTENT|WND_ALIGN_WIDTH));
              CenterRow3 <= PackedRect(0, 0, 0, 0);
              {
                {
                  _layout<CEdit> Row3VolumeEdit("Row3VolumeEdit", 99, 20);
                  Row3VolumeEdit <= "volume" <= PackedRect(5, 0, 0, 0) <= ALIGN_CENTER;
                }
                {
                  _layout<ComboBoxResizable> Row3VolumeUnit("Row3VolumeUnit", 99, 20);
                  Row3VolumeUnit <= PackedRect(0, 0, 0, 0);
                  {
                    // dummy (feel free to delete)
                  }
                }
              }
            }
            {
              _layout<CBoxH> CenterRow4("CenterRow4", 211, 27, (ENUM_WND_ALIGN_FLAGS)(WND_ALIGN_CONTENT|WND_ALIGN_WIDTH));
              CenterRow4 <= PackedRect(0, 0, 0, 0);
              {
                {
                  _layout<CButton> Repeat("Repeat", 66, 20);
                  Repeat <= "Repeat" <= PackedRect(5, 0, 0, 0);
                }
                {
                  _layout<CButton> BreakEven("BreakEven", 66, 20);
                  BreakEven <= "BrEven" <= PackedRect(0, 0, 0, 0);
                }
                {
                  _layout<CButton> Reverse("Reverse", 66, 20);
                  Reverse <= "Reverse" <= PackedRect(0, 0, 0, 0);
                }
              }
            }
            {
              _layout<CBoxH> CenterRow5("CenterRow5", 211, 27, (ENUM_WND_ALIGN_FLAGS)(WND_ALIGN_CONTENT|WND_ALIGN_WIDTH));
              CenterRow5 <= PackedRect(0, 0, 0, 0);
              {
                {
                  _layout<CEdit> Row5LevelEdit("Row5LevelEdit", 66, 20);
                  Row5LevelEdit <= "pending" <= PackedRect(5, 0, 0, 0) <= ALIGN_CENTER;
                }
                {
                  _layout<ComboBoxResizable> Row5UnitCombo("Row5UnitCombo", 66, 20);
                  Row5UnitCombo <= PackedRect(0, 0, 0, 0);
                  {
                    // dummy (feel free to delete)
                  }
                }
                {
                  _layout<CDatePicker> Row5ExpDate("Row5ExpDate", 66, 20);
                  Row5ExpDate <= PackedRect(0, 0, 0, 0);
                  {
                    // dummy (feel free to delete)
                  }
                }
              }
            }
            {
              _layout<CBoxH> CenterRow6("CenterRow6", 211, 27, (ENUM_WND_ALIGN_FLAGS)(WND_ALIGN_CONTENT|WND_ALIGN_WIDTH));
              CenterRow6 <= PackedRect(0, 0, 0, 0);
              {
                {
                  _layout<CEdit> Row6LevelEdit("Row6LevelEdit", 66, 20);
                  Row6LevelEdit <= "sl/tp" <= PackedRect(5, 0, 0, 0) <= ALIGN_CENTER;
                }
                {
                  _layout<ComboBoxResizable> Row6UnitCombo("Row6UnitCombo", 66, 20);
                  Row6UnitCombo <= PackedRect(0, 0, 0, 0);
                  {
                    // dummy (feel free to delete)
                  }
                }
                {
                  _layout<ComboBoxResizable> Row6TrailingCombo("Row6TrailingCombo", 66, 20);
                  Row6TrailingCombo <= PackedRect(0, 0, 0, 0);
                  {
                    // dummy (feel free to delete)
                  }
                }
              }
            }
          }
        }
        {
          _layout<CBoxV> CenterBottomPanel("CenterBottomPanel", 211, 30, (ENUM_WND_ALIGN_FLAGS)(WND_ALIGN_BOTTOM|WND_ALIGN_LEFT|WND_ALIGN_RIGHT));
          CenterBottomPanel["background"] <= C'192,192,192' <= PackedRect(0, 0, 0, 0);
          {
            {
              _layout<CButton> CloseAll("CloseAll", 201, 20, WND_ALIGN_WIDTH);
              CloseAll <= "Close All" <= PackedRect(5, 0, 5, 0);
            }
          }
        }
      }
    }
    {
      _layout<CBoxV> RightPanel("RightPanel", 100, 238, (ENUM_WND_ALIGN_FLAGS)(WND_ALIGN_HEIGHT|WND_ALIGN_RIGHT));
      RightPanel <= PackedRect(0, 0, 0, 0);
      {
        {
          _layout<CBoxV> RightTopPanel("RightTopPanel", 100, 30, WND_ALIGN_TOP);
          RightTopPanel["background"] <= C'119,136,153' <= PackedRect(0, 0, 0, 0);
          {
            {
              _layout<CButton> DeleteBuys("DeleteBuys", 90, 20);
              DeleteBuys <= "Delete Buys" <= PackedRect(0, 0, 0, 0);
            }
          }
        }
        {
          _layout<CBoxV> RightRightPanel("RightRightPanel", 100, 178, WND_ALIGN_HEIGHT);
          RightRightPanel <= PackedRect(0, 30, 0, 30) <= VERTICAL_ALIGN_STACK;
          {
            {
              _layout<CBoxV> RightRightTopPanel("RightRightTopPanel", 100, 30);
              RightRightTopPanel["background"] <= C'102,205,170' <= PackedRect(0, 0, 0, 0);
              {
                {
                  _layout<CButton> TakeProfitBuy("TakeProfitBuy", 90, 20);
                  TakeProfitBuy <= "Take Profit" <= PackedRect(0, 0, 0, 0);
                }
              }
            }
            {
              _layout<CBoxV> RightRightCenterPanel("RightRightCenterPanel", 100, 118, (ENUM_WND_ALIGN_FLAGS)(WND_ALIGN_CONTENT|WND_ALIGN_HEIGHT));
              RightRightCenterPanel["background"] <= C'0,191,255' <= PackedRect(0, 30, 0, 30);
              {
                {
                  _layout<CButton> BuyStop("BuyStop", 90, 20, WND_ALIGN_TOP);
                  BuyStop <= "BuyStop" <= PackedRect(0, 5, 0, 0);
                }
                {
                  _layout<CButton> BuyButton("BuyButton", 90, 54);
                  BuyButton <= "Buy" <= PackedRect(0, 0, 0, 0);
                }
                {
                  _layout<CButton> BuyLimit("BuyLimit", 90, 20, WND_ALIGN_BOTTOM);
                  BuyLimit <= "BuyLimit" <= PackedRect(0, 0, 0, 5);
                }
              }
            }
            {
              _layout<CBoxV> RightRightBottomPanel("RightRightBottomPanel", 100, 30, WND_ALIGN_BOTTOM);
              RightRightBottomPanel["background"] <= C'218,112,214' <= PackedRect(0, 0, 0, 0);
              {
                {
                  _layout<CButton> StopLossBuys("StopLossBuys", 90, 20);
                  StopLossBuys <= "Stop Loss" <= PackedRect(0, 0, 0, 0);
                }
              }
            }
          }
        }
        {
          _layout<CBoxV> RightBottomPanel("RightBottomPanel", 100, 30, WND_ALIGN_BOTTOM);
          RightBottomPanel["background"] <= C'119,136,153' <= PackedRect(0, 0, 0, 0);
          {
            {
              _layout<CButton> CloseBuys("CloseBuys", 90, 20);
              CloseBuys <= "Close Buys" <= PackedRect(0, 0, 0, 0);
            }
          }
        }
      }
    }
  }
}
