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

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Bollinger Bands & SMA for the 1Min & 5Min Charts 29 replies

Algorithm to convert flawed 1min data > 5min data? 9 replies

Anyone able to scalp 1min/5min with oanda MT4 9 replies

Backtest Data Timeframe > 1min, 5min necessary? 2 replies

1 bar in 1H chart = how many bar in 5min chart? 3 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
Tags: I want to plot my custom indicator from a 5min chart onto a 1min chart
Cancel

I want to plot my custom indicator from a 5min chart onto a 1min chart

  • Post #1
  • Quote
  • First Post: Nov 6, 2010 1:01am Nov 6, 2010 1:01am
  •  Pvj
  • | Joined May 2009 | Status: Member | 55 Posts
I've created my own custom indicator:
- (for this message, lets say it looks like a single moving average line)

I want it to be calculated on a 5min chart but plotted on a 1min chart.

Can you point me to some simple example code that does this??
-
Or tell me what commands that I should research??

Thank you for your help.
  • Post #2
  • Quote
  • Nov 6, 2010 10:35am Nov 6, 2010 10:35am
  •  sangmane
  • Joined Apr 2009 | Status: MT4 Programmer | 758 Posts
hi pvj,

you can get the value of price on M5 by using:
high: iHigh(Symbol(),PERIOD_M5,shift);
low: iLow(Symbol(),PERIOD_M5,shift);
open: iOpen(Symbol(),PERIOD_M5,shift);
close: iClose(Symbol(),PERIOD_M5,shift);

the other alternative is by making a second indicator (that will run on M5) with the following function call:
buffer1 = iCustom(NULL,PERIOD_M5,"your custom indicator name", extern param1, extern param2,..., buffer index, shift);

hope this help
 
 
  • Post #3
  • Quote
  • Last Post: Nov 6, 2010 7:49pm Nov 6, 2010 7:49pm
  •  Pvj
  • | Joined May 2009 | Status: Member | 55 Posts
Thank you Sangmane
- I think that I can wrap my head around this.
 
 
  • Platform Tech
  • /
  • I want to plot my custom indicator from a 5min chart onto a 1min 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