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

Reply
 
Thread Tools Display Modes
  #1001 (permalink)  
Old 03-05-2008, 04:20 PM
Junior Member
 
Join Date: May 2007
Posts: 16
cyberpasta is on a distinguished road
I've get help from mql4 and my problem dosen't exist now!!

Last edited by cyberpasta; 03-07-2008 at 09:07 AM.
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!
Reply With Quote
  #1002 (permalink)  
Old 03-06-2008, 03:59 AM
WS168's Avatar
Junior Member
 
Join Date: Jan 2008
Posts: 18
WS168 is on a distinguished road
Thumbs up Anyone can help? Why got false result from backtest ?

Hi CoderGuru,

I have problem from back test at MT4, i want to have reverse signal, while the signal appears,
my code is :
-------------------
Print("Signal Before Check TradeStyle(",TradeStyle,")");
if (Signal == -1) { StrSignal = "ENTRY-SELL"; }
if (Signal == 1) { StrSignal = "ENTRY-BUY"; }
Print("Signal B4 Check TradeStyle : ",StrSignal);

if (TradeStyle == 2) { Signal = -1*Signal; } // THIS IS FOR REVERSE PURPOSE

Print("Signal After Check TradeStyle(",TradeStyle,")");
if (Signal == -1) { StrSignal = "ENTRY-SELL"; }
if (Signal == 1) { StrSignal = "ENTRY-BUY"; }
Print("Signal After Check TradeStyle : ",StrSignal);
--------------------
The TRUE result for TradeStyle = 1 ( value 1 mean Trend Follower ) is :
--------------------
08:08 EURJPY,M1: Signal Before Check TradeStyle(1)
08:08 EURJPY,M1: Signal Before Check TradeStyle : ENTRY-BUY
08:08 EURJPY,M1: Signal After Check TradeStyle(1)
08:08 EURJPY,M1: Signal After Check TradeStyle : ENTRY-BUY

=> THIS RESULT IS RIGHT / TRUE ,
=> TREND RIDER STYLE DIDN'T CHANGE SIGNAL, SO THE RESULT BEFORE AND AFTER CHECK MUST SAME
=> Signal Before Check ENTRY-BUY
=> Signal After check ENTRY-BUY
--------------------
I use same date data and i show the time for let know, that is the same source data, but RESULT IS WRONG !
Below is FALSE result for TradeStyle = 2 ( value 2 mean COUNTER / REVERSE Trend ) is :
--------------------
08:08 EURJPY,M1: Signal Before Check TradeStyle(2)
08:08 EURJPY,M1: Signal Before Check TradeStyle : ENTRY-BUY
08:08 EURJPY,M1: Signal After Check TradeStyle(2)
08:08 EURJPY,M1: Signal After Check TradeStyle : ENTRY-BUY

=> THIS RESULT IS WRONG / FALSE,
=> COUNTER TREND STYLE MUST REVERSE SIGNAL, SIGNAL BEFORE CHECK AND AFTER CHECK MUST REVERSE
=> Signal Before Check ENTRY-BUY
=> Signal After Check ENTRY-BUY => Should ENTRY-SELL

Anyone can help, thanks in advanced
__________________
Win & Success, 168
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!
Reply With Quote
  #1003 (permalink)  
Old 03-07-2008, 05:57 AM
Senior Member
 
Join Date: Oct 2007
Posts: 230
Dave137 is on a distinguished road
Cool Stair-Step Buy Entry Code Problem

If I have a Custom Indicator Statement such as: x=iCCI(Null,7,0,0,0); How do I get the value of x, 1 bar back????

If I code this as x=iCCI(Null,7,0,0,1); I get a value of one stair-step back, not one bar back value of the CCI??

Please help me!!!!!!!!!!!!!!!!!!

Dave

Last edited by Dave137; 03-10-2008 at 01:45 AM.
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!
Reply With Quote
  #1004 (permalink)  
Old 03-10-2008, 02:08 AM
Senior Member
 
Join Date: Oct 2007
Posts: 230
Dave137 is on a distinguished road
Smile Code Problem - Please Help!!

If I have a Custom Indicator Statement such as: x=iCCI(Null,7,0,0,0); How do I get the value of x, 1 bar back????

If I code this as x=iCCI(Null,7,0,0,1); I get a value of one stair-step back, not one bar back value of the CCI??

Please help me!!!!!!!!!!!!!!!!!!

Dave
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!
Reply With Quote
  #1005 (permalink)  
Old 03-10-2008, 01:10 PM
Junior Member
 
