MTF Indicators - futures io
futures io futures trading



MTF Indicators


Discussion in EasyLanguage Programming

Updated by Doctor Leo
      Top Posters
    1. looks_one Quick Summary with 1 posts (0 thanks)
    2. looks_two Doctor Leo with 1 posts (0 thanks)
    3. looks_3 Big Mike with 1 posts (0 thanks)
    4. looks_4 diverdan with 1 posts (0 thanks)
    1. trending_up 2,711 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 3 replies
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Thread Tools Search this Thread
 

MTF Indicators

  #1 (permalink)
Singapore
 
Experience: Beginner
Platform: Multicharts, R
Trading: EUR / USD
 
Posts: 185 since Feb 2010
Thanks: 106 given, 98 received

MTF Indicators

Hi

I have created a MTF signal in MC, one timeframe (for trend) is the daily chart and the other for trading is 60 minute chart.

I have defined the trend based upon the daily chart using:
 
Code
                            
if (DayEma[0] > DayEma[1]) then
    trend 
1
else if (DayEma[0] < DayEma[1]) then
    trend 
= -1
else if (DayEma[0] = DayEma[1]) then trend 0
else trend trend
However this only worked for one hour bar in the day i.e. when the session ended. Otherwise DayEma[0] = DayEma[1].

I sort of solved the problem by calculating the hour bar to reference back to the end of the session to get the correct daily EMA value:

 
Code
                            
if (DayEma[0] > DayEma[Mod(BarNumber -1,  24)]) then
    trend 
1
else if (DayEma[0] < DayEma[Mod(BarNumber -1,  24)]) then
    trend 
= -1
else if (DayEma[0] = DayEma[Mod(BarNumber -1,  24)]) then trend 0
else trend trend
This would work for time based trade charts but not any exotic bar types (e.g. Range).

Does anyone know how to solve this elegantly?

Cheers,

Daniel

Visit my futures io Trade Journal Reply With Quote

Can you help answer these questions
from other members on futures io?
Convert NinjaTrader NT7 indicator to Tradestation EasyLanguage and RADARSCREEN
Platforms and Indicators
Issue meeting order entry conditions
Elite Automated NinjaTrader Trading
Last 5 minutes Label
ThinkOrSwim
Moving average with Lag reduction
NinjaTrader
Linux?
ThinkOrSwim
 
Best Threads (Most Thanked)
in the last 7 days on futures io
What is your single biggest weakness?
95 thanks
Spoo-nalysis ES e-mini futures S&P 500
91 thanks
Is Volume Profile worth learning or is it an outdated concept?
57 thanks
Is Amp at risk of going under?
36 thanks
Is Orderflow An Outdated Concept?
30 thanks
 
  #3 (permalink)
Site Administrator
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 48,755 since Jun 2009
Thanks: 31,471 given, 94,069 received


I just use a

 
Code
                            
if date <> date[1
block in my code for processing new day events. It may work here too, I'm not 100% sure what you are trying to do.

Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal Reply With Quote
 
  #4 (permalink)
St. Petersburg, Russia
 
 
Posts: 30 since Nov 2010
Thanks: 6 given, 18 received

I think I realize the root of the problem. When you use any indicator from a higher timerame on a lower one you have equal values for all bars except the first corresponding to the higher timeframe bar. And you seem to want the condition like ma1 > ma2 be true over the whole lower timeframe span (day in your example). If my guess is true then it's very easy to implement. You simply write:

ma1 = xaverage(close of data2, N);
condition1 = ma1 of data2 > ma1[1] of data2;

In this case the condition should be true during the whole day on the lower timeframe.

Hope this helps. If this is not what you're looking for please ask for more, I'll try to help.

Reply With Quote



futures io Trading Community Platforms and Indicators EasyLanguage Programming > MTF Indicators




Upcoming Webinars and Events
 

Free BloodHound Licenses to everyone!

June
 

Every journal equals ten meals for the hungry

June
     



Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts