Search result found: 90


 
Freeze

API to query trade PL

My strategy need the unrealized PL of my trades to decide take profit or stop loss. I checked the tech doc a few times but still can't find related implementation details. An ...

 
Terminator

How to set transaction cost as a percentage?

Hey there, any one know how to set transaction cost as a percentage in backtest? ...

 
Julian

How to use Portfolio Optimizer in backtest?

I find the portfolio optimizer very useful for building portfolio. How can I integrate this tool in my backtest? ...

 
William Cheung

Is economic data available in tick environment only?

In backtesting, it seems economic data stream is only available in tick environment. Is it possible to use econ data for other time intervals? ...

 
Hojin Yun

Usage of Instruments Other than Crypto for Algo-Trading Crypto Challenge Competition

Hello, I am currently trying to implement our teams' strategy on the backtesting platform. However, I tried to use other instruments such as gold price, but it seems I can only select Crypto data. I h ...

 
David

How to query on-the-run future data?

Hello community! According to REST API Doc , I know I can query historical OHLC data for pla ...

 
Kumar

How to set limit close order?

Hello, I found that the close order API only support market order. How can I close a position using limit order? ...

 
admin

Matplotlib for data visualization on ALGOGENE IDE

Visualizing datasets on ALGOGENE Research Lab is extremely simple. This articles shows you how to apply a popular Python charting library 'matplotlib' to acheive this. With 'matplotlib', you can cr ...

 
admin

Data exploration with Jupyter Notebook

Here comes a new platform feature on ALGOGENE to directly work with Jupyter Notebook! ...

 
Donald

Order closed with unexpected price

Hi there, I have a script running in the live-test environment. I found that one of my order for 7500HK was closed at $4.77 on 7-Jul. However, I checked other data sources, the lowest price on that day doesn't hit that low. ...

 
Jeremy

How to check whether a news appears during trading session?

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 ...

 
admin

Guideline for Strategy Parameter Optimizer

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 ...

 
Donald

How to deploy model from Juypter Notebook?

Following this post , I have trained a model using the online Juypter Notebook. My question is how can I dep ...

 
tony lam

3 Tips to make your code more pythonic

This article will introduce you to the top 3 ways you might not be fully taking advantage of to write better Python code, including: List Comprehension Dictionary Access ...

 
Duval LC

10 Powerful Python One-Liners Every Data Engineer Should Know

If you spend your days stitching together ETL jobs, watching dashboards, and taming semi‑structured logs, Python one‑liners can feel like superpowers. They compress intent into readable, testable s ...

 
admin

Guideline to import custom package

Suppose we already have a python package/function created on a local machine. This article will guide you through the steps to plug into ALGOGENE for backtest, live-test or real-trading. ...

 
Henry Tsai

How to implement stoploss?

Hello team, I am trying to implement a stop loss in my strategy. I’m not quite sure how to do it. Can someone provide more guidance? ...

 
Bee Bee

How to print a debug message?

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. ...

 
Sergei

How to backtest with 3-hour data interval?

I have a strategy that works well with 3-hour candles. However, I don't see such option in the backtest setting. How can I do that? ...

 
admin

Guidelines to re-use model results for backtests

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 ...

 
shah

how to get minute level data into Jupyter notebook

i have tried this by changing the D to M.. but it did not work ...

 
chantomkit

Can I use the getHistoricalBar only for live testing

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 ...

 
admin

Guideline to upload custom data via API

Following the article Guideline to backtest with custom datasets , we learnt how to upload custom data to the system for backtest ...

 
隻揪隻

How to query historical data for my custom instrument?

Hey, I followed this post to upload my data ( https://algogene.com/community/post/26 ). How can I query my custom instrument ...

 
Bella

Stock price issue

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 ...