header - Full response header. It has 4 properties: status_code - HTTP status code error_code - Server's error code, e.g. This is thrown when server returns 5XX , it's an issue from server side. binance.error.ClientError This is thrown when server returns 4XX , it's an issue from client side. -1102 error_message - Server's error message, e.g.<br><br>It defaults to 5000 (milliseconds) and can be any value lower than 60000 (milliseconds). Anything beyond the limit will result in an error response from Binance server. Additional parameter recvWindow is available for endpoints requiring signature.<br><br>In Bot.py on line 341 are the settings. Strategies are implemented in Data_Set.py as a function named Make_decision() in the Data_set class Make_decision() must return Trade_Direction,stoplossval,takeprofitval for the strategy to work properly You might draw inspiration for a strategy from one In TradingStrats.py. Choose the Interval you want to trade and the buffer of candlesticks your strategy will need. Trailing stop: set use_trailing_stop to 1 and change trailing_stop_percent to suit your strategy to use the trailing stop (Min val .001 i.e .1%, Max 5 i.e 5%). leverage and btc order_size should be changed acording to your preference symbol is a list of the symbols you wish to trade, the default is all the coins on the exchange currently. The trailing stop will be placed when the takeprofitval margin of increase/decrease is reached from your strategy.<br><br>So a BLVT is essentially a tokenized version of leveraged futures positions. Binance Leveraged Tokens (BLVTs) are tradable assets on the <a href="https://crypto-currency.host/binance-futures-how-to-trade-futures-on-binance-review-binance-futures-guide-2022/">Binance</a> spot market. Each BLVT represents a basket of open positions on the perpetual futures market.<br><br>Clicking links or btc purchasing products recommended on this page may generate income for this website from affiliate commissions and btc you should assume we are compensated for any purchases you make. Our goal is to help you make the best purchasing decisions, however, the views and opinions expressed are ours only. The information in this video is for binance futures educational purposes only and is not investment or financial advice. While we receive affiliate compensation for reviews/promotions on this page, we always offer honest opinions, relevant experiences, and genuine views related to the product or service itself. ===================================================== Disclaimer: 1. Past performance is not an indication of future results. The crypto and passive income industry are risky, and you should only invest the amount of money you can afford to lose. Please understand this before you invest your time and money. Do your research before investing. ===================================================== NEVER invest money that you need for basic monthly things like food, mortgage, health, and education. As always you should do your own due diligence to verify any claims, results, and statistics before making any kind of purchase. All my videos are of my own opinions and experiences that are working for me.<br><br>Whereas symbol = ['BTCUSDT'] would run the strategy on BTC only. The data is split into an in-sample set and a test set, the flag test_set decides which set we are running the strategy on. Create a list named 'symbol' of coin/coins you wish to run a strategy on ie. Next we want to choose our TA strategy, this is done after line 640 , binance uncomment a strategy or call a new strategy you have written yourself here, the 'prediction' variable is used to tell the script to go short (0), go long (1), or go flat (-99). Settings are found at the top of the script, line 52 . The reason for splitting the data like this is to optimize parameters on the in-sample set and then once optimized run the strategy on the test-set to see if you have overfit your model by cherry picking values for parameters that suit the in-sample data. This should be returned by custom strategy functions/classes you write for the strategy to be executed correctly Some of the pre-coded strategies return a 'Type' variable, if a strategy returns the 'Type' variable you must call the SetSLTP() function from TradingStrats.py in order to set the corresponding Stop loss value, and Take profit value, this function is found in TradingStrats.py Now just run the script and wait a few minutes for it to pull the data and begin backtesting Heikin Ashi Candles are available under: CloseStream_H, OpenStream_H, LowStream_H, HighStream_H which can be referenced or passed to Strategies. Trailing Stop: turn the use_trailing_stop flag on, specify the trailing_stop_distance in decimal, now when a takeprofit margin target is hit the trailing stop will be placed and automatically & adjusted based off new Lows or binance Highs in price and binance the trailing_stop_distance you've specified. symbol = ['BTCUSDT' , 'ETHUSDT'] , this would run your strategy on BTC and ETH.<br><br>[_] Read Info [_] Enable Trading [_] Enable Futures [X] Enable Withdrawals Whitelist your IP address to further secure your account, and so that your API keys don't expire after 1 month. Create a Binance Account (This link uses my referral which gives you 5% kickback on trades & would be greatly appreciated) Enable Two-factor binance futures Authentication in the security section to keep your crypto safe. Fill in your api keys into api_secret and api_key in API_keys.py. Create a new API key under the API Management section.
เข้าชม : 2312