Calculate 2 different EMA lengths
Forums › ProRealTime English forum › ProScreener support › Calculate 2 different EMA lengths
- This topic has 11 replies, 3 voices, and was last updated 8 years ago by jbyrne.
-
-
09/23/2016 at 2:44 PM #1362909/23/2016 at 7:14 PM #1364009/24/2016 at 2:18 PM #1366409/24/2016 at 6:39 PM #13670
Hello, After experimenting withe the code it seems that you can’t go any lower than 1 hour? I try using TIMEFRAME(5Minutes) and i get an error message suggesting that i replace ‘minutes’ with ‘hour’.
And also, I want to track 1 minute data and 5 minute data, the screener is set to 1 minut so do I need to code in a TIMEFRAME(1minute) aswell as TIMEFRAME(5Minutes)?
09/24/2016 at 6:42 PM #1367209/24/2016 at 6:46 PM #13673heres the code, i want to be able to track the same ema crosses for 1 minute and 5 minute
Timeframe(5minutes)
Cross3 = (Ema20 crosses over ema50) or (ema20 crosses over ema100) or (ema50 crosses over ema100) or (ema50 crosses over ema200)Cross4 = (Ema20 crosses under ema50) or (ema20 crosses under ema100) or (ema50 crosses under ema100) or (ema50 crosses under ema200)
Long1 = EMA20 < Ema200
Long2 = EMA20 < Ema100
Long3 = EMA50 < Ema200
Long4 = EMA50 < Ema100Short1 = EMA20 > Ema200
Short2 = EMA20 > Ema100
Short3 = Ema50 > Ema200
Short4 = Ema50 > Ema100Cross1 = (Ema20 crosses over ema50) or (ema20 crosses over ema100) or (ema50 crosses over ema100) or (ema50 crosses over ema200)
Cross2 = (Ema20 crosses under ema50) or (ema20 crosses under ema100) or (ema50 crosses under ema100) or (ema50 crosses under ema200)
rises = rise or rise1 or rise2 or rise3 or rise4 or rise5
falls = fall or fall1 or fall2 or fall3 or fall4 or fall5CrossBull = cross1 and cross3
CrossBear = cross2 and cross4LongEMA = (long1 or long2 or long3 or long4)
ShortEMA = (short1 or short2 or short3 or short4)Bull = crossBull and longema
Bear = crossBea and shortemascreener [Bull or Bear] (Bull as “1”)
09/24/2016 at 9:11 PM #1368509/24/2016 at 9:16 PM #13686Its still not clear, whats the syntax for the TIMEFRAME(xminutes) because with TIMEFRAME(5Minutes) i get an error message. And from what ive understood, after TIMEFRAME is introduced to code the drop down menu to select what candle time you want to screener to run at becomes useless?
09/25/2016 at 12:26 PM #1369609/25/2016 at 7:16 PM #1372009/26/2016 at 6:36 AM #1372309/26/2016 at 7:27 AM #13725 -
AuthorPosts
Find exclusive trading pro-tools on