Intraday indicator using daily ans weekly datas - futures io
futures io futures trading



Intraday indicator using daily ans weekly datas


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one Big Mike with 3 posts (0 thanks)
    2. looks_two nunoonline with 3 posts (0 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 dhanamala87 with 1 posts (0 thanks)
    1. trending_up 4,440 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 8 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,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
 

Intraday indicator using daily ans weekly datas

(login for full post details)
  #1 (permalink)
France
 
 
Posts: 10 since Apr 2010
Thanks: 7 given, 0 received

Hi

i want to create an intraday indicator using daily and weekly data in order to use this one in an scanner

With the help of siscop, i tested the indicator in a daily chart and it's ok
But when i insert this indicator in an intraday chart, i don't have the same result.
Is it wrong?

 
Code
// code function _fHighestD
inputs: 
   Len(numericsimple);
variables: 
   var0(0);

var0=HighD(0);
for Value1 = 1 to Len - 1 
begin
   if HighD(Value1)>var0 then
      var0=HighD(Value1);
end ;

_fHighestD=var0;
 
Code
// Code function _fLowestD
inputs: 
   Len(numericsimple);
variables: 
   var0(0);

var0=LowD(0);
for Value1 = 1 to Len - 1 
begin
   if LowD(Value1)<var0 then
      var0=LowD(Value1);
end ;

_fLowestD=var0;
 
Code
// Code Indicator
Inputs: 
   Length1(10), Length2(5), Length3(5), UpColor(Green), DnColor(Red), AlertLevel(40);
   
Var: 
   Day.HH(0), Day.LL(0), Day.SMI(0);

Day.HH = _fHighestD(Length1);
Day.LL = _fLowestD(Length1);

Day.SMI = 100 * (XAverage(XAverage(CloseD(0)-(0.5*(Day.HH+Day.LL)),Length2),Length3) / (0.5 * XAverage(XAverage(Day.HH-Day.LL,Length2),Length3)));

Plot1(Day.SMI, "Day.SMI" );
Plot2(AlertLevel, "Sell Line" );
Plot3(-AlertLevel, "Buy Line" );

If Day.SMI> Day.SMI[1] then 
   begin
   Plot1[1](Day.SMI[1], "Day.SMI", Upcolor);
   Plot1(Day.SMI, "Day.SMI", Upcolor);
   end 
   else begin
   Plot1[1](Day.SMI[1], "Day.SMI", Dncolor);
   Plot1(Day.SMI, "Day.SMI", Dncolor);
   end;

thank you for your help

Nuno

Reply With Quote

Can you help answer these questions
from other members on futures io?
If ES tracks SPX, why do support/resistance, Level 2, vo …
Emini and Emicro Index
Second Entry Indicator (Looking for testers/feedback)
NinjaTrader
Short Interest Ratio indicator?
ThinkOrSwim
Indicators for pair trading MES and M2K
Platforms and Indicators
ZigZag with Depth and Backstep
EasyLanguage Programming
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Selling Options on Futures?
109 thanks
Battlestations: Show us your trading desks!
108 thanks
Rank your Futures vs Stocks trading priority
55 thanks
Want your NinjaTrader indicator created, free?
27 thanks
Whats this confusion with margins?
21 thanks
 
(login for full post details)
  #3 (permalink)
France
 
 
Posts: 10 since Apr 2010
Thanks: 7 given, 0 received


Is there another way to scan a list of stocks in intraday once the daily and weekly setups are ok?

Reply With Quote
 
(login for full post details)
  #4 (permalink)
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,785 since Jun 2009
Thanks: 32,313 given, 97,574 received

Can you be more specific as to what the problem is? You say "don't have the same result", but it isn't clear what the actual details or error is.

Screenshots are useful for troubleshooting.

Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #5 (permalink)
France
 
 
Posts: 10 since Apr 2010
Thanks: 7 given, 0 received

Mike

# I tested the indicator in a daily chart
# i plotted the same indicator in an intraday chart
As you can see in the indicator's code, i use the function HighD(), LowD() and CloseD()
So the indicator's values in the intraday chart would be the same as the indicator's values in the daily chart
It is not the case and i don't know why


Nuno

Reply With Quote
 
(login for full post details)
  #6 (permalink)
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,785 since Jun 2009
Thanks: 32,313 given, 97,574 received

OK, I've not used those before (highd, lowd, etc) - I just track it myself, something like:

 
Code
                            
if date <> date[1then begin


yesthigh 
todayhigh;
todayhigh H;
yestlow todaylow;
todaylow L;

end;

if 
todayhigh then todayhigh H;
if 
todaylow then todaylow L
Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #7 (permalink)
DELHI
 
 
Posts: 1 since May 2011
Thanks: 0 given, 0 received

Hi,

I am using easylanguage tradestation and i want to find out 1 hour high and low using 5 minutes movement..pls help me out in coding cos i tried in many ways but am not able include 1st bar high and low..

Reply With Quote
 
(login for full post details)
  #8 (permalink)
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,785 since Jun 2009
Thanks: 32,313 given, 97,574 received


dhanamala87 View Post
Hi,

I am using easylanguage tradestation and i want to find out 1 hour high and low using 5 minutes movement..pls help me out in coding cos i tried in many ways but am not able include 1st bar high and low..

Typed by hand and not syntax checked, but something like this

 
Code
                            


vars
:
 
currenthour ("0"),
 
lasthour_high (0),
 
lasthour_low (0),
 
currenthour_high(0),
 
currenthour_low(0);

currenthour FormatTime("H"Time);

if 
currenthour <> currenthour[1then begin

 lasthour_high 
currenthour_high;
 
lasthour_low currenthour_low;

end
else
begin

 
if currenthour_high then currenthour_high H;
 if 
currenthour_low then currenthour_low L;

end
Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #9 (permalink)
Fort Walton Beach, Florida
 
 
Posts: 4 since Feb 2014
Thanks: 0 given, 0 received

I can see a of couple things here.

First, you are using the zero (0) value in your user functions calling the DayH and DayL - intra day this will be a moving value as the open days high and low will, or may, be changing.

You are also doing an XAverage using intraday bars, so it is not smoothing over multiple daily SMI values as it is on a daily chart. You are going to need to specially code your own XAverage to be calculated once per day and storing the previous days result for use.

The DayH and DayL may be treating date change as end of day not session end. These are very old functions that were created before electronic session became 24, or near 24, hour markets.

There are a number of changes that would need to be dome to make this study work as expected. Things to look into would include :

Using BarStatus to only compute once per day.
Deciding whether DayH and DayL return the value you wish to use.
Creating an actual Daily XAverage function.

Samuel K. Tennis

Reply With Quote


futures io Trading Community Platforms and Indicators EasyLanguage Programming > Intraday indicator using daily ans weekly datas


Last Updated on February 17, 2014


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 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