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

 
長崎良美

Why my order being closed immediately?

Hi I sent a market order with 1% stop loss condition like below. def = AlgoAPIUtil . OrderObject( ...

 
Chan Yu Sing

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

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

 
Sharwan Patel

How to set order volume to balance percentage?

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

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

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

 
admin

Guideline to backtest with custom datasets

New features For more feasibility of our platform, ALGOGENE now supports new features: import multiple custom data files specify user-defined file formats ...

 
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

ALGOGENE Market Data Solutions

What market data is available on ALGOGENE? The list below will get update from time to time. ASSET CLASS SYMBOL DESCRIPTION AVAILABLE FROM ...

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

 
Lee Chang Jun

How can I access whether certain trade closed with either targetprofit or stoploss?

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

 
Kwan Chi Yeung

Example in Tutorials (Moving Average)

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

 
Katerina

Why I enabled Position Netting but PL still floating?

I have a question regarding position netting. From the Tech Doc description here , it mentioned that PL will be realized when the ...

 
Gary Fung

How to close orders by orderRef?

Hey there! I have a backtest script containing multiple strategies. I managed the orders in a way that orders opened from the same strategy will have the same order reference. ...

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

 
Percy

What is the cause of DANGER message in backest?

I encountered below danger message during backtesting. I am wondering what it is about and how to get rid of it. Thank you! ...

 
隻揪隻

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

 
Tommy

How to get historical data before algo starts?

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

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

 
Fred

How to co-edit a backtest script with my teammates?

Hi, my team is working on an algo project. Can we code and comment a backtest script at the same time? ...

 
Mukesh Ram

How to implement CAPM?

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

 
Nezuko

Too annoying for IBKR to re-auth weekly...

Hi, does anyone use IBKR TWS for trading? I've been getting lots of "None" type returns from IBKR's API. Is IBKR's API still doing that thing where you have to install their clien ...

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

 
Joseph Chang

Why PL keeps changing while my position is zero?

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