pridan zaklad k custom indikatorum

This commit is contained in:
David Brazda
2023-09-10 21:20:22 +02:00
parent e08ae0f537
commit f568f62687
10 changed files with 621 additions and 67 deletions

23
testy/evalscope.py Normal file
View File

@ -0,0 +1,23 @@
# def my_function():
# return "Hello, World!"
# def call_function_by_name():
# func_name = "my_function"
# # Use eval to call the function
# result = eval(func_name)()
def my_function():
return "Hello, World!"
def call_function_by_name():
# Create a closure to capture the my_function function
def inner_function():
return eval("my_function")()
result = inner_function()
return result
print(call_function_by_name())