Trading Days Left in Month - EasyLanguage Programming | futures io social day trading
futures io futures trading


Trading Days Left in Month
Updated: Views / Replies:1,060 / 7
Created: by upshon 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
 

Trading Days Left in Month

  #1 (permalink)
Elite Member
New Zealand
 
Futures Experience: Advanced
Platform: Multicharts, TradeNav
Favorite Futures: Futures
 
Posts: 6 since Dec 2010
Thanks: 3 given, 1 received

Trading Days Left in Month

Hi

I am having some trouble building a function to tell me how many trading days are left in the monh.

below is the code I have so far.

variables: tdlim(0), thisMonth(0), lastDate(0), count(0);

thisMonth = Month(date[0]);
lastDate = symbol_date[0];
count = 0;
tdlim = 0;

while Month(symbol_date[count]) = thisMonth begin

if lastDate <> symbol_date[count] then begin
tdlim = tdlim + 1;
lastDate = symbol_date[count];
end;

count = count - 1;
end;


I am having a problem when I reach the end of the bar series, I dont know how to stop it tring to refer to bars that dont exist, is there a way to tel the number of bars loaded?

Thanks

Mike

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)
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, 855 received
Forum Reputation: Legendary


Hi Mike,

CurrentBar + MaxBarsBack should give you the total number of bars on the chart.

Regards,

ABCTG

Reply With Quote
 
  #4 (permalink)
Elite Member
New Zealand
 
Futures Experience: Advanced
Platform: Multicharts, TradeNav
Favorite Futures: Futures
 
Posts: 6 since Dec 2010
Thanks: 3 given, 1 received

Thanks for the reply,

However MaxBarsBack is always 0

Im using Multicharts 9.1


ABCTG View Post
Hi Mike,

CurrentBar + MaxBarsBack should give you the total number of bars on the chart.

Regards,

ABCTG


Reply With Quote
 
  #5 (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, 855 received
Forum Reputation: Legendary

upshon,

I don't understand why this would matter? CurrentBar + MaxBarsBack (if it's 0, 100 or 500 does not matter) gives you the total number of bars on the chart. You can use this value then in your loop to make sure that you don't try to look beyond data available on the chart.

Regards,

ABCTG

Reply With Quote
 
  #6 (permalink)
Elite Member
New Zealand
 
Futures Experience: Advanced
Platform: Multicharts, TradeNav
Favorite Futures: Futures
 
Posts: 6 since Dec 2010
Thanks: 3 given, 1 received

ABCTG

I am looking forward not backwards. in my while loop I am counting bars ahead of current bar where future bar month is the same as current bar. If I dont know the total number of bars in the price series and I try and reference a bar that does not exist Multiharts throws error.

Current bar gives me the bar I am currently referencing, maxbarsback is always 0.

Again thanks for your help.

Reply With Quote
 
  #7 (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, 855 received
Forum Reputation: Legendary

upshon,

check out Symbol_Length then, this should provide you with what you are looking for.

Regards,

ABCTG

Reply With Quote
 
  #8 (permalink)
Elite Member
New Zealand
 
Futures Experience: Advanced
Platform: Multicharts, TradeNav
Favorite Futures: Futures
 
Posts: 6 since Dec 2010
Thanks: 3 given, 1 received

Thanks ABCTG

Symbol_length was just what I was after.

Reply With Quote

Reply



futures io > > > > > Trading Days Left in Month

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
Is it worth trading chop days? Itchymoku Psychology and Money Management 43 August 31st, 2015 07:31 AM
Left Coast Trading Journal Royalchrome Elite Trading Journals 1 November 29th, 2012 04:42 PM
Are the Day Trading HFT Algos Literally the Only Ones Left in the Silver Market?? Victory Trader News and Current Events 0 August 16th, 2012 05:24 PM
Code for trading a part of the month? Orjan EasyLanguage Programming 3 April 14th, 2012 04:20 AM
First month trading; some thoughts Jameson Psychology and Money Management 5 June 22nd, 2011 12:42 AM


All times are GMT -4. The time now is 01:03 PM.

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-16 in 0.11 seconds with 19 queries on phoenix via your IP 54.91.38.173