NexusFi: Find Your Edge


Home Menu

 





Coding an daily indicator on a intraday chart


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one nikke with 6 posts (0 thanks)
    2. looks_two BenosBanderos with 6 posts (3 thanks)
    3. looks_3 SammyD with 2 posts (0 thanks)
    4. looks_4 johni with 2 posts (0 thanks)
    1. trending_up 11,508 views
    2. thumb_up 3 thanks given
    3. group 6 followers
    1. forum 18 posts
    2. attach_file 0 attachments




 
Search this Thread

Coding an daily indicator on a intraday chart

  #1 (permalink)
johni
canada
 
Posts: 29 since Jun 2011
Thanks Given: 0
Thanks Received: 0

How to code an daily indicator on an intraday chart

Want to code a daily moving average and daily stardard deviation and put on an intraday chart

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Online prop firm The Funded Trader (TFT) going under?
Traders Hideout
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Are there any eval firms that allow you to sink to your …
Traders Hideout
Better Renko Gaps
The Elite Circle
Exit Strategy
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
60 thanks
Funded Trader platforms
43 thanks
NexusFi site changelog and issues/problem reporting
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
The Program
19 thanks
  #3 (permalink)
 RM99 
Austin, TX
 
Experience: Advanced
Platform: TradeStation
Trading: Futures
Posts: 839 since Mar 2011
Thanks Given: 124
Thanks Received: 704



johni View Post
How to code an daily indicator on an intraday chart

Want to code a daily moving average and daily stardard deviation and put on an intraday chart

You'll have to use 1440 minutes on an intraday chart.

If you're wanting to plot the values on a smaller time frame chart, you'll have to develop items in the global dictionary and then plot them using an indicator that references them.

"A dumb man never learns. A smart man learns from his own failure and success. But a wise man learns from the failure and success of others."
Reply With Quote
  #4 (permalink)
johni
canada
 
Posts: 29 since Jun 2011
Thanks Given: 0
Thanks Received: 0

Require a dll on the global directory?

Do you have some daily indicator for intraday chart?

Reply With Quote
  #5 (permalink)
 SammyD 
Salt Lake City, Utah
 
Experience: Intermediate
Platform: NinjaTrader, Tradestation
Trading: Forex
Posts: 72 since Feb 2011
Thanks Given: 274
Thanks Received: 36

You can always add multiple data streams to the chart and recode the indicator to reference the larger timeframe datastream for variables and calculations. Here is a very simple example of an exponential moving average function that is calculated on datastream 2:

inputs:
Length(numericsimple);

vars:
Xavg2(0,Data2);

Xavg2=xaverage(close data2,Length)Data2;

$xavg2=Xavg2;

Reply With Quote
  #6 (permalink)
 NW27 
Newcastle, Australia
 
Experience: Intermediate
Platform: Multicharts 8 - Full Version
Broker: IB
Trading: SPI,FTSE100, 6E, 6A
Posts: 285 since Oct 2010
Thanks Given: 108
Thanks Received: 188


SammyD View Post

$xavg2=Xavg2;

Hi,

Whats the $... bit for?

Neil.

Reply With Quote
  #7 (permalink)
 SammyD 
Salt Lake City, Utah
 
Experience: Intermediate
Platform: NinjaTrader, Tradestation
Trading: Forex
Posts: 72 since Feb 2011
Thanks Given: 274
Thanks Received: 36

Perhaps the above example wasn't a good one because it is a function. The $ is simply an identifier that I use to distinguish items I've coded so that they will stand out in a directory from the default functions/indicators/strategies etc. For instance, TS may come out of the box with a function named "Average". If I coded my own version of this function, I would name it "$Average" to set it apart from the default name. I hope that makes sense. If, on the other hand, you are asking what the statement does, it is a necessary requirement of all functions to have this line, typically at the bottom. With all of that said, here is, perhaps, an easier example of "aliasing". This is the official term for coding multiple data streams into an indicator/function/strategy. All prices, variables, and function calls should be explicitly aliased to a data stream

inputs:
FastMALen( 5 );

variables:
FastMA( 0, Data2 );

FastMA = Average( Close of Data2, FastMALen ) of Data2 ;

Of course, to make this an indicator, simply add a "plot" statement.

Reply With Quote
  #8 (permalink)
 BenosBanderos 
Canberra
 
Experience: Beginner
Platform: MultiCharts
Trading: AUD/USD
Posts: 31 since Mar 2012
Thanks Given: 23
Thanks Received: 22


johni View Post
How to code an daily indicator on an intraday chart

Want to code a daily moving average and daily stardard deviation and put on an intraday chart

I did this fairly simply by using CloseD, OpenD etc instead of Close in the indicator. I don't think these EL functions are documented by Multicharts but they work.

 
Code
var0 = XAverage(CloseD,50);

Reply With Quote
Thanked by:
  #9 (permalink)
nikke
grandiose
 
Posts: 34 since Aug 2010
Thanks Given: 5
Thanks Received: 6


BenosBanderos View Post
I did this fairly simply by using CloseD, OpenD etc instead of Close in the indicator. I don't think these EL functions are documented by Multicharts but they work.

 
Code
var0 = XAverage(CloseD,50);

Maybe that works in an indicator, but at least in a signal I cannot use this:
 
Code
 LinearRegAngle(LowD, 9)
So have to add the 1440min dataseries.

Reply With Quote
  #10 (permalink)
 BenosBanderos 
Canberra
 
Experience: Beginner
Platform: MultiCharts
Trading: AUD/USD
Posts: 31 since Mar 2012
Thanks Given: 23
Thanks Received: 22



nikke View Post
in a signal I cannot use this:
 
Code
 LinearRegAngle(LowD, 9)

Why not? Are you getting an error in when compiling? What is it?

Reply With Quote




Last Updated on March 20, 2012


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts