Page 1 of 1

Strategy Alligator MACD

PostPosted: Thu Feb 15, 2018 6:40 am
by Utawafr
Hello,
I would like to code a strategy with the following indicators:
- Alligator 13 (8), 5 (8), 5 (3) SMMA
- Alligator 65 (8), 40 (5), 25 (3) SMMA
- Awesome Oscillator AO
- MACD

Purchase order when the following 3 conditions are met:
Jaw of Alligator 13 (8), 5 (8), 5 (3)> Jaw of Alligator 65 (8), 40 (5), 25 (3) SMMA
MACD (red line)> Signal (Blue line)
AO in green bar AND if 2 green bars in front (possibility of modifying this condition)

Stop: when one of these conditions ceases

Sales order when the following 3 conditions are met:
Jaw of Alligator 13 (8), 5 (8), 5 (3) <Jaw of Alligator 65 (8), 40 (5), 25 (3) SMMA
MACD (red line) <Signal (Blue line)
AO in red bar AND if 2 red bars in front (possibility of modifying this condition)

Stop: when one of these conditions ceases

thank you in advance

Re: Strategy Alligator MACD

PostPosted: Fri Feb 16, 2018 10:31 am
by Apprentice
Try this version.
viewtopic.php?f=31&t=65743&p=117784#p117784

Note, in Jaw Comparison, I compare the last two values of Jaw line.