読み取り専用

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

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

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

ご参加ください Discord YouTube

2次発動のトリガーに関するヘルプ

2件の返信

ssdex

カスタマー、bbp_participant、コミュニティ、99件の返信。.

プロフィールを表示

11年前 #113320

こんにちは,

 

I’m having trouble working out how to get the next order after a loss to take a different lot size. 

 

IF(buy rules)=True

Then(assign variable) = 1

 

IF(variable)=1 

Then(enter buy)

(assign variable) = 0

 

 

The above code works all day long. The problem is in the next piece (I think).

 

IF(closed p/l 0,0) <0

Then (assign variable) = 2

 

IF(variable)=2

&& (buy rules) = true

THEN(enter buy w/larger lot)

 

This seems to never take the larger trade after a loss. Is there something I’m missing?

 

Thanks for any help with this issue.

 

ジェームズ

0

マーク・フリック

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

プロフィールを表示

11年前 #128799

if it doesn’t work it looks like the second two rules are never triggered.

It depends also on how exactly it is done, if you’ll post the strategy here I can look at it.

 

You should be aware that rules are evaluated in order they are created, so your first rule always sets the variable to 1, and your second rule then always make a trade.

マーク
StrategyQuantアーキテクト

0

ssdex

カスタマー、bbp_participant、コミュニティ、99件の返信。.

プロフィールを表示

11年前 #128843

Thanks Mark.

 

I finally reversed the order and the trades execute correctly.

 

Thanks again.

0

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