Indicator Feedback question
  #1 (permalink)  
Old 07-14-2006, 08:26 AM
Sophomore
 
Join Date: Jul 2006
Posts: 40
Thanks: 2
Thanked 4 Times in 3 Posts
Bill R is on a distinguished road
Question Indicator Feedback question

I'm new to the MQ language and I'm trying to debug an indicator - what's the best way to get feedback? I just tried MessageBox and nothing happened, Print doesn't seem to do anything (or I don't know where to look for output). Any assistance would be appreciated.
Reply With Quote
  #2 (permalink)  
Old 07-14-2006, 11:25 PM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,958
Thanks: 117
Thanked 383 Times in 152 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

Hey Bill

It's also a problem for me. Right now i desperately use Comment() to debug indicators. It works quite a lot of time but with difficulty like we can get only a single snapshot of current bar, unlike Print() used in expert debugging.

Below Comment() will tell me whether I put the arguments properly or not. All i have to do is go back to the chart and read the value.
PHP Code:
ma1 iMA(Symbol(), Period(), MA1_Period0MA1_TypePRICE_CLOSEshift+1);
ma2 iMA(Symbol(), Period(), MA2_Period0MA2_TypePRICE_CLOSEshift+1);
macd iMACD(Symbol(), Period(), MACD_FastMACD_SlowMACD_SlowingPRICE_CLOSEMODE_MAINshift+1);
macd_sig iMACD(Symbol(), Period(), MACD_FastMACD_SlowMACD_SlowingPRICE_CLOSEMODE_SIGNALshift+1);
Comment(ma1" "ma2" "macd" "macd_sign); 
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
  #3 (permalink)  
Old 07-25-2006, 06:09 PM
Sophomore
 
Join Date: Jul 2006
Posts: 40
Thanks: 2
Thanked 4 Times in 3 Posts
Bill R is on a distinguished road
Default

I'll try Comment() - thanks. Maybe we should contact the author and ask him to make something work that writes to a log, or, if it's there, tell us how to use it.
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Long term EA question Village Fool Trading Systems 4 08-25-2006 10:16 PM
Question on making sma wma close TurboTrader24 MetaTrader and ZeroCode 1 08-02-2005 07:06 AM
Question on making code in ZeroCode TurboTrader24 MetaTrader and ZeroCode 6 07-28-2005 03:18 PM
Indicator Statement Question 2 Dave77 MetaTrader and ZeroCode 1 06-19-2005 05:33 AM


All times are GMT. The time now is 01:01 AM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now

Main Menu

Economic Forecast