Join Date: Mar 2008
Posts: 2
pip viper is on a distinguished road
Price

i AM LOOKING FOR an MT4 INDICATOR THAT SHOWS THE PRICE ON THE CHART IN BIG FONT......i HAVE TROUBLE SEEING THE ONES ON THE SIDE
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!
Reply With Quote
  #1006 (permalink)  
Old 03-10-2008, 01:38 PM
Senior Member
 
Join Date: Oct 2007
Posts: 230
Dave137 is on a distinguished road
Smile

Quote:
Originally Posted by pip viper View Post
i AM LOOKING FOR an MT4 INDICATOR THAT SHOWS THE PRICE ON THE CHART IN BIG FONT......i HAVE TROUBLE SEEING THE ONES ON THE SIDE
Here it is attached.

Dave
Attached Files
File Type: mq4 Magnified Market Price.mq4 (1.0 KB, 28 views)
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!
Reply With Quote
  #1007 (permalink)  
Old 03-10-2008, 01:50 PM
Administrator
 
Join Date: Sep 2005
Posts: 20,058
Blog Entries: 241
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Tools for price/account/trend/ monitoring:
- Trend /Reversal /Continuation HELPER: very improved tool to monitor the price and trades on the chart:The thread with full explanation with Signal_Bars_v2 and up to v6; latest Signal_Bars_v7 is on this thread.
- MarketPrice indicator: the thread.
- Daily Data Window tool: the thread is here.
- Multi-indics indicator: the thread is here.
- !xMeter: the other way to monitor the trades are on this thread.
- indicator to monitor spread and swap is here.
- MultiPositionExpert EA can monitor all your open trades by pips or deposit currency.
- i-Breakeven indicator from RickD is here.
- Tools to analyze the trades: elite section thread with many tools.
- Statement visualization indicators: two indicators are on this post, some more versions are here and here.
- Additional account (orders) information Indicators thread is here.
- Price Display Indicator are on this thread.
- script able to read a statement is on this thread.
- Tickwatcher: A kind of a scaner to monitor trends for multiple pairs and time frames. Original thread.
- Multi pair indicators thread: indicators with milti pairs view in one separate window.
- Stoch Signal: thread about good indicator created by cja.
- Bid_View2.0: very informative indicator (separate window) for open/close/spread and others. MTF version (many TF in just one separated window).
- Mt4_FX_Dashboard tool: original thread.
- Trade Assistant - this indicator gives buy and sell signals on multiple timeframes: original thread.
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!
Reply With Quote
  #1008 (permalink)  
Old 03-10-2008, 02:05 PM
Junior Member
 
Join Date: Nov 2005
Posts: 3
marchello is on a distinguished road
request for stochastic with allert

Please, would appreciate a thred to a MTF Stochastic in color with an alert when it crosses the ZERO line, rather than the 20/80 ..
Thanking in advance
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!
Reply With Quote
  #1009 (permalink)  
Old 03-10-2008, 03:59 PM
Junior Member
 
Join Date: Mar 2008
Posts: 2
pip viper is on a distinguished road
Quote:
Originally Posted by Dave137 View Post
Here it is attached.

Dave

THANK YOU VERY MUCH
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!
Reply With Quote
  #1010 (permalink)  
Old 03-11-2008, 02:16 AM
Senior Member
 
Join Date: Oct 2007
Posts: 230
Dave137 is on a distinguished road
Smile

Quote:
Originally Posted by hiachiever View Post
Dave,

The problem is with this line of code.
ObjectSetText("Spread_Label", DoubleToStr(spread,0), 14, "Ariel", Yellow);

When using DoubleToStr the second option is rounding, ie how many decimal places to round to. In your case you are rounding a two or 4 decimal place number back to "Zero" decimal places.

See Below:
string DoubleToStr( double value, int digits)
Returns text string with the specified numerical value converted into a specified precision format.
Parameters:
value - Floating point value.
digits - Precision format, number of digits after decimal point (0-8).

The correct code should read:
ObjectSetText("Spread_Label", DoubleToStr(spread,Digits), 14, "Ariel", Yellow);
NOTE: Digits is an internal function that returns the number of decimal places for the current symbol.

This should now show you the Spread.

Cheers,
Hiachiever
Thanks,

Dave
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!
Reply With Quote
Reply

Bookmarks

Tags
forex, histogram, JMASlope, ToR 1.20, ZUP_v1.mq4


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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


All times are GMT. The time now is 02:56 AM.



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