kishan-1721 commited on
Commit
8c59784
·
verified ·
1 Parent(s): 5d9f6c9

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +2 -1
src/streamlit_app.py CHANGED
@@ -85,7 +85,7 @@ def main():
85
 
86
  selected_script = st.radio(
87
  "Select Your Script",
88
- ["Old", "New Maxloss 5%"],
89
  index=0
90
  )
91
 
@@ -235,6 +235,7 @@ def main():
235
  container.text(f"Total Target Hit: {len(final_df[final_df['Exit Condition'] == 'Target Hit'])}")
236
  container.text(f"Total Trailing Hit: {len(final_df[final_df['Exit Condition'] == 'Trailing Hit'])}")
237
  container.text(f"Total IntraBar Hit: {len(final_df[final_df['Exit Condition'] == 'IntraBar Hit'])}")
 
238
  container.text(f"High - Low Average: {round(final_df['change %'].mean(), 2)}")
239
  # container.text(f"High - Low Average Number new: {round(np.percentile(final_df['change %'], 60), 2)}")
240
  container.text(f"% Winning Ratio {round((len(final_df[final_df['Profit'] > 0]) / len(final_df)) * 100, 2)} %")
 
85
 
86
  selected_script = st.radio(
87
  "Select Your Script",
88
+ ["Old", "New Maxloss"],
89
  index=0
90
  )
91
 
 
235
  container.text(f"Total Target Hit: {len(final_df[final_df['Exit Condition'] == 'Target Hit'])}")
236
  container.text(f"Total Trailing Hit: {len(final_df[final_df['Exit Condition'] == 'Trailing Hit'])}")
237
  container.text(f"Total IntraBar Hit: {len(final_df[final_df['Exit Condition'] == 'IntraBar Hit'])}")
238
+ container.text(f"Total MaxLoss Hit: {len(final_df[final_df['Exit Condition'] == f'MaxLoss {max_loss_sl}% Hit'])}")
239
  container.text(f"High - Low Average: {round(final_df['change %'].mean(), 2)}")
240
  # container.text(f"High - Low Average Number new: {round(np.percentile(final_df['change %'], 60), 2)}")
241
  container.text(f"% Winning Ratio {round((len(final_df[final_df['Profit'] > 0]) / len(final_df)) * 100, 2)} %")