Print format for Forex variables - futures io
futures io futures trading



Print format for Forex variables


Discussion in EasyLanguage Programming

Updated by Big Mike
      Top Posters
    1. looks_one Big Mike with 1 posts (1 thanks)
    2. looks_two arjfca with 1 posts (0 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 vikivenkat with 1 posts (0 thanks)
    1. trending_up 2,757 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 2 replies
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Print format for Forex variables

(login for full post details)
  #1 (permalink)
Montreal, Canada
 
Experience: Intermediate
Platform: Multicharts
Broker: Interactive Broker
Trading: Forex
 
Posts: 263 since Sep 2010
Thanks: 440 given, 91 received

Hello

Using Multicharts and easylanguage, I'm trying to debug my new Forex indicator.

To do so, I use the command print to display some variables. These appear with 2 decimal value, "0.00". How could i get a "0.0000" format.

Any help appreciated. A thanks will be given to all participant to Mike new contest

Martin

Reply With Quote

Can you help answer these questions
from other members on futures io?
PASPro won't show on a chart for certain combinations of ticks per bar and currencies
NinjaTrader
Looking freelancer for MT4 Indicator
Platforms and Indicators
EQIX - Digital REITs - any experiences?
Stocks and ETFs
IB Bracker Order
Platforms and Indicators
T​​​​​​radestation datafeed (real time and historical) to NT8
NinjaTrader
 
 
(login for full post details)
  #3 (permalink)
Site Administrator
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,050 since Jun 2009
Thanks: 31,658 given, 94,919 received



arjfca View Post
Hello

Using Multicharts and easylanguage, I'm trying to debug my new Forex indicator.

To do so, I use the command print to display some variables. These appear with 2 decimal value, "0.00". How could i get a "0.0000" format.

Any help appreciated. A thanks will be given to all participant to Mike new contest

Martin

Formatting is controlled by text(). So, if the variable is "myvar", do:

 
Code
                            
text(myvar:0:0); 

In order to have no leading zeros and no decimals.

Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to Big Mike for this post:


futures io Trading Community Platforms and Indicators EasyLanguage Programming > Print format for Forex variables


October 3, 2010


Upcoming Webinars and Events
     



Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts