EUR/USD price decimal in functions - futures io
futures io



EUR/USD price decimal in functions


Discussion in TradeStation

Updated
    1. trending_up 978 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,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
 

EUR/USD price decimal in functions

(login for full post details)
  #1 (permalink)
 LetmeInNow 
CA/USA
 
Experience: Intermediate
Platform: Tradestation
Trading: Stocks
 
Posts: 10 since Nov 2012
Thanks: 4 given, 1 received

Hello,

Working with the EUR/USD on a 5 min time frame and printing CloseD on a strategy for some reference points. The print only goes back 2 decimal points but the price on the chart goes back 5 decimal points. This is throwing some calculations out the window. Is there a way to force the decimal point when calculating functions like CloseD or CloseW?

Thanks in advance!

Started this thread Reply With Quote

Journal Challenge April 2021 results (now extended!):
Competing for $1800 in prizes from Jigsaw
looks_oneMaking a Living with the Microsby sstheo
(587 thanks from 59 posts)
looks_twoSalao's Journalby Salao
(146 thanks from 26 posts)
looks_3Learning to Profit - A journey in algorithms and optionsby Syntax
(112 thanks from 26 posts)
looks_4Deetee’s DAX Trading Journal (time based)by Deetee
(94 thanks from 30 posts)
looks_5Maybe a little bit different journalby Malykubo
(46 thanks from 28 posts)
 
Best Threads (Most Thanked)
in the last 7 days on futures io
I finally blew up an account
488 thanks
The Crude Dude Oil Trading System
73 thanks
Spoo-nalysis ES e-mini futures S&P 500
61 thanks
The tiyfTradePlanFactory indicator
20 thanks
The New Micro Contract - MICRO BITCOIN coming May 2021
19 thanks
 
(login for full post details)
  #2 (permalink)
 ABCTG   is a Vendor
 
 
Posts: 2,244 since Apr 2013
Thanks: 417 given, 1,495 received

Hi LetmeInNow,

are you printing to a text file, debug window or text to the chart? Then your solution probably is as simple as
changing your code to:

 
Code
Expression:C:E 

Where: C - minimum number of characters 
             E - number of decimal places 

So for example

Print(Close:0:5);

would print the close for EUR/USD with five decimals like 1.34567
Hope this helps,
ABCTG

Follow me on Twitter Reply With Quote
The following 2 users say Thank You to ABCTG for this post:
 
(login for full post details)
  #3 (permalink)
 LetmeInNow 
CA/USA
 
Experience: Intermediate
Platform: Tradestation
Trading: Stocks
 
Posts: 10 since Nov 2012
Thanks: 4 given, 1 received


Perfect! that is exactly what I was looking for. thank you.

Started this thread Reply With Quote


futures io Trading Community Platforms and Indicators TradeStation > EUR/USD price decimal in functions


Last Updated on May 8, 2013


Upcoming Webinars and Events

NinjaTrader Indicator Challenge!

Ongoing

Journal Challenge w/$1,800 in prizes!

May 7

EdgeProX - A Simple Choice For The Active Trader w/Morad Askar @ Edge Clear …

Elite only

The Cold Hard Truth: Maybe I Am Not Good Enough w/Chris Gray @ Earn2Trade

Elite only
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), 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