SLIDING STOP

SLIDING STOP

Type: Indicator, Name: Seasonal SB — Short

Inputs: EntryStop(16), ProtectStop(5), ProfitStop(11);
Variables: EntryStp(0), ProtectStp(0), ProfitStp(0);

Condition1 = Month(Date) = 5 AND DayOfMonth(Date) > 14;
Condition2 = Month(Date) = 6;
Condition3 = Month(Date) = 7;
Condition4 = Condition1 OR Condition2 OR Condition3;
Condition5 = I_MarketPosition = -1;

EntryStp = Lowest(Low, EntryStop) — 6 Points;
ProfitStp = Highest(High, ProfitStop) + 1 Point;
If Condition5 <> Condition5[1] Then
ProtectStp = Highest(High, ProtectStop) + 1 Point;

If Condition4 AND Condition5 = False Then Begin
Plot1(EntryStp, «EntryStop»);
Plot2(EntryStp, «EntryStop»);
End;

If (Condition4 AND Condition5) OR Condition5 Then Begin
Plot3(ProtectStp, «ProtectStop»);
Plot4(ProfitStp, «ProfitStop»);
End;

Подписаться
Уведомить о
0 комментариев
Межтекстовые Отзывы
Посмотреть все комментарии