• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 6:48am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 6:48am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Timeframe inside current timeframe - is that possible? 2 replies

Seeing higher timeframe indicators on lower timeframe 4 replies

Need to show Prorealtime Moving Average in 1hr timeframe only 1 reply

Using trend on 1hr chart for trading on 15m chart 0 replies

How to apply vegas daily model on 1Hr chart? 8 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
Tags: Limit Timeframe to only work on 1hr chart
Cancel

Limit Timeframe to only work on 1hr chart

  • Post #1
  • Quote
  • First Post: Mar 1, 2022 5:48am Mar 1, 2022 5:48am
  •  pgtips
  • | Joined Nov 2007 | Status: Member | 162 Posts
Hi,
Is it possible within the EA (MT4) to only work on user input TimePeriod i.e to only work on the 1 hour chart.

The reason simply is because whenever I change, to a lower timeperiod for analysis, my EA places more trades which I didn't want it to do. I only want it to work on 1 timeframe, hour.

PG
  • Post #2
  • Quote
  • Mar 1, 2022 9:48am Mar 1, 2022 9:48am
  •  FerruFx
  • Joined May 2007 | Status: MT4/MT5 EAs/Indicators/Alerts coder | 6,430 Posts
Quoting pgtips
Disliked
Hi, Is it possible within the EA (MT4) to only work on user input TimePeriod i.e to only work on the 1 hour chart. The reason simply is because whenever I change, to a lower timeperiod for analysis, my EA places more trades which I didn't want it to do. I only want it to work on 1 timeframe, hour. PG
Ignored
Never a good idea to switch timeframe while an EA is running on chart.
MT4/MT5 EAs/Indicators/Alerts coder
 
 
  • Post #3
  • Quote
  • Mar 1, 2022 10:02am Mar 1, 2022 10:02am
  •  costarica21
  • | Joined Nov 2021 | Status: Member | 8 Posts
just put EA on 1H Timeframe and don't change timeframe and if you want analyze additionally open another chart in same currency
 
 
  • Post #4
  • Quote
  • Mar 1, 2022 10:34am Mar 1, 2022 10:34am
  •  jojofx
  • | Joined Jun 2014 | Status: Member | 227 Posts
Quoting pgtips
Disliked
Hi, Is it possible within the EA (MT4) to only work on user input TimePeriod i.e to only work on the 1 hour chart. The reason simply is because whenever I change, to a lower timeperiod for analysis, my EA places more trades which I didn't want it to do. I only want it to work on 1 timeframe, hour. PG
Ignored
If you have the .mql4, at the beginning of the EA you can write something like:
Inserted Code
if (Period()!=60) return;
There are difference ways to do it, you could also set to check the condition only on the hourly candles before OrderSend()
 
 
  • Post #5
  • Quote
  • Last Post: Mar 8, 2022 4:24am Mar 8, 2022 4:24am
  •  pgtips
  • | Joined Nov 2007 | Status: Member | 162 Posts
Quoting jojofx
Disliked
{quote} If you have the .mql4, at the beginning of the EA you can write something like: if (Period()!=60) return; There are difference ways to do it, you could also set to check the condition only on the hourly candles before OrderSend()
Ignored
Thank you everyone. I understand not good to change TF with EA running, I was trying to keep objects on chart but it was not good.

JojoFX I will look into this, might save me :-)
 
 
  • Platform Tech
  • /
  • Limit Timeframe to only work on 1hr chart
  • 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