Print values - dates only with Moving Average crossing - TradeStation | futures io social day trading
futures io futures trading

Print values - dates only with Moving Average crossing
Updated: Views / Replies:126 / 1
Created: by jlsegsan Attachments:0

Welcome to futures io.

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

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

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

Thread Tools Search this Thread

Print values - dates only with Moving Average crossing

  #1 (permalink)
Trading Apprentice
Futures Experience: None
Platform: Tradestation
Favorite Futures: Nasdaq
Posts: 3 since Feb 2018
Thanks: 0 given, 0 received

Print values - dates only with Moving Average crossing

Apologies in advance I am an absolute beginner

I coded a simple indicator to plot 3 moving averages
Then I add the condition of the first 2 crossing
I want to apply this indicator to the Radar where I have selected some values
My info extraction would be very simple at first:

- Future / Stock - Date - Value at which the 2 Moving Averages have crossed
but get data extraction only in the date in which I have a crossing, I don't need the Dates and Values without any Moving average crossing

I have managed to write the Plot part, even the Condition, but I don't know how to code the Print part

Your help would be really appreciated

My coding Inputs:

Price (Close),
Length1 (2),
Length2 (11),
Length3 (22),
ConfirmBars( 1 ) ;


FileName (" "),
Counter( 0 );
{ Plot1 Averages on chart }

Plot1 ( AverageFC(Price , Length1), "Avg1");
Plot2 ( AverageFC(Price , Length2), "Avg2");
Plot3 ( AverageFC(Price , Length3), "Avg3");

if AverageFC(Price, Length1) > AverageFC( Price, Length2 ) then
Counter = Counter + 1;
if Counter = ConfirmBars then

Print ("Date -",ELDateToString(Date)," Avg1", Plot1:3.3, " Avg2", Plot2:3:4, " Avg3", Plot3:3:5) ;
If Currentbar = 1 then Print(File("C:\TestTemp.txt"),"Date - ",";"," Avg1 ",";"," Avg2 ",";"," Avg3 ") ;
Print(File("C:\TestTemp.txt"), ELDateToString(Date),";", Plot1:3.3, ";", Plot2:3:4, ";", Plot3:3:5) ;

Reply With Quote
  #2 (permalink)
Market Wizard
Hamburg Germany
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
Posts: 1,604 since Apr 2013
Thanks: 242 given, 896 received


welcome to

What do you intend to do with the prints? Any display in Radarscreen is done via plots, while the output of the print reserved word appears in the "EasyLanguage Print Log".
If you want to display the date in Radarscreen, you could store the date in a variable when your condition is true. Then you can plot plot this variable directly or convert it via ELDateToString and plot the string (you can also set the grid style to date for the latter under the indicator properties: Format Analysis Technique - Grid Style).

You can find a good example here:



Reply With Quote


futures io > > > > Print values - dates only with Moving Average crossing

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

Brett Steenbarger: Current Best Practices of Best Traders

Elite only

CME Group: Futures & Bitcoin

Elite only

Ran Aroussi: TBA [special time 11AM ET]

Elite only

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help please - moving spreadsheet values into constant lines indicator aquarian1 NinjaTrader Programming 35 January 12th, 2018 12:37 PM
moving average monsieur NinjaTrader 1 November 29th, 2015 06:23 PM
Multiple moving average crossing strategy parsamkk The Elite Circle 7 August 5th, 2013 10:07 AM
Moving Average Kush NinjaTrader Programming 5 November 6th, 2011 01:49 PM
I'm trying to print the values from an ArrayList kaywai NinjaTrader Programming 13 May 13th, 2011 10:33 AM

All times are GMT -4. The time now is 10:35 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432,
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
Page generated 2018-02-22 in 0.06 seconds with 22 queries on phoenix via your IP