Print values only when they met a condition - EasyLanguage Programming | futures io social day trading
futures io futures trading

Print values only when they met a condition
Updated: Views / Replies:271 / 2
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 100,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 only when they met a condition

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

Print values only when they met a condition

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:


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)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

  #3 (permalink)
Hamburg Germany
Trading Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
Posts: 1,858 since Apr 2013
Thanks: 309 given, 1,147 received


check this thread: @Big Mike this thread can probably be closed as duplicate.



Reply With Quote


futures io > > > > > Print values only when they met a condition

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Battlestations! Show us your trading desks w/GFF Brokers ($750 in Prizes)


Trading Preparedness w/GFF Brokers

Jan 22

Similar Threads
Thread Thread Starter Forum Replies Last Post
Print values - dates only with Moving Average crossing jlsegsan TradeStation 7 March 5th, 2018 04:53 AM
how to setup condition which change another condition in strategy? Tomass NinjaTrader Programming 5 September 14th, 2016 09:13 AM
One Dot When Condition Met KrazyTrader NinjaTrader Programming 4 August 17th, 2016 09:39 PM
link an exit condition to a particular entry condition vegtrip ThinkOrSwim 0 October 12th, 2013 09:49 AM
I'm trying to print the values from an ArrayList kaywai NinjaTrader Programming 13 May 13th, 2011 10:33 AM

data, easylanguage, futures, how to, indicator, indicators, information, multicharts, neoticker, programming, tradestation, txt, values

All times are GMT -4. The time now is 12:34 AM. (this page content is cached, log in for real-time version)

Copyright © 2019 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432 WhatsApp Business,
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 2019-01-18 in 0.19 seconds with 14 queries on phoenix