Forex



Go Back   Forex Trading > Training > Metatrader > Metatrader 4 mql 4 - Development course > Questions
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

 
 
Thread Tools
 
Old 06-22-2006, 07:01 PM
Senior Member
 
Join Date: Jun 2006
Posts: 313
EACAN is on a distinguished road
Price

Hi,

I am trying to create an ea using fibs and what i am trying to do is
taking todayClose + (yesterday High - yesterday Low ) * 0.382;
but when i send this at order send function the tester shows inalid price ?? e.g 1.28574534 something like this any help

thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
 
Old 06-22-2006, 11:16 PM
lowphat's Avatar
Senior Member
 
Join Date: Sep 2005
Posts: 200
lowphat is on a distinguished road
I think you can use NormalizeDouble

double var1=0.123456789;
Print(NormalizeDouble(var1,4));
// output: 0.1234

Last edited by lowphat; 06-22-2006 at 11:42 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
 
Old 06-22-2006, 11:46 PM
Senior Member
 
Join Date: Jun 2006
Posts: 313
EACAN is on a distinguished road
Quote:
Originally Posted by lowphat
I think you can use NormalizeDouble

double var1=0.123456789;
Print(NormalizeDouble(var1,4));
// output: 0.1234
lowphat many thanks for the suggestion but i think since the ea could run on any currency putting something hardcoded wont work i think i try to use your suggestion for eur/usd now untill i find someother solution.

regards.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
 
Old 06-23-2006, 03:39 AM
Senior Member
 
Join Date: Mar 2006
Posts: 793
Maji is on a distinguished road
Say, price = todayClose + (yesterday High - yesterday Low ) * 0.382

You apply the Normalize double like this:

NormalizeDouble(price, Digits);

Digits is the built in rounding off parameter.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
 
Old 06-23-2006, 10:27 AM
Senior Member
 
Join Date: Jun 2006
Posts: 313
EACAN is on a distinguished road
Maji,lowphat thanks i understand now what is implied with Normalize Double Method.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
 

Bookmarks
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MTF Price keris2112 Indicators - Metatrader 4 19 03-07-2009 08:53 PM
Price System Kurka Fund Expert Advisors - Metatrader 4 0 11-18-2006 08:14 PM
Price Histogram fingermark Metatrader 4 1 11-06-2006 07:58 AM


All times are GMT. The time now is 05:25 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.