Millenium

Generation

generate functionMon, 10 Apr 2023

search the BNBUSDT chart for any maximum and minimum to determine the maximum and minimum of a Japanese candle that is in the extreme, and plot Fibonacci levels from 0 to 1 on the extreme candle, where 0 should be at the extreme.

from talib import abstract from datetime import datetime import backtrader as bt def fibo(self): # calculate the fibonacci levels # find the maxima and minima # get the index of the extreme candle # plot the fibonacci levels from 0 to 1 on the extreme candle fibo()

Questions about programming?Chat with your personal AI assistant