Incorrect chart drawings caused by timestamps - EasyLanguage Programming | futures io social day trading
futures io futures trading


Incorrect chart drawings caused by timestamps
Updated: Views / Replies:240 / 2
Created: by tomas262 Attachments:1

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

Reply
 
Thread Tools Search this Thread
 

Incorrect chart drawings caused by timestamps

  #1 (permalink)
Trading for Fun
Ostrava, Czech Republic
 
Futures Experience: Intermediate
Platform: SierraChart, OEC
Broker/Data: OEC
Favorite Futures: Futures & Spreads
 
Posts: 98 since May 2013
Thanks: 18 given, 38 received

Incorrect chart drawings caused by timestamps

Hello,

I seek for an advice on how to solve the problem of incorrectly positioned text above/below price bars.

Most of the time text is placed correctly when Close price crosses supertrend line but when there are multiple candles with the same timestamp like 15:28 (and the next one also 15:28) the drawing is placed incorrectly. Seems EasyLanguage cannot distinguish miliseconds part of a candle timestamp

Platform used is OEC Trader

See the screenshot attached

Is there any way to solve this?

Thanks for help

 
Code
// SuperTrend indicator 
inputs: 
ATRLength(3), ATRMult(1), MedLength(2), UpColor(green), DnColor(red); 

variables: 
ATR(0), 
medi(0), 
dn(0), 
up(0), 
trend(1), 
flag(0), 
flagh(0), 
SuperTrend(0), 
downArrow(0),
upArrow(0);

ATR = AvgTrueRange(ATRLength) * ATRMult; 
medi = Median((High+Low)/2, MedLength); 
up = medi + ATR; 
dn = medi - ATR; 

if Close > up[1] then trend = 1 else if Close < dn[1] then trend = -1;

if trend < 0 and trend[1] > 0 then flag=1 else flag=0; 
if trend > 0 and trend[1] < 0 then flagh = 1 else flagh = 0; 

if trend > 0 and dn < dn[1] then dn=dn[1];
if trend < 0 and up > up[1] then up=up[1]; 

if flag = 1 then up = medi + ATR;
if flagh = 1 then dn = medi - ATR; 

if trend = 1 then SuperTrend = dn else SuperTrend = up; 

if flag = 1 then begin
	downArrow = Text_New( Date, Time, High + 300 Point, "S");
	Text_SetColor(downArrow, DnColor);
end;

if flagh = 1 then Begin
	upArrow = Text_New( Date, Time, Low - 300 Point, "B");
	Text_SetColor(upArrow, UpColor);
end;

Plot1(SuperTrend, "SuperTrend");

Attached Thumbnails
Incorrect chart drawings caused by timestamps-2017-11-25_22-04-34.png  

Last edited by tomas262; November 25th, 2017 at 04:53 PM.
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)
 Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,777 since Apr 2013
Thanks: 283 given, 1,061 received


tomas262,

in Tradestation or Multicharts you have the ability to draw text and draw them at a specific bar number. I am not sure if OEC does support this, as it goes beyond legacy EasyLanguage, but you might want to check if you can accomplish this with C# code within OEC.

Regards,

ABCTG

Reply With Quote

Reply



futures io > > > > > Incorrect chart drawings caused by timestamps

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

September Journal Challenge (sponsored by TopstepTrader)

September

Free Elite Membership: Twitter Tuesday and Facebook Friday!

Tue & Fri
 

Trading with Python: Using Machine Learning w/Ran Aroussi [12:30PM ET]

Elite only

TopstepTrader (TBD)

Sep 25

RandBots (TBD)

Sep 27

Anthony Drager (TBD)

Oct 4
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chart Dates Incorrect eone NinjaTrader 18 December 28th, 2015 08:59 AM
Trade from chart drawings sparetrade Platforms and Indicators 1 March 28th, 2013 05:57 PM
ToS quick help: Seperate drawings for each chart? grimReaper ThinkOrSwim 6 January 23rd, 2012 11:27 AM
How do you allow drawings out of chart visible area? Default User NinjaTrader Programming 7 June 27th, 2011 08:20 PM
Clear All Drawings on a Ninja 6.5 Chart? TraderJesse NinjaTrader Programming 5 March 12th, 2010 02:59 PM


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

Copyright © 2018 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 2018-09-18 in 0.09 seconds with 15 queries on phoenix