NexusFi: Find Your Edge


Home Menu

 





EUR/USD price decimal in functions


Discussion in TradeStation

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




 
Search this Thread

EUR/USD price decimal in functions

  #1 (permalink)
 LetmeInNow 
CA/USA
 
Experience: Intermediate
Platform: Tradestation
Trading: Stocks
Posts: 10 since Nov 2012
Thanks Given: 4
Thanks Received: 1

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

Can you help answer these questions
from other members on NexusFi?
NexusFi Journal Challenge - May 2024
Feedback and Announcements
REcommedations for programming help
Sierra Chart
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
48 thanks
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,435 since Apr 2013
Thanks Given: 482
Thanks Received: 1,628

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
Thanked by:
  #3 (permalink)
 LetmeInNow 
CA/USA
 
Experience: Intermediate
Platform: Tradestation
Trading: Stocks
Posts: 10 since Nov 2012
Thanks Given: 4
Thanks Received: 1


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

Started this thread Reply With Quote




Last Updated on May 8, 2013


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts