読み取り専用

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

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

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

ご参加ください Discord YouTube

Building Value Chart problem

1件の返信

Aj

サブスクライバー、bpb_participant、顧客、コミュニティ、29件の回答。.

プロフィールを表示

4年前 #276546

皆様、こんにちは,

I am trying to build a Value Chart on Code Editor and I am having problem to call an average function to build this:

Var:
Rel(0), Vol(0);

rel = average((H+L)/2, Period);
vol = average((H-L), Period);
ValueOpen = (open – rel / (vol * 1/period)

I did this

@Override
protected void OnBarUpdate() は TradingException を発生させます。

double HL = 0;
double HL2 = 0;
double rel = 0;
double vol = 0;

if (CurrentBar < Period) {

value.set(0, 0);

HL = Input.High.get(0) – Input.Low.get(0);
HL2 = (Input.High.get(0) + Input.Low.get(0))/2;
Relative.onBarUpdate(0, CurrentBar);
Volat.onBarUpdate(0, CurrentBar);
return;
}

Relative.onBarUpdate(HL2, CurrentBar);
Volat.onBarUpdate(HL, CurrentBar);
// DeMinAverageCalculator.onBarUpdate(Math.max(Chart.Low(1) – Chart.Low(0), 0), CurrentBar);

double Rel = Realtive.getValue();
double Vol = Realtive.getValue();

double VO = (Input.Open.get(0) – Rel / (Vol * 1/Period) );

Value.set (0, VO);

and nothing happened

I’d appreciate some help on it

0

Tomas Matejka

管理者、sq-ultimate、2件の返信.

プロフィールを表示

4年前 #276733

This does not seems to be complete code. If you send us the complete code to [email protected] we could check more

0

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