読み取り専用

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

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

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

ご参加ください Discord YouTube

Doing the EA right?

7件の返信

ステアノ

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

プロフィールを表示

13年前 #110806

I drafted the attached EA. Am I doing it correctly?

I have a custom indicator that provides Entry, Stop, Profit Target, and Trailing stop.

1. EA places 3 Stop Orders when the entry price populates in the field by the Indy.
2. Put the stop and profit target on each as provided by the Indy
3. Then, when the indy populates the ActiveStop field, EA to change the stop price (or do a trailing stop) and then do it again when the Indy updates the ActiveStop field to a new number.

I appreciate your feedback and help!

Stearno

ファイル SST EA.sqw

0

マーク・フリック

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

プロフィールを表示

13年前 #120703

Hello Stearno,

it seems correct, although I don’t know the original strategy.
The 3 stop orders are placed correctly, the only problem could be with trailing stop -it can be implemented in a different way in your trading system than it is in EA Wizard.

> 3. Then, when the indy populates the ActiveStop field, EA to change the stop price (or do a trailing stop) and then do it again when the Indy updates the ActiveStop field to a new number.

if you want to change the stop loss only after the Indy updates the ActiveStop field you probably should add new rule for that.
The rule would be:
もし
(order exists and iCustom(…, ActiveStop) > 0)
それから
Move SL To iCustom(…, ActiveStop)

best regards,

マーク

マーク
StrategyQuantアーキテクト

0

ステアノ

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

プロフィールを表示

13年前 #120705

マーク、,
Great feedback. I will update these settings after the new update with the increased parameters. Thank you!

0

ステアノ

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

プロフィールを表示

13年前 #120893

You said, “if order exists.” What do I choose to check that logic?

I looked under Strategy Control, but nothing seemed to return if an open order existed by a the magic number.

Also, under Market Position, what is Flat, Long, Short used for/mean?

ありがとう

ステアルノ

0

マーク・フリック

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

プロフィールを表示

13年前 #120906

there are two functions to check if order is opened:
Market Position – returns position of the whole EA
Order Position(MagicNumber) – returns position of order with given magic number

The possible return values of these functions are:
Flat – it means there is no open position
Short/Long – it means there is short or long position open

マーク
StrategyQuantアーキテクト

0

ステアノ

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

プロフィールを表示

13年前 #120908

Oh, okay. I was thinking Flat/Short/Long could possibly be the profit/loss. Thanks for clearing that up.

So now doing as you asked, ran across two more questions:

1. This EA will open 3 Long orders when the long conditions are met. If I do another tab for moving the stop loss, do I have to do a tab for each Long order (magic Long1, Magic long2, Magic Long3) or can I do one tab that will have 3 Then statments each one moving a SL for each order. Reason I ask is, maybe Long Order 1 has reached the Profit Target, so only 2 orders remain open. If the Then statement is calling on that order to change its SL and does not exist, will that cause a problem or it will skip it and move to the next Then statement. If it causes a problem, then I have to do a Tab for each MagicNumber to modify that one order only. (example of each attached with 3 on one tab, and only one on one tab, which will work)?

2. Also, the ActiveStop indicator output will be populated and then change the numbers. So what I was thinking is the If statement will compare the Active Stop output [1] to the previous Active Stop Output [2]. If it is greater (cause going long, so stop will only rise), then move the stop to the new output. Is this the best way?

ありがとう、,
ジョナサン

0

マーク・フリック

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

プロフィールを表示

13年前 #120917

1. This EA will open 3 Long orders when the long conditions are met. If I do another tab for moving the stop loss, do I have to do a tab for each Long order (magic Long1, Magic long2, Magic Long3) or can I do one tab that will have 3 Then statments each one moving a SL for each order. Reason I ask is, maybe Long Order 1 has reached the Profit Target, so only 2 orders remain open. If the Then statement is calling on that order to change its SL and does not exist, will that cause a problem or it will skip it and move to the next Then statement. If it causes a problem, then I have to do a Tab for each MagicNumber to modify that one order only. (example of each attached with 3 on one tab, and only one on one tab, which will work)?

you can put it into the same trading rule. If the order doesn’t exist and you try to modify its SL/PT then nothing happens, it is just ignored.

2. Also, the ActiveStop indicator output will be populated and then change the numbers. So what I was thinking is the If statement will compare the Active Stop output [1] to the previous Active Stop Output [2]. If it is greater (cause going long, so stop will only rise), then move the stop to the new output. Is this the best way?

yes, I think this is the only way, if you need to check for change in the ActiveStop value

マーク

マーク
StrategyQuantアーキテクト

0

ステアノ

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

プロフィールを表示

13年前 #120926

Thanks, Mark. Very helpful.

0

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