MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Automated Trading and Strategy Testing Forum

MQL5: Create Your Own Indicator MQL5: Create Your Own Indicator TradeChannel Expert Advisor
TradeChannel
Author: Integer
A Platinum Trend StoryA Platinum Trend Story Try product
A Platinum Trend Story
Author: achidayat
Subscribe to signal
Moneyforyou
57.15%, 9 232.07 USD
Screenshot
#GOOG, D1
Real

// Output indicator values to screen

To add comments, please log in or register

Russ
196
Russ 2012.07.06 03:16

I have two indicators that I believe might be sending different values to the platform than what they are showing on the indicator window. Can someone add code to my indicators that will output the values that they're sending to the platform?

Thanks. 

Attached files
trendy.mq4 (9.11 KB)
mod_trendy_mtf.mq4 (9.13 KB)
Dr. Tradelove or How I Stopped Worrying and Created a Self-Training Expert Advisor
Just over a year ago joo, in his article "Genetic Algorithms - It's Easy!", gave us a tool for implementation of the genetic algorithm in MQL5. Now utilizing the tool we will create an Expert Advisor that will genetically optimize its own parameters upon certain boundary conditions...
onewithzachy
954
onewithzachy 2012.07.06 04:23
Russ:

I have two indicators that I believe might be sending different values to the platform than what they are showing on the indicator window. Can someone add code to my indicators that will output the values that they're sending to the platform?

Thanks. 

Hi Russ.

Notice the extension is .mq4, which mean that the code written in MQL4, so you better ask them in MQL4.com forum, but I think you know that.

You said you  "believe might" , could you show us which is the one (or more than one) that makes you have that believe. Coz it's difficult to help you to add the code like you want it especially that you are "believe might" and you're not explaining your "believe might" much. 

And looks like we have different religion, coz I don't see anything that makes this sending different value to the platform. Yes it's taking different value from other indicator but not sending different value . 

Use SRC button to post your codes.

 

:D 

Russ
196
Russ 2012.07.06 05:52

Thank you for responding onewithzachy. I got the indicators from here: http://www.forexfactory.com/showthread.php?p=5315649#post5315649 A user indicated that the realtime data differs than what the indicators displays. I hired a coder on this site to make an EA based on these indicators. However after a couple tries the EA still doesn't open and close trades based on the values I want. So I wanted to know if it is because the indicator is sending different values.

MaxTrader
130
MaxTrader 2012.07.06 18:54
Russ:

I have two indicators that I believe might be sending different values to the platform than what they are showing on the indicator window. Can someone add code to my indicators that will output the values that they're sending to the platform?

Thanks. 

Russ:

I have two indicators that I believe might be sending different values to the platform than what they are showing on the indicator window. Can someone add code to my indicators that will output the values that they're sending to the platform?

Thanks. 

Russ, if your EA is accessing the indi data via the buffers, then the value of those buffers will be in the Data Window. Alternatively you could add the line Comment("buffer 0 is" + BUFFER0[i] + "   buffer 1 is " + BUFFER1[i]);  to the last part of the indi.  this will comment the data to the screen or replace Comment with Print and it will place in in the log instead.  Replace BUFFER0[i] with the name of buffer0 and i with the indis reference value I think that is called shift in the first one....

 hope it helps

 

Russ
196
Russ 2012.07.06 19:02
Thanks MaxTrader for responding. I'm not very proficient at coding. While I do understand what you are saying. I'm not completely sure how to write it out or what to replace.
/

To add comments, please log in or register