Forex
Google

Go Back   Forex Trading > Metatrader Training > Metatrader 4 mql 4 - Development course > Questions
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack (2) Thread Tools Display Modes
  #1001 (permalink)  
Old 03-05-2008, 03:20 PM
cyberpasta cyberpasta is offline
Junior Member
 
Join Date: May 2007
Posts: 15
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 08:07 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1002 (permalink)  
Old 03-06-2008, 02:59 AM
WS168's Avatar
WS168 WS168 is offline
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!
Reply With Quote
  #1003 (permalink)  
Old 03-07-2008, 04:57 AM
Dave137 Dave137 is offline
Senior Member
 
Join Date: Oct 2007
Posts: 154
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-09-2008 at 11:45 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1004 (permalink)  
Old 03-10-2008, 12:08 AM
Dave137 Dave137 is offline
Senior Member
 
Join Date: Oct 2007
Posts: 154
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!
Reply With Quote
  #1005 (permalink)  
Old 03-10-2008, 11:10 AM
pip viper pip viper is offline
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!
Reply With Quote
  #1006 (permalink)  
Old 03-10-2008, 11:38 AM
Dave137 Dave137 is offline
Senior Member
 
Join Date: Oct 2007
Posts: 154
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, 13 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1007 (permalink)  
Old 03-10-2008, 11:50 AM
newdigital newdigital is online now
Administrator
 
Join Date: Sep 2005
Posts: 15,230
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!
Reply With Quote
  #1008 (permalink)  
Old 03-10-2008, 12:05 PM
marchello marchello is offline
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!
Reply With Quote
  #1009 (permalink)  
Old 03-10-2008, 01:59 PM
pip viper pip viper is offline
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!
Reply With Quote
  #1010 (permalink)  
Old 03-11-2008, 12:16 AM
Dave137 Dave137 is offline
Senior Member
 
Join Date: Oct 2007
Posts: 154
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!
Reply With Quote
Reply


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

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

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/questions/270-ask.html
Posted By For Type Date
OzFx System:) - Page 639 This thread Refback 06-21-2008 09:53 PM
Forex SRDC Sidus Sibkis EA MT4 Forum OTCSmart This thread Refback 12-08-2007 11:46 AM


All times are GMT. The time now is 09:29 AM.