Close price breakout

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Close price breakout

Postby Apprentice » Thu Nov 24, 2016 6:28 am

EURUSD m1 (11-24-2016 1141).png

Based on request.
viewtopic.php?f=27&t=64135

peak = ref(C,-2)
if ref(C,-2) = max C during 5 day
trough = ref(c,-2)
if ref(C,-2) = min C during 5 day
n=20

Alert when:
C cross peak and C >= EMA(n)
trough cross C and C <= EMA(n)

Close price breakout.lua
(13.77 KiB) Downloaded 772 times



Alert when:
C cross peak and C >= EMA
trough cross C and C <= EMA
Effectively Close price breakout.lua with MA Cross Period set to zero.
Close price breakout modification.lua
(13.86 KiB) Downloaded 702 times


The indicator was revised and updated
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Return to Custom Indicators

Who is online

Users browsing this forum: Google [Bot] and 47 guests