Specification
Input
Alvo(1.15);
Stop(0.90);
HoraInicio(920);
HoraFim(1700);
HoraFechamento(1740);
Var
Vol, sAtr : Float;
Inicio
sAtr := StopAtr(2, 20, 0)|0|;
Vol := AvgTrueRange(10, 0);
Se (IsBought) entao
Inicio
SellToCoverLimit(BuyPrice+(Vol*Alvo));
SellToCoverStop(BuyPrice-(Vol*Stop), BuyPrice-(Vol*Stop)-100);
Fim;
Se (IsSold) entao
Inicio
BuyToCoverLimit(SellPrice-(Vol*Alvo));
BuyToCoverStop(SellPrice+(Vol*Stop), SellPrice+(Vol*Stop)+100);
Fim;
Se (HasPosition = False) e (Time >= HoraInicio) e (Time < HoraFim) entao
Inicio
Se (Minima > sAtr) entao
BuyLimit(sAtr);
Se (Maxima < sAtr) entao
SellShortLimit(sAtr);
Fim;
Se (Time > HoraFechamento) entao ClosePosition;
Fim;
Responded
1
Rating
Projects
6
33%
Arbitration
0
Overdue
2
33%
Free
2
Rating
Projects
1
0%
Arbitration
0
Overdue
0
Free
3
Rating
Projects
1
100%
Arbitration
1
0%
/
100%
Overdue
0
Working
4
Rating
Projects
333
35%
Arbitration
66
12%
/
58%
Overdue
87
26%
Free
5
Rating
Projects
17
59%
Arbitration
2
0%
/
100%
Overdue
2
12%
Free
6
Rating
Projects
470
39%
Arbitration
102
40%
/
24%
Overdue
78
17%
Busy
Published: 2 codes
Project information
Budget
30 - 50 USD