Plot Time in MC Screener??? - MultiCharts | futures io social day trading
futures io futures trading


Plot Time in MC Screener???
Updated: Views / Replies:1,627 / 7
Created: by ChrisMoody Attachments:4

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
 

Plot Time in MC Screener???

  #1 (permalink)
Elite Member
Chapel Hill, NC
 
Futures Experience: Advanced
Platform: Trade Navigator, MultiCharts, TOS
Broker/Data: Stage 5, FXCM, IQ Feed
Favorite Futures: Futures, Forex, Options
 
ChrisMoody's Avatar
 
Posts: 12 since Aug 2011
Thanks: 22 given, 3 received

Plot Time in MC Screener???

I'm new to MC....Going through my TradeStation Easy Language Home Study Course and there is one study for Radar Screen that I can't get to work with MC screener. It is supposed to show the time of day each symbol reaches it's High and Low price. The interval they used in the example is 5 minutes.

Example:

IBM - 5 Min - 09:35:00 AM (High) - 10:45:00 AM (Low)

The attached picture is showing the result I am getting. Any Help would be greatly appreciated.

Here is the Code I am using....

Var: DHigh(0), DLow(0), HighTime(0), LowTime(0);

If Date <> Date[1] then begin
DHigh = High;
DLow = Low;
HighTime = Time;
LowTime = Time;
end
else begin
If High > DHigh then
DHigh = High;
HighTime = Time;
end;
If Low < DLow then begin
DLow = Low;
LowTime = Time;
end;


Plot1 (HighTime, "HighTime");
Plot2 (LowTime, "LowTime");

It compiles but won't show the time. I've spent hours going thru there Help area and all reserved words that have to do with time.

Attached Thumbnails
Plot Time in MC Screener???-screenerwindow.png  
Reply With Quote
 
  #2 (permalink)
 Vendor: tradingcode.net 
The Netherlands
 
Futures Experience: None
Platform: MultiCharts, TradingView
Favorite Futures: ...
 
Jura's Avatar
 
Posts: 774 since Apr 2010
Thanks: 2,347 given, 661 received


ChrisMoody View Post
It compiles but won't show the time. I've spent hours going thru there Help area and all reserved words that have to do with time.

Well, actually it does show the time, since the EasyLanguage word Time returns the time in 1115.00 format (i.e. 11:15 in the morning). For example:

 
Code
Print("Time of bar: ", time);
returns...

Quoting 
Time of bar: 1406.00
Time of bar: 1411.00
Time of bar: 1416.00
Time of bar: 1421.00
Time of bar: 1426.00
Time of bar: 1431.00
Time of bar: 1436.00
Time of bar: 1441.00
Time of bar: 1446.00
Time of bar: 1451.00
Time of bar: 1456.00
Time of bar: 1501.00
Time of bar: 1506.00
Time of bar: 1511.00
Time of bar: 1516.00
Time of bar: 1521.00
Time of bar: 1526.00
Time of bar: 1531.00
Time of bar: 1536.00

So in your screenshot, you'll see the ES reaching the High at 1,515.0, meaning 15:15:00 (or a quarter pas three in the afternoon).

