Horizontal Line Drawn At A Certain Time - futures io
futures io



Horizontal Line Drawn At A Certain Time


Discussion in EasyLanguage Programming

Updated
    1. trending_up 287 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 5 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 150,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Horizontal Line Drawn At A Certain Time

(login for full post details)
  #1 (permalink)
OccamsRazorTrader
Forida USA
 
 
Posts: 17 since May 2020
Thanks: 7 given, 22 received

I've managed to code my algorithm in EL for trading. My current research is focused on differentiating between 'Last Price' Vs. Settlement Price. Websites with data will show 'Last Price' but are actually portraying the settlement price. In certain times, like earnings season, the differences between the prices can be somewhat large. Is it possible to draw a horizontal line at the last price on a chart @ 16:59:59 yesterday, which would be the true last price. So instead of the horizontal line tied to a price- the line is tied to the last price at a certain time ...........
Any help is appreciated ...........

Reply With Quote

Can you help answer these questions
from other members on futures io?
Historical Tick Data for E-mini Futures
The Elite Circle
use of Ultimate Oscillator in NT8
NinjaTrader
NT8 Batch load strategies from xml
NinjaTrader
Moving Average Price Scan
ThinkOrSwim
Hey! Is there a way to change the date and symbol on a c …
EasyLanguage Programming
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Spoo-nalysis ES e-mini futures S&P 500
12 thanks
Cycle Analysis... a way of looking at price action.
8 thanks
Want your NinjaTrader indicator created, free?
7 thanks
Basic Education for Beginner Trader
7 thanks
TST/OneUp/LeeLoo/Earn2Trade
4 thanks
 
(login for full post details)
  #2 (permalink)
Kolnidrei
Lyon/France
 
 
Posts: 22 since Aug 2012
Thanks: 1 given, 14 received

hi

Quoting 
Input:
MyTime(165959);
Var:
x(0);

if time = mytime then x = C;
if x <> 0 then Plot(x);


Reply With Quote
The following user says Thank You to Kolnidrei for this post:
 
(login for full post details)
  #3 (permalink)
OccamsRazorTrader
Forida USA
 
 
Posts: 17 since May 2020
Thanks: 7 given, 22 received


Thanks I can't get it to plot- it might be something with scaling, I changed Plot(x)to Plot1(x).
But that didn't help- I'll play with it some more.
Is there a way to do that same time but the day before [1] ?
Thank you for your help.

Reply With Quote
 
(login for full post details)
  #4 (permalink)
Kolnidrei
Lyon/France
 
 
Posts: 22 since Aug 2012
Thanks: 1 given, 14 received

hi, try

Quoting 
plot1(x,"hl",cyan);

I don't understand what you want to achieve.
If it's the previous day's value and you use an intradychart
you risk to get the same value with x[1].
So you would need to introduce a second variable y
and every time transfer the values with

Quoting 
Input:
MyTime(165959);
Vars:
x(0),y(0);

if time = mytime then begin
y = x;
x = C;
end;
if y <> 0 then Plot1(y,"hl",cyan);


Reply With Quote
 
(login for full post details)
  #5 (permalink)
 bobwest 
Site Moderator
Sarasota FL
 
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
 
bobwest's Avatar
 
Posts: 7,362 since Jan 2013
Thanks: 53,921 given, 24,496 received


Kolnidrei View Post
hi, try

I don't understand what you want to achieve.
If it's the previous day's value and you use an intradychart
you risk to get the same value with x[1].
So you would need to introduce a second variable y
and every time transfer the values with

Hi @Kolnidrei,

FYI, you might want to use the CODE tags instead of QUOTE. (Click # icon on the menu bar in the editor.) It makes it a little more clear that you are proposing new code, not quoting something already posted:

 
Code
Input:
MyTime(165959);
Vars:
x(0),y(0);

if time = mytime then begin
y = x;
x = C;
end;
if y <> 0 then Plot1(y,"hl",cyan);

Just formatting, but it might be better for what you are doing.

Bob.

When one door closes, another opens.
-- Cervantes, Don Quixote
Reply With Quote
 
(login for full post details)
  #6 (permalink)
Kolnidrei
Lyon/France
 
 
Posts: 22 since Aug 2012
Thanks: 1 given, 14 received

hi Bob,

thank you for your notice, I was looking for it,
for some reason I didn't find it that's why I used 'Quote',
now I saw it !

Reply With Quote


futures io Trading Community Platforms and Indicators EasyLanguage Programming > Horizontal Line Drawn At A Certain Time


Last Updated on June 20, 2022


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
     



Copyright © 2022 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), 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