Im using python-Amipy to place the order and all signal generation is from AFL. To place an order first i need to login and create a python-broker-objectand use it place the order.
I was thinking of creating an object begining of the session and use it thoughout the session, but i see that python-object return is not supported. Is there any alternative way to implement this. Otherwise i need to login everytime right before i place the order.
You did not provide formula/code. Please follow this advice:
How to ask a good question
Im not sure why this question requires the Formula code, this is pretty generic.
is the AFL-amipy supports python-object return from the python function?
PyLoadFromFile("example1", "C:\\Program Files.....\\test.py");
user_id = "e6-26c1-4fea-9ea2-c6e33bfcb209";
diff = PyEvalFunction("example1", "test", user_id );
python code :
def test(user_id) :
broker_obj = AutoTrader.create_instance(user_id, AutoTrader.SERVER_URL)
Yes code is needed to know what you did. We don't have magic mirrors.
Did you read the docs?
AmiPy plug-in: AmiBroker-Python integration
UPDATE April 4, 2023: Version 1.0.3 released!
With permission from @Tomasz I am announcing here the next version of my AmiBroker-Python integration plugin. This plugin allows you to call Python functions from AFL side. This opens out possibility to use wide selection of Python libraries such as numpy, scilearn, tensorflow and such in AmiBroker.
It takes a great amount of time developing a program for public use so if You are using this plug-in on ev…
Where in the docs did you find that you can return Python objects????
You can't. Read the docs.
If something is NOT in the docs it is NOT available. It is written in the docs what types you can return.
AmiBroker is NOT PYTHON. Why you expect PYTHON objects to be assignable to AFL variable (that is NOT PYTHON based) is beyond any reasonable person understanding.
So again: read the docs. If something is NOT in the docs, it does NOT exist.