• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 5:17pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 5:17pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

MT4 global variables: my new best friend 34 replies

Questions regarding global variables (and some other stuff) 11 replies

Passing String Variables Using Globals 6 replies

Short Term / Medium Term / Long Term? 3 replies

Exporting & importing Global variables to CSV Files 3 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
Tags: Long term trend and short term trade using global variables
Cancel

Long term trend and short term trade using global variables

  • Post #1
  • Quote
  • First Post: Jan 22, 2018 1:51pm Jan 22, 2018 1:51pm
  •  Naosblue
  • | Joined Sep 2017 | Status: Member | 24 Posts
More than anything I am kind of talking this out to get it straight to myself, and if anyone can benefit or provide feedback it is more than welcome. I still feel pretty new at this.

I'm considering creating an EA that uses long term trends such as 4h or 1d moving averages, and trading short term such as 1m or 5m. Would global variables be a good way to accomplish this? It may be useful to have a global variable to define if it is a longer term "buy" or "sell" market. Is anyone familiar with EA's that have done this? I'm sure I am not the first person to do this.

Basic example: On 1d time frame I have a moving average crossover to a buy market for a currency. This EA says buy, so the short term EA buys while in this trend, and ONLY buys. It would TP at 50 pips for example. Another buy opportunity presents itself and it trades again and it keeps doing so until the long term switches back into sell territory.

Is there an easier way to build this into a single EA? Can someone point me in the direction of an EA that does this? Again, I assume I am not the first person to conceive of this.
  • Post #2
  • Quote
  • Jan 22, 2018 7:22pm Jan 22, 2018 7:22pm
  •  T4Trade
  • Joined Sep 2017 | Status: Trend Following,Price Action,Grid | 2,283 Posts
it is a very good concept and only one EA is needed to carry out the job.I am not a coder but there are many generous coders here who can assist us in this matter.More filters are needed to build on rules of entry (strategy).All the best!
 
 
  • Post #3
  • Quote
  • Jan 22, 2018 10:07pm Jan 22, 2018 10:07pm
  •  tzamo
  • Joined Nov 2017 | Status: Member | 814 Posts
Quoting Naosblue
Disliked
More than anything I am kind of talking this out to get it straight to myself, and if anyone can benefit or provide feedback it is more than welcome. I still feel pretty new at this. I'm considering creating an EA that uses long term trends such as 4h or 1d moving averages, and trading short term such as 1m or 5m. Would global variables be a good way to accomplish this? It may be useful to have a global variable to define if it is a longer term "buy" or "sell" market. Is anyone familiar with EA's that have done this? I'm sure I am not the first...
Ignored
Hi, thanks for the share. Before jumping to get an EA coded, I recommend you develop a strategy the 'computer software' can follow and iron out the kinks and fine details. FOr example, higher TF 4Hr or Daily MA, which ones? as different MA pairs will cross at different times. You need entry rules, exit rules. Because the system will do what it is told. Then you need to test the system rules manually and show that it is profitable and only then seek coders to help you. To me, the truth is that no coder on here will use their time to write/ help you write a code if they don't see that you your self has put in some effort into developing your strategy. See if there is already an EA that uses MA's that you can try modify with the HTF bias.
Check out this post, I think it has what you are looking for : https://www.forexfactory.com/showthread.php?t=233301
Best of luck and apologies for stating the harsh truth, please don't be discourage and continue to develop your strategy.
Kind Regards, Tzamo
"Only you can Make the Future you will be proud to be a part of..." -Me
 
 
  • Post #4
  • Quote
  • Last Post: Jan 23, 2018 10:41am Jan 23, 2018 10:41am
  •  dukas_trader
  • | Membership Revoked | Joined Mar 2010 | 2,525 Posts
Quoting Naosblue
Disliked
More than anything I am kind of talking this out to get it straight to myself, and if anyone can benefit or provide feedback it is more than welcome. I still feel pretty new at this. I'm considering creating an EA that uses long term trends such as 4h or 1d moving averages, and trading short term such as 1m or 5m. Would global variables be a good way to accomplish this? It may be useful to have a global variable to define if it is a longer term "buy" or "sell" market. Is anyone familiar with EA's that have done this? I'm sure I am not the first...
Ignored
you can program this very easy in one Expert advisor, you can calculate all timeframes (and anything else) in any chart timeframe inside expert advisor, so no need to use 2 experts advisors programms. simple look for the conditions you need for buying, calculate your moneymanagement, install any proper riskmanagement inside the Expert against all possibilities what can happen,... and do the trade and manage it and done. this is extrem easy to do. later (when you have programmed much more) you can expand the program with include files and increase the design look, services, backtest, advanced risk reducing, .... and and and....
 
 
  • Platform Tech
  • /
  • Long term trend and short term trade using global variables
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023