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

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Jurik indicators 368 replies

Jurik Moving Average 13 replies

which syntax that check open order? 7 replies

VT Dumb Syntax Questions 4 replies

Jurik indicators... 4 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 1
Attachments: jurik syntax question
Exit Attachments

jurik syntax question

  • Post #1
  • Quote
  • First Post: Aug 27, 2006 2:33pm Aug 27, 2006 2:33pm
  •  Loki
  • | Joined Jul 2006 | Status: Member | 63 Posts
I'm trying to code a modified MA cross EA using the Jurik Moving Average (see attached file). If I wanted to get the current value of the JMA based on the most recent close would it be this:

<table class="docvar" border="0" cellpadding="0" cellspacing="0"><tbody><tr valign="top"> <td><nobr> iCustom(</nobr></td> <td>NULL, PERIOD_H1, "JMA", 14, 0, 300, 0, 0)</td></tr></tbody></table>
Then would the JMA value for the previous close be given by the same string with a 1 for the very last parameter instead of a 0?

Sorry for the stupid question. I though this was correct, but the code doesn't work. I'm a pretty decent C++ programmer, but the MT4-specific language features are killing my ability to write a working EA.
Attached File
File Type: mq4 JMA.mq4   12 KB | 440 downloads
  • Post #2
  • Quote
  • Last Post: Aug 29, 2006 3:52pm Aug 29, 2006 3:52pm
  •  piccolo
  • Joined Feb 2006 | Status: adjust your sails to the wind | 1,354 Posts
you are on the right track. just experiment with the variables. maybe try
iCustom(NULL, PERIOD_H1, "JMA", 0, 0)
iCustom(NULL, PERIOD_H1, "JMA", 0, 1)

default parameters of the indicator will be used if skipped by the iCustom call.

anyways, just use your head and google. its not that hard.
 
 
  • Platform Tech
  • /
  • jurik syntax question
  • 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