title: Python Stock Market Prediction code
body: <p>The Order sell condition: When ALL dataframe(5min, 15min, 60min and day) appear the sell signal( Signal ==-1) in the same day, return the date and closing price. I am able to generate order signal when 5min, 15min, 60min signals are matched (I didn't use the signal from day bar, as I cannot add it to the "dfall" dataframe. Need to solve this for better order signal)</p>
  
  <pre><code>for index, row in dfall.iterrows():
      order_buy_5 = dfall['Signal_5']==1
      order_buy_15 = dfall['Signal_15']==1
      order_buy_60 = dfall['Signal_60']==1
      order_buy_day = dfday['Signal']==1
      order_buy = (order_buy_5 &amp; order_buy_15 &amp; order_buy_60).item()
  
      if order_buy == True:
          print(dfday.index)
  </code></pre>
  
  <p>I then get this error</p>
  
  <pre><code>TypeError                                 Traceback (most recent call last)
  &lt;ipython-input-43-74a6a9101682&gt; in &lt;module&gt;()
  ----&gt; 1 for index, row in dfall.iterrows:
        2     order_buy_5 = dfall['Signal_5']==1
        3     order_buy_15 = dfall['Signal_15']==1
        4     order_buy_60 = dfall['Signal_60']==1
        5     order_buy_day = dfday['Signal']==1
  
  TypeError: 'method' object is not iterable
  </code></pre>
  
  <p>How do i resolve this?</p>