読み取り専用

フォーラムは現在、読み取り専用のアーカイブとなっています。.

バグ報告やプラットフォームに関する質問はこちら → [email protected]

私たちのコミュニティはDiscordとYouTubeで活動しています。ぜひ参加してください!

ご参加ください Discord YouTube

In custom indicator, Can’t access order info in Strategy.Trader

1件の返信

テレマニアス

サブスクライバー、bpb_participant、9件の回答。.

プロフィールを表示

1年前 #290344

I created a custom indicator snippet and tried to retrieve orders information. The compilation is successful but when I tested it in algowizard a tradingException is shown.
The only thing I modified for this custom indicator is the OnBarUpdate method, which looks like below
   @Override
    protected void OnBarUpdate() throws TradingException {
        double result = 0;
        int opencount = Strategy.Trader.getOpenOrdersCount()
        Main.set(0, result);
    }
Is it not possible to access strategy orders in custom indicators? is there any way to do it? I want to create exits similar to ExitAfterBars that uses BarsSinceOrderOpen, which uses the open order information.

0

テレマニアス

サブスクライバー、bpb_participant、9件の回答。.

プロフィールを表示

1年前 #290345

Maybe it is possible to implement in strategy control?
Can I retrieve both market data and open/historical order information in strategy control?

0

1件の返信を表示中 - 1 - 1件目 (全1件中)