Plotting Data Points - EasyLanguage Programming | futures io social day trading
futures io futures trading


Plotting Data Points
Updated: Views / Replies:610 / 3
Created: by golb0016 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
 

Plotting Data Points

  #1 (permalink)
Trading Apprentice
Minneapolis Minnesota
 
Futures Experience: Intermediate
Platform: Open E-Cry
Favorite Futures: Futures
 
Posts: 3 since Jan 2014
Thanks: 3 given, 0 received

Plotting Data Points

I'm trying to plot some data generated in an Excel spreadsheet against futures prices. I remove 1000000 from the date because for some reason an extra 1 is added on the front of every date. Then the date is run through a bunch of logic statements to find the data point that matches the date and sets the Diff variable to the value and plotpoint to True. At the end it checks to see if should add a point. Right now I'm only able to get it to either plot no points or the very last point (i.e. 3026). Any suggestions are much appreciated!

Vars: Diff(0), plotpoint(False);

Value1 = date - 1000000;

If Value1= 130108 then Diff= 136497 and plotpoint=True;
If Value1= 130115 then Diff= 140085 and plotpoint=True;
If Value1= 130122 then Diff= 133681 and plotpoint=True;
//More data points here removed for this post
If Value1= 140107 then Diff= 60070 and plotpoint=True;
If Value1= 140114 then Diff= 16131 and plotpoint=True;
If Value1= 140121 then Diff= 3026 and plotpoint=True;

If plotpoint = True then begin
Value2 = Round(Diff/1000,0);
Plot7(Value2,"COT",Red);
Plotpoint = False;
End;

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,524 since Apr 2013
Thanks: 229 given, 852 received
Forum Reputation: Legendary


golb0016,

your code did not verify for me as with a simple "if...then" statement you can only
execute code statement and you can't combine them with "and".
Changing the "if...then" to "if...then begin...end" makes the code compile and plot more than one data point.

In EasyLanguage date returns a numerical value indicating the closing date of a bar. The date is indicated in the YYYMMdd format, where YYY is the number of years since 1900, MM is the month, and dd is the day of the month.
That's why starting with 2000 all date values have the 1 as first number.

Regards,
ABCTG



 
Code
Vars: Diff(0), plotpoint(False);

Value1 = date - 1000000;

If Value1= 130108 then 
begin
	Diff= 136497;
	plotpoint=True;
end
else
If Value1= 130115 then 
begin
	Diff= 140085;
	plotpoint=True;
end
else
If Value1= 130122 then 
begin
	Diff= 133681;
	plotpoint=True;
end
//More data points here removed for this post
else
If Value1= 140107 then 
begin
	Diff= 60070;
	plotpoint=True;
end
else
If Value1= 140114 then 
begin
	Diff= 16131;
	plotpoint=True;
end
else
If Value1= 140121 then
begin
	Diff= 3026;
	plotpoint=True;
end;

If plotpoint = True then begin
Value2 = Round(Diff/1000,0);
Plot7(Value2,"COT",Red);
Plotpoint = False;
End;

Reply With Quote
The following user says Thank You to ABCTG for this post:
 
  #4 (permalink)
Elite Member
Hyannis, MA
 
Futures Experience: Advanced
Platform: TradeStation
Favorite Futures: ES
 
Posts: 3 since Nov 2011
Thanks: 0 given, 2 received

Here is a little simpler solution:

---

Vars: Diff(0), plotpoint(False);

Value1 = date - 1000000;

Diff = -999999;

If Value1= 130108 then Diff= 136497;
If Value1= 130115 then Diff= 140085;
If Value1= 130122 then Diff= 133681;
//More data points here removed for this post
If Value1= 140107 then Diff= 60070;
If Value1= 140114 then Diff= 16131;
If Value1= 140121 then Diff= 3026;

If Diff <> -999999 then begin
Value2 = Round(Diff/1000,0);
Plot7(Value2,"COT",Red);
End;

---

This presets Diff to a weird number (-999999) on each bar then plots only if it is changed from that weird number.

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

Reply



futures io > > > > > Plotting Data Points

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Proper Data To Caluculate Pivot Points For Daily, Weekly, Momthly, Yearly searchman Emini Index Futures Trading 7 January 29th, 2014 03:52 PM
Is Apple Plotting Against Your Old iPhone? Quick Summary News and Current Events 0 November 1st, 2013 05:30 PM
Need Help Plotting the average of a queue Xav1029 NinjaTrader Programming 5 September 1st, 2012 11:09 AM
Plotting options Bespoke Options on Futures 8 December 11th, 2011 06:59 PM
PLotting GOM Indicator eone NinjaTrader 1 October 7th, 2010 08:16 PM


All times are GMT -4. The time now is 09:06 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-11 in 0.07 seconds with 19 queries on phoenix via your IP 54.226.227.175