Print() Variables in Strategies

Share your ideas how the software could be improved
Message
Author
readyyy
Posts: 14
Joined: Sun Sep 04, 2011 6:36 am

Print() Variables in Strategies

#1 Postby readyyy » Fri May 25, 2012 7:08 am

Using Scripts, it is possible to print Variables to find out it's Value. I find this very helpful in the debugging proccess.

For example:

int TheLongValue;
Print(TheLongValue);

In Strategies, this does not work. Would be great to also use this in strategies Thanks

FT Support
Posts: 905
Joined: Sat Jul 11, 2009 10:54 am

#2 Postby FT Support » Mon May 28, 2012 9:15 am

Hmm, actually Print() should work for strategies too... please try creating a simple strategy that has only one "Print" code line and you will see that it works.

P.S. Make sure that strategy execution is enabled and your strategy is enabled in the list of strategies.
Check our other product here:
http://www.forexcopier.com

readyyy
Posts: 14
Joined: Sun Sep 04, 2011 6:36 am

#3 Postby readyyy » Sun Jul 01, 2012 5:34 pm

Thanks for your answer. Print() works, but but not print variables. Note that I use C++, not Delphi.

Would be great if you could test it with C++. The Basic Problem is that Print() in Strategies only supports char*s but not variables

FT Support
Posts: 905
Joined: Sat Jul 11, 2009 10:54 am

#4 Postby FT Support » Mon Jul 02, 2012 6:02 am

Please use "sprintf" method, for example

Code: Select all

char buff[30];
sprintf(buff,"ATR = %f",ATR[index+1]);
Print(buff);
Check our other product here:
http://www.forexcopier.com


Return to “New Feature Suggestions”

Who is online

Users browsing this forum: No registered users and 17 guests