Reversal Strategy - How to define StopLoss

 

Hello, 


I am using simple RSI + BollingerBands to find reversal and take a trade. i am not using any Take Profit or StopLoss defined directly in Order or defined in Point/Pips instead i am using Indicator to calculate When to close trade in profit (Take Profit similar) but the problem is i am confused about when to close the trade in loss (Stop Loss Similar). 

Entry : 

//fRSI, fBands is seperate function
   double RSI_Value = fRSI(rSymbol, SelectedTimeFrame, RSI_Period, PRICE_CLOSE, 1);
   double BB_UpperBand_ResistanceLine = fBands(rSymbol, SelectedTimeFrame, BollingerBands_Period, BollingerBands_deviation, 0, PRICE_CLOSE, MODE_UPPER, 1);
   double BB_LowerBand_SupportLine = fBands(rSymbol, SelectedTimeFrame, BollingerBands_Period, BollingerBands_deviation, 0, PRICE_CLOSE, MODE_LOWER, 1);
   double HighPrice = iHigh(rSymbol, SelectedTimeFrame, 1);
   double LowPrice = iLow(rSymbol, SelectedTimeFrame, 1);

   if(RSI_Value < RSI_BelowLevel && LowPrice < BB_LowerBand_SupportLine)
      NewOrderSend();
   else
      if(RSI_Value > RSI_AboveLevel && HighPrice > BB_UpperBand_ResistanceLine)
         NewOrderSend();

Take Profit (With Indicator) : 

      double bid = SymbolInfoDouble(symbol, SYMBOL_BID);
      double ask = SymbolInfoDouble(symbol, SYMBOL_ASK);
double open = OrderGetDouble(ORDER_PRICE_OPEN);
      /* ================= RSI Closing (Take Profit) ================= */
      double RSI_Value = fRSI(rSymbol, SelectedTimeFrame, RSI_Period, PRICE_CLOSE, 1);

      bool closeRSI =
         (type == POSITION_TYPE_BUY  && bid > open && RSI_Value >= RSI_AboveLevel) ||
         (type == POSITION_TYPE_SELL && bid < open && RSI_Value <= RSI_BelowLevel);

      if(closeRSI)
        {
         CloseTrade();
         continue;
        }

      /* ================= BB Closing (Take Profit) ================= */


         double BB_UpperBand_ResistanceLine = fBands(rSymbol, SelectedTimeFrame, BollingerBands_Period, BollingerBands_deviation, 0, PRICE_CLOSE, MODE_UPPER, 1);
         double BB_LowerBand_SupportLine = fBands(rSymbol, SelectedTimeFrame, BollingerBands_Period, BollingerBands_deviation, 0, PRICE_CLOSE, MODE_LOWER, 1);



      bool closeBB =
         ((type == POSITION_TYPE_BUY && bid > open && bid >= BB_UpperBand_ResistanceLine )  ||

         (type == POSITION_TYPE_SELL && bid < open & bid <= BB_LowerBand_SupportLine ));

      if(closeBB)
        {
         CloseTrade();
         continue;
        }

Take profit working amazing.

StopLoss (With Indicator) : ??? - I am unable to understand this part. when should i close the trade at loss?. Need suggestion.