(Btw, if you use Time_s (instead of Time), you'll also get the seconds.)

-> It's not possible to plot a string value in the Market Scanner, so there is no way around this to show you the time in "clean" format.

In other parts of EasyLanguage, where you can use strings, you can use:
 
Code
Print("Time of bar: ", FormatTime("HH:mm:ss", el_timetodatetime_s(time_s)) );
which gives the following output..

Quoting 
Time of bar: 09:10:09
Time of bar: 09:13:22
Time of bar: 09:15:53
Time of bar: 09:16:55
Time of bar: 09:19:45
Time of bar: 09:23:23
Time of bar: 09:23:55
Time of bar: 09:25:50
Time of bar: 09:29:34
Time of bar: 09:41:57
Time of bar: 09:44:14
Time of bar: 09:47:15
Time of bar: 09:53:00
Time of bar: 09:59:10
Time of bar: 10:01:53
Time of bar: 10:05:01
Time of bar: 10:05:29
Time of bar: 10:11:35
Time of bar: 10:18:02
Time of bar: 10:30:27

Regards,
Jura

Reply With Quote
The following 4 users say Thank You to Jura for this post:
 
  #3 (permalink)
Elite Member
Chapel Hill, NC
 
Futures Experience: Advanced
Platform: Trade Navigator, MultiCharts, TOS
Broker/Data: Stage 5, FXCM, IQ Feed
Favorite Futures: Futures, Forex, Options
 
ChrisMoody's Avatar
 
Posts: 12 since Aug 2011
Thanks: 22 given, 3 received


Jura,

Thanks so much for you help. Can I please get your input on one other issue. It seems to be showing the correct time for the low of the day, but not the high...

If you put the study below on a price chart it works perfectly by showing the Low and High of the day...but in the Screener using the code I used above it's not showing the correct time for the high...

If you take a look at symbol IWM for today the low was at 9:35 east coast and the high was at 3:50 or 15:50 but in the screener it is showing the high at 1805. The symbol is from the NYSE and I checked to make sure the sessions were correct and that it was set to East Coast time....any idea what is causing the High Time to be wrong????

Var: DHigh(0), DLow(0);

If Date <> Date[1] then begin
DHigh = High;
DLow = Low;
end
else begin
If High > DHigh then
DHigh = High;
If Low < DLow then
DLow = Low;
end;

If DLow <> 0 then begin
Plot1(DHigh, "DayHigh");
Plot2(DLow, "DayLow");
end;


Thanks Again for your input.....

Attached Thumbnails
Plot Time in MC Screener???-screener.png   Plot Time in MC Screener???-iwmchart.png  
Reply With Quote
 
  #4 (permalink)
Elite Member
GER
 
Futures Experience: Advanced
Platform: MC
Favorite Futures: ES
 
Posts: 144 since May 2011
Thanks: 11 given, 211 received

This should work
 
Code
 
Var:  DHigh(0), DLow(0), HighTime(0), LowTime(0);

If Date <> Date[1] then begin
DHigh = 0;
DLow = 999999;
HighTime = Time;
LowTime = Time;
end; // End here

If High > DHigh then begin
DHigh = High;
HighTime = Time;
end;
If Low < DLow then begin
DLow = Low;
LowTime = Time;
end;


Plot1 (HighTime, "HighTime");
Plot2 (LowTime, "LowTime");

Reply With Quote
The following 3 users say Thank You to SPMC for this post:
 
  #5 (permalink)
Elite Member
Chapel Hill, NC
 
Futures Experience: Advanced
Platform: Trade Navigator, MultiCharts, TOS
Broker/Data: Stage 5, FXCM, IQ Feed
Favorite Futures: Futures, Forex, Options
 
ChrisMoody's Avatar
 
Posts: 12 since Aug 2011
Thanks: 22 given, 3 received

Thanks that worked perfect....for some reason adding DHigh = 0; and DLow = 999999; changed the LowTime to a blue color plot that was hard to read with a black background....I added the 2 SetPlotColor's and everything is perfect....

PROBLEM SOLVED.....

Thanks Again....

 
Code
 

Var:  DHigh(0), DLow(0), HighTime(0), LowTime(0);

If Date <> Date[1] then begin
DHigh = 0;
DLow = 999999;
HighTime = Time;
LowTime = Time;
end; // End here

If High > DHigh then begin
DHigh = High;
HighTime = Time;
end;
If Low < DLow then begin
DLow = Low;
LowTime = Time;
end;


Plot1 (HighTime, "HighTime");
Plot2 (LowTime, "LowTime");

SetPlotColor (1, Green);
SetPlotColor (2, Red);

Reply With Quote
The following user says Thank You to ChrisMoody for this post:
 
  #6 (permalink)
Elite Member
GER
 
Futures Experience: Advanced
Platform: MC
Favorite Futures: ES
 
Posts: 144 since May 2011
Thanks: 11 given, 211 received

For better reading create a new string function ELTimeToString with

 
Code
inputs: TimeSelect( numericsimple );
var: s(""),strl(0);
s = NumToStr(TimeSelect,0);
strl = strlen(s);
if      strl = 4 then
    ELTimeToString =       LeftStr(s,2) + ":" + RightStr(s,2)
else if strl = 3 then
    ELTimeToString = "0" + LeftStr(s,1) + ":" + RightStr(s,2)
else if strl = 2 then
    ELTimeToString = "00:" + RightStr(s,2)
else if strl = 1 then
    ELTimeToString = "00:0" + RightStr(s,1)
else if strl = 0 then
    ELTimeToString = "00:00";
and then use
Plot1 ( ELTimetoString(HighTime), "HighTime");
Plot2 ( ELTimetoString(lowtime), "LowTime");

Reply With Quote
The following 3 users say Thank You to SPMC for this post:
 
  #7 (permalink)
Elite Member
Chapel Hill, NC
 
Futures Experience: Advanced
Platform: Trade Navigator, MultiCharts, TOS
Broker/Data: Stage 5, FXCM, IQ Feed
Favorite Futures: Futures, Forex, Options
 
ChrisMoody's Avatar
 
Posts: 12 since Aug 2011
Thanks: 22 given, 3 received

SPMC....Thanks so much for going out of your way to help. It works perfect...

The attached photo shows where I started on the left study....and on the right is the study you helped me create....

Thanks Again....

Attached Thumbnails
Plot Time in MC Screener???-screen-shot-2011-10-12-4.54.39-pm.png  
Reply With Quote
The following 2 users say Thank You to ChrisMoody for this post:
 
  #8 (permalink)
 Vendor: tradingcode.net 
The Netherlands
 
Futures Experience: None
Platform: MultiCharts, TradingView
Favorite Futures: ...
 
Jura's Avatar
 
Posts: 774 since Apr 2010
Thanks: 2,347 given, 661 received


SPMC View Post
Plot1 ( ELTimetoString(HighTime), "HighTime");
Plot2 ( ELTimetoString(lowtime), "LowTime");

Also a big thanks from me SPMC, I didn't know you could plot strings with EasyLanguage. Thanks for proving me wrong.

Regards,
Jura

Reply With Quote

Reply



futures io > > > > Plot Time in MC Screener???

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
MC Traders dynamic index -> conveting to MC yiman MultiCharts 12 August 2nd, 2016 11:40 AM
SMA with Discretionary Start Time and Start Date for MC tradernovice EasyLanguage Programming 4 July 29th, 2011 07:50 PM
Premarket realtime equity screener TwoHands Platforms and Indicators 3 May 2nd, 2011 06:49 PM
MC/TS : Better screen plot shapes NW27 EasyLanguage Programming 1 January 7th, 2011 12:46 AM
"time"stop" codes for MC ptcm EasyLanguage Programming 1 September 2nd, 2010 01:57 AM


All times are GMT -4. The time now is 10:48 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-13 in 0.12 seconds with 20 queries on phoenix via your IP 54.226.113.250