Print only once when using 3 times frames - MultiCharts | futures io social day trading
futures io futures trading


Print only once when using 3 times frames
Updated: Views / Replies:533 / 2
Created: by stefanols 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

Reply
 
Thread Tools Search this Thread
 

Print only once when using 3 times frames

  #1 (permalink)
zivo
Helsingborg
 
Futures Experience: Intermediate
Platform: Bullcharts, Multicharts
Favorite Futures: ES and scandinavian Stocks
 
Posts: 16 since May 2011
Thanks: 5 given, 5 received

Print only once when using 3 times frames

Hi,

I would like to ask how to create a check to avoid triple or 5 fold prints due to higher time frame. I collect events that happen on 3,9,27 min. But if it happens on 27 min it prints many times hence higher TF. See code example below.

Thanks in advance // BR Stefan

 
Code
Inputs: RSIL(2);
variables:  var0( 0 ) ;

var0 = RSI(Close,RSIL);

   value11= var0;
   value12= var0 of data2;
   value13= var0 of data3;


Condition10= (value11[0] crosses below 10 ); 

Condition11= ( value12[0]  crosses below 10 ); 

Condition12= ( value13[0] crosses below 10 ); 


If condition10 then plot1 (7,"RSI cross < 10 time frame1",red,default,5);
If Condition11 then plot2 (7,"RSI cross < 10 time frame2",red,default,8);
If Condition12 then plot3 (7,"RSI cross < 10 time frame3",red,default,11);


Last edited by stefanols; June 25th, 2016 at 04:31 AM.
Reply With Quote
 
  #2 (permalink)
Market Wizard
Germany
 
Futures Experience: Intermediate
Platform: Other
Favorite Futures: ES, YM, 6E
 
Posts: 2,644 since Feb 2013
Thanks: 4,904 given, 6,441 received
Forum Reputation: Legendary

Answer
This post has been selected as an answer to the original posters question Answer

I don't use your platform, but in general "else" clauses are made for your problem.

Instead of running the conditions sequentially, link them with else clauses.
In pseudo code, start with the highest time frame and work down to the lowest like that:
 
Code
if (highestTF)
    {}
else if (mediumTF)
    {}
else if (lowestTF)
    {}

That way your program will only execute the code for the highest time frame that fills
your condition and skip the others.

Reply With Quote
The following user says Thank You to choke35 for this post:
 
  #3 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,533 since Apr 2013
Thanks: 231 given, 854 received
Forum Reputation: Legendary

Answer
This post has been selected as an answer to the original posters question Answer


stefanols,

what @choke35 suggested might work. You can try to only plot and the end of the respective bar (timeframe 1, 2 or 3). I would also suggest not to use the standard value1 and condition1 variables, but create your own ones and tie them to the datastreams (as not they are tied to data1 and you evaluate them with every data1 update).

Regards,

ABCTG



stefanols View Post
Hi,

I would like to ask how to create a check to avoid triple or 5 fold prints due to higher time frame. I collect events that happen on 3,9,27 min. But if it happens on 27 min it prints many times hence higher TF. See code example below.

Thanks in advance // BR Stefan

 
Code
Inputs: RSIL(2);
variables:  var0( 0 ) ;

var0 = RSI(Close,RSIL);

   value11= var0;
   value12= var0 of data2;
   value13= var0 of data3;


Condition10= (value11[0] crosses below 10 ); 

Condition11= ( value12[0]  crosses below 10 ); 

Condition12= ( value13[0] crosses below 10 ); 


If condition10 then plot1 (7,"RSI cross < 10 time frame1",red,default,5);
If Condition11 then plot2 (7,"RSI cross < 10 time frame2",red,default,8);
If Condition12 then plot3 (7,"RSI cross < 10 time frame3",red,default,11);


Reply With Quote
The following user says Thank You to ABCTG for this post:

Reply



futures io > > > > Print only once when using 3 times frames

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Time Frames jkinneberg NinjaTrader Programming 17 March 21st, 2015 08:42 PM
How to print with decimals? sosolala EasyLanguage Programming 3 September 21st, 2014 04:28 AM
multiple time frames shanemcdonald28 NinjaTrader Programming 2 March 2nd, 2014 07:20 PM
Print, Rally, Then What? Quick Summary News and Current Events 0 November 17th, 2011 09:30 AM
Anyone using Print+ from moneyflowbars.com? Need your help Chipmunk Trading Reviews and Vendors 5 October 20th, 2010 05:30 AM


All times are GMT -4. The time now is 12:55 AM.

Copyright © 2017 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
Page generated 2017-12-14 in 0.09 seconds with 25 queries on phoenix via your IP 54.221.93.187