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

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Awesome Oscillator 4-color indicator: Please can somebody help 13 replies

Can somebody add net pips to this indicator? 3 replies

Can somebody help me modify this indicator please? 3 replies

Can somebody help me add some MM logic to my EA 0 replies

CAN Somebody tell me what are the trading hours 4 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 1
Attachments: Can somebody tell me the logic behind this indicator?
Exit Attachments

Can somebody tell me the logic behind this indicator?

  • Post #1
  • Quote
  • First Post: Apr 14, 2012 11:07pm Apr 14, 2012 11:07pm
  •  stubish
  • | Joined Apr 2008 | Status: Member | 85 Posts
Hi all,
got this indi from another forum. I've taken a quick look and in my non existent MQ4 knowledge came up with nothing but confusion.

I'd love to know the logic behind when it paints the candles red and green, I'd also love if somebody could do a quick mod and enter a data point that would tell me clearly if that particular candle was Red, Green or neither in the data window, I don't see why all the numbers are there in the data window already, can anyone explain that to me?

As far as I know they are based around GRaB candles.

thanks in advance!
Stuart
Attached File
File Type: mq4 Candles-2.mq4   8 KB | 217 downloads
  • Post #2
  • Quote
  • Apr 15, 2012 12:09am Apr 15, 2012 12:09am
  •  Xaphod
  • Joined Mar 2010 | Status: Member | 1,380 Posts
Inserted Code
EMA_H[pos] = iMA(NULL,0,MaPeriod,0,MaMode, PRICE_HIGH,  pos);
EMA_L[pos] = iMA(NULL,0,MaPeriod,0,MaMode, PRICE_LOW,   pos);
if(Open[pos+1] < Close[pos] && Close[pos] > EMA_H[pos]) trend[pos] = 1;
if(Open[pos+1] > Close[pos] && Close[pos] < EMA_L[pos]) trend[pos] =-1;
1. Price channel of EMA 34 of bar high/low.
2. Price close above/below channel and price close greater/less previous bar open.

If the close of the current bar is higher than the open of the previous bar AND the close of the current bar is higher than the current EMA(34) of the bar high
then the trend is up: Draw BULL candles.

If the close of the current bar is lower than the open of the previous bar AND the close of the current bar is less than the current EMA(34) of the bar low.
then the trend is down: Draw BEAR candles.
 
 
  • Post #3
  • Quote
  • Last Post: Apr 15, 2012 12:51am Apr 15, 2012 12:51am
  •  stubish
  • | Joined Apr 2008 | Status: Member | 85 Posts
Thanks Xaphod, much appreciated.
 
 
  • Platform Tech
  • /
  • Can somebody tell me the logic behind this indicator?
  • 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 / ©2022