Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import asyncio | |
| import logging | |
| import os | |
| import subprocess | |
| import sys | |
| import warnings | |
| from datetime import datetime | |
| from typing import Dict, Any, Optional | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import asyncio | |
| import json | |
| import os | |
| from typing import Dict, List | |
| from dotenv import load_dotenv | |
| import pandas as pd | |
| import plotly.express as px | |
| import streamlit as st | |
| from core.backtesting.optimizer import StrategyOptimizer | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import asyncio | |
| import datetime | |
| import logging | |
| import os | |
| from typing import Dict | |
| import pandas as pd | |
| import pandas_ta as ta # noqa | |
| from controllers.directional_trading.xtreet_bb import XtreetBBControllerConfig | |
| from core.backtesting.optimizer import BacktestingConfig, BaseStrategyConfigGenerator | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | from typing import Dict | |
| import pandas as pd | |
| import pandas_ta as ta # noqa: F401 | |
| from hummingbot.connector.connector_base import ConnectorBase | |
| from hummingbot.data_feed.candles_feed.candles_factory import CandlesConfig, CandlesFactory | |
| from hummingbot.strategy.script_strategy_base import ScriptStrategyBase | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import asyncio | |
| import pandas as pd | |
| from datetime import datetime | |
| from hummingbot.data_feed.candles_feed.ascend_ex_spot_candles import AscendExSpotCandles | |
| from hummingbot.data_feed.candles_feed.bybit_perpetual_candles import BybitPerpetualCandles | |
| from hummingbot.data_feed.candles_feed.bybit_spot_candles import BybitSpotCandles | |
| from hummingbot.data_feed.candles_feed.data_types import HistoricalCandlesConfig | |
| from hummingbot.data_feed.candles_feed.gate_io_perpetual_candles import GateioPerpetualCandles | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | from decimal import Decimal | |
| from typing import List, Optional | |
| import numpy as np | |
| import pandas as pd | |
| import pandas_ta as ta # noqa: F401 | |
| from pydantic import Field, validator | |
| from hummingbot.client.config.config_data_types import ClientFieldData | |
| from hummingbot.core.data_type.common import TradeType, OrderType, PriceType | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import os | |
| import time | |
| from decimal import Decimal | |
| from typing import Dict, List, Optional, Set | |
| from pydantic import Field | |
| from hummingbot.client.hummingbot_application import HummingbotApplication | |
| from hummingbot.connector.connector_base import ConnectorBase | |
| from hummingbot.core.clock import Clock | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import os | |
| import time | |
| from decimal import Decimal | |
| from typing import Dict, List, Optional, Set | |
| from pydantic import Field | |
| from hummingbot.client.hummingbot_application import HummingbotApplication | |
| from hummingbot.connector.connector_base import ConnectorBase | |
| from hummingbot.core.clock import Clock | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | from plotly.subplots import make_subplots | |
| import plotly.express as px | |
| import plotly.graph_objects as go | |
| import streamlit as st | |
| import numpy as np | |
| import pandas as pd | |
| def simulate_single_trial(win_prob, target_wins, initial_bet=1, initial_amount=10): | 
NewerOlder