読み取り専用

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

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

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

ご参加ください Discord YouTube

このタイプのストップロスをエントリー価格に近づく方向のみに移動するように設定する方法

1件の返信

しきい値

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

プロフィールを表示

12年前 #112261

This is a defensive type stop loss I made for a system to exit early if the trade shows a signal that it is not working. Its a daily system but this “Defenze” variable triggers a PERIOD_M15 ATR to tighten and trail a the stop loss.

The problem is not that the stop loss keeps moving with the ticks, but it sometimes will move away from the entry price instead of closer. Stop losses should always only move closer, never wider in my opinion.
How can this be modified?

ファイル Untitled5.pngUntitled5.png

0

マーク・フリック

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

プロフィールを表示

12年前 #124978

こんにちは,

 

if you use Move to SL function that doesn’t check if the SL is moved closer to entry or no, it gives you all the flexibility.

 

If you want this check you can add it to your condition – use function OrderSL() to get actual stop loss and set the new one only if it moves SL closer to the price.

 

I’d do it this way:

 

1. define variables

NewSLLong, NewSLShort

 

2. rule Compute SL

NewSLLong = your new SL formula

NewSLShort = your new SL formula

 

3. rule Set Long SL

IF (Defenze = 1)

and NewSLLong > OrderSL(long magic number)

それから

Move SL To(NewSLLong) 

 

4. rule Set Short SL

IF (Defenze = 1)

and NewSLShort < OrderSL(short magic number)

それから

Move SL To(NewSLShort) 

マーク
StrategyQuantアーキテクト

0

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