Close position with market order
I see the error "[2020-01-01 23:25:00] EvtSendOrder Error: the sendOrder attribute parm 'openclose' does not support value 'close' under position base environment." in the console. I am try ...
I see the error "[2020-01-01 23:25:00] EvtSendOrder Error: the sendOrder attribute parm 'openclose' does not support value 'close' under position base environment." in the console. I am try ...
Overview It is common that a trading algorithm involves a number of user defined trading parameters. To optimize the algorithm's trading performance, developers usually need to tweet the parameters, re-run ...
How to access news data feed and how to change the parameter of news data feed function? And does it output a dataframe or a dictionary? ...
Hi all, I have a question related to placing orders. I checked from Tech Doc that the order volume refers to the number of contract to buy. However, I want to buy for 1% of balance ...
Here comes a new platform feature on ALGOGENE to directly work with Jupyter Notebook! ...
I looked at the documents for querying orders but I couldn't find how I can query closed orders. I need to know whether my orders closed with target profit or stop loss. May I know how I can access th ...
There is only one instrument used In the moving average programming example. May I know if there is any method that can perform the same action but subscribes to more than one instrument? For example, ...
Working with text files is a common task in programming, and Python makes it incredibly easy. Whether you're logging data, manipulating configurations, or analyzing datasets, leveraging Python’s po ...
Hi, I tried to use the getHistoricalBar to retrieve past price data based on the tech docs, but it doesnt work, got some missing evt or mevt error. ...
I am able to place order and got this error " Invalid order is rejected due to insufficient capital " Here is my code. Please help! ...
The python 'print' function doesn't work on the backtest platform. Any one can help? I tried print("hello world") , but nothing shown in the 'console' session. ...
Hi, my team is working on an algo project. Can we code and comment a backtest script at the same time? ...
This may be a simple question. My trading idea is to buy stocks which have positive excess return base on CAPM theory. Anyone can give some guidance how the backtest code should be ...
Hi there, I have developed several simple trading strategies. Following the optimization method from the youtube tutorial ( ...
Every time when I run a backtest on the platform, I need to wait for it to complete or cancel it first before I can run another backtest. Is there any way I can run multiple backtests at the ...
Hi all, from the technical document, i know that "session=0" refers to trading session for placing orders. Orders will be rejected for other non-trading sessions. In fact, my strategy analyz ...
When developing a trading algorithm, it may be the case where we have trained/built a particular model for a financial instrument and want to apply it on other financial sectors/markets. For such c ...
From my understanding, NAV and "Cumulative PnL" should remain unchanged, if there is no outstanding positions. However, from the backtest result (see highlighted below), for certain days when "Net Position" is zero, "Cumulative PnL" is not constant. ...
My strategy needs 1-year of past closing prices to build the tensorflow model. I see the platform processing data in a stream format. Is it possible to get historical data be ...
I have a question regarding position netting. From the Tech Doc description here , it mentioned that PL will be realized when the ...
Hi team, I found that the price for 06689HK looks strange. From the console, the price level is around 90.0 before 2023-01-06, but it studdenly drops to the level of 30 aft ...
Hi , is it possible to import a cython module into the strategy code to use its functions ? ...
Hey there, I am a participant of the Algo Trading Challenge 2023/24 (Global) . Just want to clarify whether t ...
Hello community, I have a question regarding the dataset on the platform. I use the getHistoricalBar ...
Hello, I want to ask about the function of getHistoricalBar. For example in backtesting, I want to get the historical 2min bar data of certain instrument and calculate some indicato ...