joshyattridge / smart-money-concepts

Discover our Python package designed for algorithmic trading. It brings ICT's smart money concepts to Python, offering a range of indicators for your trading strategies.
https://pypi.org/project/smartmoneyconcepts/
MIT License
333 stars 190 forks source link

How to use test_fvg in "smart-money-concepts/tests/test_smc.py" #58

Open louishuidev opened 3 weeks ago

louishuidev commented 3 weeks ago

i am confusing on test_fvg

def test_fvg(df, fvg_result_data): start_time = time.time() fvg_data = smc.fvg(df, join_consecutive=True) print("fvg test time: ", time.time() - start_time) pd.testing.assert_frame_equal(fvg_data, fvg_result_data, check_dtype=False)

i input df and can get the fvg_data from smc.fvg function , but what is fvg_result_data from ?

joshyattridge commented 1 week ago

Hi,

This is a unit test script to confirm the functions still work incase anyone makes any changes